ONE pay:send
← Receivers

pay:send

pay family

mcp

Pay anybody, or any agent, who has nothing set up: "pay tony@one.ie $10". simulate:true answers the card (who, how much, from which group, the $500 cap left, how the link travels, what the sender's wallet signs) and moves nothing. After the sender's own wallet sent the money into the gift, the commit reads that transaction from the chain (never the body) and starts the run. ONE never carries the gift key: for a recipient with a published message lock it relays the link the sender's client sealed to it; for anyone else it answers an invite code (email recipients) and the sender hands the link over by their own channel. ONE sends no mail

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.
Settles
onchain
Moves real, permanent value on chain.
Idempotent
yes
Safe to retry as-is.
Simulatable
yes
Accepts { simulate: true } — projects an outcome and commits nothing.

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/pay:send \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "to": "tony@one.ie", "amount": "10", "simulate": true }}'

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.

  • to string optional Who: an email, @slug, agent:<id>, or a contact's name in the group. A name or slug resolves to an email the sender never sees
  • amount string | number optional USDC: '10', '$10', '2.50 usdc'. Open gifts to one recipient from one group total at most $500 (cap_exceeded)
  • sentence string optional Instead of to and amount: the whole sentence, 'pay tony@one.ie $10', read by @oneie/sdk/pay-email parsePay
  • workspace string optional The sender's group; defaults to the attested caller's own. Required when the caller is attested as `one`
  • channel web | cli | sdk | … optional Where the sender sent from, for the funnel. Default api
  • simulate boolean optional true = the card only: resolves the recipient and the cap, answers the send plan; moves and mails nothing
  • senderPub string optional The sender's Ed25519 public key (64 hex). The gift is a Sui multisig of [sender 2, gift key 1, ONE's attester 1], threshold 2: its address is rebuilt from the three keys. Required on the commit; on simulate (with giftPub) the card answers the send plan
  • giftId string optional Commit: the gift's multisig address, where the sender's one transfer put the money. At least 0.01 USDC (gift_below_minimum): below that a gift cannot be spent gaslessly
  • digest string optional Commit: the send transaction's digest; the gift is read from it
  • giftPub string optional The gift key's Ed25519 public key, 64 hex. Required on the commit. The gift key itself is never sent: a body carrying giftKey is refused gift_key_never_sent
  • sealed string optional Commit, carrier sealed: the claim link sealed by the sender's client to the recipient's published lock (age armour, 4 KB at most). ONE relays it to their inbox and cannot read it
  • test boolean optional true = a test run (the walk); its run is fenced from the funnel

Response

What comes back from the call.

  • ok boolean
  • simulate boolean
  • toKind human | agent
  • toVia email | name | slug | agent
  • toLabel string What the sender typed, written back; never the email a name or slug resolved to
  • amountMicros number
  • amountText string
  • group string
  • sender string The sender's display name, as the recipient will read it
  • capLeftMicros number
  • own boolean The recipient already holds a seat in the sender's group
  • ready boolean simulate: false while no gift rail is live on this network (reason gift_rail_not_ready)
  • reason string
  • network string
  • attesterPub string
  • expiresMs number
  • sendPlan object What the sender's wallet signs to fund the gift
  • giftId string
  • runId string
  • carrier sealed | hand sealed: the sender's client seals the link to lockFor's published lock (check it with wallet:lock-get first). hand: the sender hands it over. Every recipient typed as an email is hand
  • lockFor object
  • messageKey object | null The lock's fingerprint, ONE's word only: the sender's device pins the fingerprint it sealed to and flags a change itself. null when hand
  • code string hand, email recipient: the 12-letter claim invite code. The sender's client builds /claim#<code>.<gift key>
  • delivered inbox
  • already boolean A second commit inside the 10-minute gap: nothing new was minted
  • retry boolean
  • onChainMicros number
  • state string
  • error string sign_in_required | group_required | not_your_group | no_amount | two_amounts | no_recipient | bad_recipient | reserved | recipient_not_found | name_ambiguous | recipient_has_no_email | gift_below_minimum | cap_exceeded | open_gifts_cap | gift_rail_not_ready | gift_key_never_sent | gift_required | sender_pub_required | gift_pub_required | gift_keys_invalid | gift_digest_invalid | gift_unreadable | gift_tx_failed | gift_not_funded | gift_not_from_sender | sender_not_yours | gift_expired | gift_not_yours | gift_not_open | sealed_required | sealed_invalid | inbox_unavailable | invite_unavailable
  • max number

Traffic

Every call to pay:send, 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 pay:send, 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 6
  • one.ie/web/src/lib/pay/anybody-client.ts:95
  • one.ie/web/src/lib/pay/anybody-send-ports.ts:72
  • one.ie/web/src/lib/pay/pay-path.ts:51
  • one.ie/web/src/lib/receiver-envelope.ts:300
  • one.ie/web/src/lib/receiver-index.generated.ts:334
  • one.ie/web/src/lib/resolvers/pay-anybody.ts:2
CLI 1
  • packages/cli/src/pay-link.ts:80
→

Answered by

