← Receivers

wallet:send

wallet family

mcp

Settle a crypto transfer the caller already signed and broadcast — mints, prices and claims a pay.one.ie link. Never signs; no private key crosses this boundary

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
manage_workspace
The class of authority the caller must already hold, decided from the attested context with no round trip.
Cost
variable
What one call costs, so you can budget before acting.
Reversible
no
This cannot be undone. Dry-run it first where the contract allows.
Settles
onchain
Moves real, permanent value on chain.
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/wallet:send \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "to": "0xabc", "chain": "SUI", "amount": 5, "paymentTx": "8xKvQ1" }}'

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 required Recipient address — public only
  • chain string required SOL | ETH | BASE | ARB | OPT | BTC | SUI
  • amount number required Must be > 0
  • paymentTx string required The tx hash from signing and broadcasting client-side
  • workspace string optional Source workspace; falls back to `from`, then the attested caller
  • from string optional Alias for `workspace` — the source the authority walk runs against
  • unit usd | token optional
  • currency NATIVE | USDC optional
  • userAddress string optional Sender address; defaults to `to`
  • memo string optional
  • product string optional Falls back to `memo`, then a generated transfer label

Response

What comes back from the call.

  • ok boolean
  • from string
  • to string
  • chain string
  • amount number
  • link string
  • quoteId string
  • paymentTx string
  • treasury string
  • receipt object
  • claimed boolean
  • stage string Which pay call failed: create | quote | claim
  • error string

Traffic

Every call to wallet: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 wallet: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 1
  • one.ie/web/src/lib/resolvers/_shared.ts:134
CLI 1
  • packages/cli/src/wallet.ts:165
Docs 1
  • one.ie/web/src/content/docs/wallets.md:32

Answered by

wallet:send one.ie/web/src/lib/resolvers/wallet.ts:843 Dispatched through POST /api/ask/wallet:send, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "to": {
      "type": "string",
      "description": "Recipient address — public only"
    },
    "chain": {
      "type": "string",
      "description": "SOL | ETH | BASE | ARB | OPT | BTC | SUI"
    },
    "amount": {
      "type": "number",
      "description": "Must be > 0"
    },
    "paymentTx": {
      "type": "string",
      "description": "The tx hash from signing and broadcasting client-side"
    },
    "workspace": {
      "description": "Source workspace; falls back to `from`, then the attested caller",
      "type": "string"
    },
    "from": {
      "description": "Alias for `workspace` — the source the authority walk runs against",
      "type": "string"
    },
    "unit": {
      "type": "string",
      "enum": [
        "usd",
        "token"
      ]
    },
    "currency": {
      "type": "string",
      "enum": [
        "NATIVE",
        "USDC"
      ]
    },
    "userAddress": {
      "description": "Sender address; defaults to `to`",
      "type": "string"
    },
    "memo": {
      "type": "string"
    },
    "product": {
      "description": "Falls back to `memo`, then a generated transfer label",
      "type": "string"
    }
  },
  "required": [
    "to",
    "chain",
    "amount",
    "paymentTx"
  ]
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "from": {
      "type": "string"
    },
    "to": {
      "type": "string"
    },
    "chain": {
      "type": "string"
    },
    "amount": {
      "type": "number"
    },
    "link": {
      "type": "string"
    },
    "quoteId": {
      "type": "string"
    },
    "paymentTx": {
      "type": "string"
    },
    "treasury": {
      "type": "string"
    },
    "receipt": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "url"
      ]
    },
    "claimed": {
      "type": "boolean"
    },
    "stage": {
      "description": "Which pay call failed: create | quote | claim",
      "type": "string"
    },
    "error": {
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}