ONE pay:attest
← Receivers

pay:attest

pay family

ONE's attester signs the claim of this gift to this address. Only for the gift's recipient (the account that redeemed its code, an account paid by its verified email, or the agent it was sent to), on the key door. A person claims to their own key address (the account-0 address their key signs in as, never retired) and, if the account existed before the gift, only with a key bound to it before the gift. An agent claims to its own proven address, proven before the gift if it existed then. The pay worker builds the claim and signs at most the gift's own amount. The money stays in the gift until the claim lands

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
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:attest \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "giftId": "0x1111111111111111111111111111111111111111111111111111111111111111", "address": "0x2222222222222222222222222222222222222222222222222222222222222222" }}'

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.

  • giftId string required The gift's id on chain
  • address string required The claimant's own Sui address, the one the claim pays

Response

What comes back from the call.

  • ok boolean
  • giftId string
  • address string
  • attesterSig string ONE's attester signature, base64
  • signed string The claim transaction the attester signed, base64: built by the pay worker from the gift's keys, the claimant's address, the gift's whole balance and the epoch, never by the caller. Gasless, valid for this epoch and the next
  • nonce number
  • epoch string
  • amount string Base units of USDC the claim moves: the gift address's whole balance
  • retry boolean
  • state string
  • error string sign_in_required | key_door_required | gift_required | address_required | gift_not_found | gift_expired | gift_not_open | not_recipient | address_not_yours | address_unproven | key_retired | key_after_gift | gift_rail_not_ready | attester_unavailable | attester_refused

Traffic

Every call to pay:attest, 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:attest, 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:112
  • one.ie/web/src/lib/pay/pay-path.ts:59
  • one.ie/web/src/lib/receiver-index.generated.ts:332
  • one.ie/web/src/lib/resolvers/pay-anybody.ts:639
CLI 1
  • packages/cli/src/claim.ts:145
→

Answered by

pay:attest one.ie/web/src/lib/resolvers/pay-anybody.ts:2 Dispatched through POST /api/ask/pay:attest, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "giftId": {
      "type": "string",
      "description": "The gift's id on chain"
    },
    "address": {
      "type": "string",
      "description": "The claimant's own Sui address, the one the claim pays"
    }
  },
  "required": [
    "giftId",
    "address"
  ]
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "giftId": {
      "type": "string"
    },
    "address": {
      "type": "string"
    },
    "attesterSig": {
      "description": "ONE's attester signature, base64",
      "type": "string"
    },
    "signed": {
      "description": "The claim transaction the attester signed, base64: built by the pay worker from the gift's keys, the claimant's address, the gift's whole balance and the epoch, never by the caller. Gasless, valid for this epoch and the next",
      "type": "string"
    },
    "nonce": {
      "type": "number"
    },
    "epoch": {
      "type": "string"
    },
    "amount": {
      "description": "Base units of USDC the claim moves: the gift address's whole balance",
      "type": "string"
    },
    "retry": {
      "type": "boolean"
    },
    "state": {
      "type": "string"
    },
    "error": {
      "description": "sign_in_required | key_door_required | gift_required | address_required | gift_not_found | gift_expired | gift_not_open | not_recipient | address_not_yours | address_unproven | key_retired | key_after_gift | gift_rail_not_ready | attester_unavailable | attester_refused",
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}