pay:send one.ie/web/src/lib/resolvers/pay-anybody.ts:734 Dispatched through POST /api/ask/pay:send, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "to": {
      "description": "Who: an email, @slug, agent:<id>, or a contact's name in the group. A name or slug resolves to an email the sender never sees",
      "type": "string"
    },
    "amount": {
      "description": "USDC: '10', '$10', '2.50 usdc'. Open gifts to one recipient from one group total at most $500 (cap_exceeded)",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        }
      ]
    },
    "sentence": {
      "description": "Instead of to and amount: the whole sentence, 'pay tony@one.ie $10', read by @oneie/sdk/pay-email parsePay",
      "type": "string"
    },
    "workspace": {
      "description": "The sender's group; defaults to the attested caller's own. Required when the caller is attested as `one`",
      "type": "string"
    },
    "channel": {
      "description": "Where the sender sent from, for the funnel. Default api",
      "type": "string",
      "enum": [
        "web",
        "cli",
        "sdk",
        "mcp",
        "api"
      ]
    },
    "simulate": {
      "description": "true = the card only: resolves the recipient and the cap, answers the send plan; moves and mails nothing",
      "type": "boolean"
    },
    "senderPub": {
      "description": "The sender's Ed25519 public key (64 hex). The gift is a Sui multisig of [sender 2, gift key 1, ONE's attester 1], threshold 2: its address is rebuilt from the three keys. Required on the commit; on simulate (with giftPub) the card answers the send plan",
      "type": "string"
    },
    "giftId": {
      "description": "Commit: the gift's multisig address, where the sender's one transfer put the money. At least 0.01 USDC (gift_below_minimum): below that a gift cannot be spent gaslessly",
      "type": "string"
    },
    "digest": {
      "description": "Commit: the send transaction's digest; the gift is read from it",
      "type": "string"
    },
    "giftPub": {
      "description": "The gift key's Ed25519 public key, 64 hex. Required on the commit. The gift key itself is never sent: a body carrying giftKey is refused gift_key_never_sent",
      "type": "string"
    },
    "sealed": {
      "description": "Commit, carrier sealed: the claim link sealed by the sender's client to the recipient's published lock (age armour, 4 KB at most). ONE relays it to their inbox and cannot read it",
      "type": "string"
    },
    "test": {
      "description": "true = a test run (the walk); its run is fenced from the funnel",
      "type": "boolean"
    }
  }
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "simulate": {
      "type": "boolean"
    },
    "toKind": {
      "type": "string",
      "enum": [
        "human",
        "agent"
      ]
    },
    "toVia": {
      "type": "string",
      "enum": [
        "email",
        "name",
        "slug",
        "agent"
      ]
    },
    "toLabel": {
      "description": "What the sender typed, written back; never the email a name or slug resolved to",
      "type": "string"
    },
    "amountMicros": {
      "type": "number"
    },
    "amountText": {
      "type": "string"
    },
    "group": {
      "type": "string"
    },
    "sender": {
      "description": "The sender's display name, as the recipient will read it",
      "type": "string"
    },
    "capLeftMicros": {
      "type": "number"
    },
    "own": {
      "description": "The recipient already holds a seat in the sender's group",
      "type": "boolean"
    },
    "ready": {
      "description": "simulate: false while no gift rail is live on this network (reason gift_rail_not_ready)",
      "type": "boolean"
    },
    "reason": {
      "type": "string"
    },
    "network": {
      "type": "string"
    },
    "attesterPub": {
      "type": "string"
    },
    "expiresMs": {
      "type": "number"
    },
    "sendPlan": {
      "description": "What the sender's wallet signs to fund the gift",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "giftId": {
      "type": "string"
    },
    "runId": {
      "type": "string"
    },
    "carrier": {
      "description": "sealed: the sender's client seals the link to lockFor's published lock (check it with wallet:lock-get first). hand: the sender hands it over. Every recipient typed as an email is hand",
      "type": "string",
      "enum": [
        "sealed",
        "hand"
      ]
    },
    "lockFor": {
      "type": "object",
      "properties": {
        "slug": {
          "type": "string"
        },
        "agent": {
          "type": "string"
        }
      },
      "required": [
        "slug"
      ]
    },
    "messageKey": {
      "description": "The lock's fingerprint, ONE's word only: the sender's device pins the fingerprint it sealed to and flags a change itself. null when hand",
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "fingerprint": {
              "type": "string"
            }
          },
          "required": [
            "fingerprint"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "code": {
      "description": "hand, email recipient: the 12-letter claim invite code. The sender's client builds /claim#<code>.<gift key>",
      "type": "string"
    },
    "delivered": {
      "type": "string",
      "enum": [
        "inbox"
      ]
    },
    "already": {
      "description": "A second commit inside the 10-minute gap: nothing new was minted",
      "type": "boolean"
    },
    "retry": {
      "type": "boolean"
    },
    "onChainMicros": {
      "type": "number"
    },
    "state": {
      "type": "string"
    },
    "error": {
      "description": "sign_in_required | group_required | not_your_group | no_amount | two_amounts | no_recipient | bad_recipient | reserved | recipient_not_found | name_ambiguous | recipient_has_no_email | gift_below_minimum | cap_exceeded | open_gifts_cap | gift_rail_not_ready | gift_key_never_sent | gift_required | sender_pub_required | gift_pub_required | gift_keys_invalid | gift_digest_invalid | gift_unreadable | gift_tx_failed | gift_not_funded | gift_not_from_sender | sender_not_yours | gift_expired | gift_not_yours | gift_not_open | sealed_required | sealed_invalid | inbox_unavailable | invite_unavailable",
      "type": "string"
    },
    "max": {
      "type": "number"
    }
  },
  "required": [
    "ok"
  ]
}