ONE pay:step
← Receivers

pay:step

pay family

Record a pay-anybody step the server can check: delivered (the sender's client handed the link over), opened (by the gift's public key; answers the sender's name and the amount for the claim page), accepted · key-made · kept · registered (the recipient, signed in), landed · taken-back (read from the chain by digest). A gift past its 7 days is written expired on the first touch

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
public
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
no
This cannot be undone. Dry-run it first where the contract allows.
Idempotent
yes
Safe to retry as-is.

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:step \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "step": "opened", "giftPub": "0000000000000000000000000000000000000000000000000000000000000000", "via": "web" }}'

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.

  • step delivered | opened | accepted | … required
  • how share | copy | mail-app | sealed optional delivered: how the sender's client handed the link over. Only the sender reports it
  • giftPub string optional opened: the gift key's Ed25519 public key, 64 hex
  • via web | cli | sdk | … optional opened: where the recipient is claiming from
  • giftId string optional Every step but opened
  • digest string optional landed / taken-back: the transaction that claimed or took the gift back

Response

What comes back from the call.

  • ok boolean
  • step string
  • giftId string
  • runId string
  • sender string opened: the sender's display name, from the run, never from the link
  • keys object opened: the gift's three PUBLIC keys (hex), so the claimant's client rebuilds the claim with @oneie/sdk/gift and checks ONE's bytes
  • amountMicros number
  • expiresMs number
  • toKind string
  • state string open | expired | done | failed, or the end just recorded
  • chain string
  • retry boolean
  • error string gift_pub_required | gift_required | gift_not_found | gift_expired | sign_in_required | not_sender | not_recipient | addresses_not_registered | gift_rail_not_ready | step_not_on_chain | gift_digest_invalid | gift_unreadable | gift_tx_failed | gift_not_spent | unknown_step

Traffic

Every call to pay:step, 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:step, 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 4
  • one.ie/web/src/lib/pay/anybody-client.ts:91
  • one.ie/web/src/lib/pay/pay-path.ts:53
  • one.ie/web/src/lib/receiver-index.generated.ts:335
  • one.ie/web/src/lib/resolvers/pay-anybody.ts:2
CLI 1
  • packages/cli/src/claim.ts:100
→

Answered by

pay:step one.ie/web/src/lib/resolvers/pay-anybody.ts:735 Dispatched through POST /api/ask/pay:step, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "step": {
      "type": "string",
      "enum": [
        "delivered",
        "opened",
        "accepted",
        "key-made",
        "kept",
        "registered",
        "landed",
        "taken-back"
      ]
    },
    "how": {
      "description": "delivered: how the sender's client handed the link over. Only the sender reports it",
      "type": "string",
      "enum": [
        "share",
        "copy",
        "mail-app",
        "sealed"
      ]
    },
    "giftPub": {
      "description": "opened: the gift key's Ed25519 public key, 64 hex",
      "type": "string"
    },
    "via": {
      "description": "opened: where the recipient is claiming from",
      "type": "string",
      "enum": [
        "web",
        "cli",
        "sdk",
        "mcp",
        "prompt"
      ]
    },
    "giftId": {
      "description": "Every step but opened",
      "type": "string"
    },
    "digest": {
      "description": "landed / taken-back: the transaction that claimed or took the gift back",
      "type": "string"
    }
  },
  "required": [
    "step"
  ]
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "step": {
      "type": "string"
    },
    "giftId": {
      "type": "string"
    },
    "runId": {
      "type": "string"
    },
    "sender": {
      "description": "opened: the sender's display name, from the run, never from the link",
      "type": "string"
    },
    "keys": {
      "description": "opened: the gift's three PUBLIC keys (hex), so the claimant's client rebuilds the claim with @oneie/sdk/gift and checks ONE's bytes",
      "type": "object",
      "properties": {
        "sender": {
          "type": "string"
        },
        "gift": {
          "type": "string"
        },
        "attester": {
          "type": "string"
        }
      },
      "required": [
        "sender",
        "gift",
        "attester"
      ]
    },
    "amountMicros": {
      "type": "number"
    },
    "expiresMs": {
      "type": "number"
    },
    "toKind": {
      "type": "string"
    },
    "state": {
      "description": "open | expired | done | failed, or the end just recorded",
      "type": "string"
    },
    "chain": {
      "type": "string"
    },
    "retry": {
      "type": "boolean"
    },
    "error": {
      "description": "gift_pub_required | gift_required | gift_not_found | gift_expired | sign_in_required | not_sender | not_recipient | addresses_not_registered | gift_rail_not_ready | step_not_on_chain | gift_digest_invalid | gift_unreadable | gift_tx_failed | gift_not_spent | unknown_step",
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}