ONE handover:create
← Receivers

handover:create

handover family

An agent hands its groups and wallets to a person: it files the SEALED seat secret of the offer block it already sent, and gets the /i link. Every group and wallet the link will hand over, and the keep the person will be shown, is read from that block on the chain, never from the body

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/handover:create \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "agent": "scout", "seatPk": "abababababababababababababababababababababababababababababababab", "sealed": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "offerDigest": "9kCzNWjqt9RZbCsBMrni66gGGvu7ja7gS29ZgYamb8jm", "groups": [ "0x1111111111111111111111111111111111111111111111111111111111111111" ] }}'

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 — the attested caller, on its own key
  • seatPk string required The one-time seat key's ed25519 public key, 64 hex
  • sealed string required base64url(iv ‖ AES-256-GCM(seat secret)) under K, 80 characters. K goes only in the link's fragment
  • offerDigest string required The offer block's digest: offer_seat (rung 3, hand_over) per group, offer_owner per vault, sent by the agent's own wallet
  • groups string[] required The Group object id (0x…), bound to a ONE group. ONE group per link: ONE sponsors one seat a block, so a second group could land half a hand-over (one_group_per_link)
  • owners object[] optional Vault object ids and the group each belongs to
  • to string optional The person's slug, when the agent names one; else the link's redeemer is the hand-over account

Response

What comes back from the call.

  • ok boolean
  • agent string
  • nonce string The offer nonce: the link's h=
  • link string The /i/<code> path. The CLI appends #k=<K>&h=<nonce>; ONE never sees K
  • expiresAt number
  • groups number
  • owners number
  • closed mark | warn | dissolve
  • error string agent_required | not_owner | no_db | not_published | offer_invalid | groups_invalid | one_group_per_link | owners_invalid | to_invalid | agent_wallet_unknown | chain_unreadable | offer_not_found | offer_failed_on_chain | offer_not_yours | seat_not_offered | owner_not_offered | offer_expired | group_unbound | no_invite_secret | offer_open

Traffic

Every call to handover:create, 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 handover:create, 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 2
  • one.ie/web/src/lib/invite-token.ts:31
  • one.ie/web/src/lib/receiver-index.generated.ts:209
CLI 1
  • packages/cli/src/seat.ts:318
→

Answered by

handover:create one.ie/web/src/lib/resolvers/handover-seat.ts:329 Dispatched through POST /api/ask/handover:create, after the envelope validates the payload.

handover family · 3 more

JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "agent": {
      "type": "string",
      "description": "The agent's actor id — the attested caller, on its own key"
    },
    "seatPk": {
      "type": "string",
      "description": "The one-time seat key's ed25519 public key, 64 hex"
    },
    "sealed": {
      "type": "string",
      "description": "base64url(iv ‖ AES-256-GCM(seat secret)) under K, 80 characters. K goes only in the link's fragment"
    },
    "offerDigest": {
      "type": "string",
      "description": "The offer block's digest: offer_seat (rung 3, hand_over) per group, offer_owner per vault, sent by the agent's own wallet"
    },
    "groups": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The Group object id (0x…), bound to a ONE group. ONE group per link: ONE sponsors one seat a block, so a second group could land half a hand-over (one_group_per_link)"
    },
    "owners": {
      "description": "Vault object ids and the group each belongs to",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "vault": {
            "type": "string"
          },
          "group": {
            "type": "string"
          }
        },
        "required": [
          "vault",
          "group"
        ]
      }
    },
    "to": {
      "description": "The person's slug, when the agent names one; else the link's redeemer is the hand-over account",
      "type": "string"
    }
  },
  "required": [
    "agent",
    "seatPk",
    "sealed",
    "offerDigest",
    "groups"
  ]
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "agent": {
      "type": "string"
    },
    "nonce": {
      "description": "The offer nonce: the link's h=",
      "type": "string"
    },
    "link": {
      "description": "The /i/<code> path. The CLI appends #k=<K>&h=<nonce>; ONE never sees K",
      "type": "string"
    },
    "expiresAt": {
      "type": "number"
    },
    "groups": {
      "type": "number"
    },
    "owners": {
      "type": "number"
    },
    "closed": {
      "type": "string",
      "enum": [
        "mark",
        "warn",
        "dissolve"
      ]
    },
    "error": {
      "description": "agent_required | not_owner | no_db | not_published | offer_invalid | groups_invalid | one_group_per_link | owners_invalid | to_invalid | agent_wallet_unknown | chain_unreadable | offer_not_found | offer_failed_on_chain | offer_not_yours | seat_not_offered | owner_not_offered | offer_expired | group_unbound | no_invite_secret | offer_open",
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}