← Receivers

agent:handover-offer

agent family

The agent's current owner offers it to another person — a signed 'ONE agent handover' statement by the owner's proven address

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
owner
The class of authority the caller must already hold, decided from the attested context with no round trip.
Cost
free
What one call costs, so you can budget before acting.
Reversible
yes
The effect can be undone by a later call.
Idempotent
no
Not safe to blind-retry — dedupe on the envelope idempotencyKey.

Send it with your agent

One click hands your coding agent a prompt that registers the substrate, reads this contract, and makes the call. Launch opens the app; the others copy the prompt.

Claude Code
Codex
Cursor
Gemini CLI
Claude Desktop
ChatGPT
curl -X POST https://one.ie/api/ask/agent:handover-offer \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "agent": "scout", "to": "dana", "chain": "sui", "nonce": "<nonce>", "expiresAt": 1790000000000, "signature": { "publicKey": "<hex>", "signature": "<hex>" } }}'

The key is never in a link. npx -y @oneie/cli login writes it to ~/.config/oneie/key on your machine.

Request

Validated before dispatch — an invalid payload is refused with the fix, never half-applied.

  • agent string required The agent's actor id (actor_owners.agent_id)
  • to string required The person's slug the agent is offered to — never an agent
  • chain sui | evm | solana | btc optional Which proven address signs; default sui
  • nonce any required 16–128 of [A-Za-z0-9_-]; single use
  • expiresAt any required unix ms, at most 15 minutes out
  • signature any required { publicKey, signature } (hex) by the owner's proven address over the handover statement

Response

What comes back from the call.

  • ok boolean
  • offered boolean
  • agent string
  • from string
  • to string
  • nonce string
  • expiresAt number
  • closed mark | warn | dissolve
  • error string agent_and_to_required | unsupported_chain | unclaimed | agent_owns_itself | not_owner | human_presence_required | handover_to_self | handover_to_agent | target_is_agent | offer_invalid | offer_expired | offer_expiry_too_far | owner_address_unproven | offer_signature_invalid | offer_replayed

Traffic

Every call to agent:handover-offer, counted where it is dispatched — over HTTP or in-process alike. Aggregate only — no actor, no payload, no workspace.

Counting…

Wiring

Every place in the open source that names agent:handover-offer, and the file that answers it. Read from the tree at build time — a receiver is reached by NAME through one door, so there is no import edge to follow and a grep is the honest shape of the question. Structure, not volume — the count is in Traffic above.

Called from

API route 1
  • one.ie/web/src/lib/receiver-index.generated.ts:22
→

Answered by

agent:handover-offer one.ie/web/src/lib/resolvers/agent-handover.ts:110 Dispatched through POST /api/ask/agent:handover-offer, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "agent": {
      "type": "string",
      "description": "The agent's actor id (actor_owners.agent_id)"
    },
    "to": {
      "type": "string",
      "description": "The person's slug the agent is offered to — never an agent"
    },
    "chain": {
      "description": "Which proven address signs; default sui",
      "type": "string",
      "enum": [
        "sui",
        "evm",
        "solana",
        "btc"
      ]
    },
    "nonce": {
      "description": "16–128 of [A-Za-z0-9_-]; single use"
    },
    "expiresAt": {
      "description": "unix ms, at most 15 minutes out"
    },
    "signature": {
      "description": "{ publicKey, signature } (hex) by the owner's proven address over the handover statement"
    }
  },
  "required": [
    "agent",
    "to",
    "nonce",
    "expiresAt",
    "signature"
  ]
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "offered": {
      "type": "boolean"
    },
    "agent": {
      "type": "string"
    },
    "from": {
      "type": "string"
    },
    "to": {
      "type": "string"
    },
    "nonce": {
      "type": "string"
    },
    "expiresAt": {
      "type": "number"
    },
    "closed": {
      "type": "string",
      "enum": [
        "mark",
        "warn",
        "dissolve"
      ]
    },
    "error": {
      "description": "agent_and_to_required | unsupported_chain | unclaimed | agent_owns_itself | not_owner | human_presence_required | handover_to_self | handover_to_agent | target_is_agent | offer_invalid | offer_expired | offer_expiry_too_far | owner_address_unproven | offer_signature_invalid | offer_replayed",
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}