ONE wallet:get
← Receivers

wallet:get

wallet family

mcp

Read one workspace's wallet estate — credits, spend ceiling, wallet rows with payTo, live chain balances, delegated wallets

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
member
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
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/wallet:get \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": {}}'

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.

  • workspace string optional Defaults to the attested caller's workspace
  • actor string optional Actor whose spend ceiling is read; defaults to the workspace
  • net mainnet | testnet optional Network every balance and vault row is read on; defaults to the deploy's. Ask mainnet for real money on a testnet deploy
  • view pay-by-name optional 'pay-by-name' answers only your own pay-by-name switch (`payByName`), with no chain read

Response

What comes back from the call.

  • workspace string
  • actor string
  • payByName boolean view 'pay-by-name': whether your switch is on. On alone lets nobody in: only the groups you tick (`groups`) can read your receive addresses and pay you by name
  • groups string[] view 'pay-by-name': the group ids you ticked and are still in
  • eligible object[] view 'pay-by-name': the groups you are really in and could tick, each with its tick
  • groupsRead boolean view 'pay-by-name': false when your groups could not be read just now (then `eligible` is empty, not 'none')
  • network mainnet | testnet The one network every balance row below was read on
  • credits number
  • wallets object[]
  • spendCeiling object | null
  • balances object[]
  • addresses object[]
  • agentCaps object[]
  • delegated object[]
  • error string

Traffic

Every call to wallet:get, 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:get, 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

UI 8
  • one.ie/web/src/components/in/TreasuryPayment.tsx:63
  • one.ie/web/src/components/pay/PayByNameGroups.tsx:28
  • one.ie/web/src/components/wallet/AgentCaps.tsx:5
  • one.ie/web/src/components/wallet/KeyPowers.tsx:6
  • one.ie/web/src/components/wallet/TreasuryCard.tsx:4
  • one.ie/web/src/components/wallet/VaultBirth.tsx:10
  • one.ie/web/src/components/wallet/VaultSigners.tsx:18
  • one.ie/web/src/components/wallet/WalletKeys.tsx:614
API route 11
  • one.ie/web/src/lib/key/lifecycle.ts:30
  • one.ie/web/src/lib/key/load-key.ts:154
  • one.ie/web/src/lib/key/track.ts:7
  • one.ie/web/src/lib/money-paths/paths.ts:195
  • one.ie/web/src/lib/onboard/company-walk.ts:39
  • one.ie/web/src/lib/receiver-index.generated.ts:482
  • one.ie/web/src/lib/resolvers/wallet.ts:2128
  • one.ie/web/src/lib/sui-network.ts:336
  • one.ie/web/src/lib/vault/signer-members.ts:11
  • one.ie/web/src/lib/wallet-master.ts:663
  • one.ie/web/src/pages/api/billing/balance.ts:17
Agent runtime 1
  • channels/src/tools/money.ts:4
Workflow 1
  • one.ie/web/src/lib/workflow-templates.ts:2627
CLI 9
  • packages/cli/src/hl-run.ts:159
  • packages/cli/src/lib/money-receivers.ts:33
  • packages/cli/src/lib/security-read.ts:3
  • packages/cli/src/lib/wallet-money.ts:191
  • packages/cli/src/start.ts:205
  • packages/cli/src/swap.ts:495
  • packages/cli/src/wallet-money.ts:133
  • packages/cli/src/wallet-pay-by-name.ts:26
  • packages/cli/src/wallet.ts:220
Docs 8
  • one.ie/web/src/content/docs/agent-path.md:1279
  • one.ie/web/src/content/docs/authority.md:150
  • one.ie/web/src/content/docs/cli.md:353
  • one.ie/web/src/content/docs/mcp.md:205
  • one.ie/web/src/content/docs/sdk.md:263
  • one.ie/web/src/content/docs/wallets.md:307
  • one.ie/web/src/content/docs/what-is-one.md:79
  • one.ie/web/src/lib/CLAUDE.md:99
→

Answered by

wallet:get one.ie/web/src/lib/resolvers/wallet.ts:2842 Dispatched through POST /api/ask/wallet:get, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "workspace": {
      "description": "Defaults to the attested caller's workspace",
      "type": "string"
    },
    "actor": {
      "description": "Actor whose spend ceiling is read; defaults to the workspace",
      "type": "string"
    },
    "net": {
      "description": "Network every balance and vault row is read on; defaults to the deploy's. Ask mainnet for real money on a testnet deploy",
      "type": "string",
      "enum": [
        "mainnet",
        "testnet"
      ]
    },
    "view": {
      "description": "'pay-by-name' answers only your own pay-by-name switch (`payByName`), with no chain read",
      "type": "string",
      "enum": [
        "pay-by-name"
      ]
    }
  }
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "workspace": {
      "type": "string"
    },
    "actor": {
      "type": "string"
    },
    "payByName": {
      "description": "view 'pay-by-name': whether your switch is on. On alone lets nobody in: only the groups you tick (`groups`) can read your receive addresses and pay you by name",
      "type": "boolean"
    },
    "groups": {
      "description": "view 'pay-by-name': the group ids you ticked and are still in",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "eligible": {
      "description": "view 'pay-by-name': the groups you are really in and could tick, each with its tick",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "gid": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "open": {
            "type": "boolean",
            "description": "An open group: anyone can join it, so in it only its owners and admins can pay you by name"
          },
          "ticked": {
            "type": "boolean"
          }
        },
        "required": [
          "gid",
          "name",
          "open",
          "ticked"
        ]
      }
    },
    "groupsRead": {
      "description": "view 'pay-by-name': false when your groups could not be read just now (then `eligible` is empty, not 'none')",
      "type": "boolean"
    },
    "network": {
      "description": "The one network every balance row below was read on",
      "type": "string",
      "enum": [
        "mainnet",
        "testnet"
      ]
    },
    "credits": {
      "type": "number"
    },
    "wallets": {
      "type": "array",
      "items": {
        "type": "object",
        "propertyNames": {
          "type": "string"
        },
        "additionalProperties": {}
      }
    },
    "spendCeiling": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "limitCredits": {
              "type": "number"
            },
            "spentCredits": {
              "type": "number"
            },
            "remainingCredits": {
              "type": "number"
            }
          },
          "required": [
            "limitCredits",
            "spentCredits",
            "remainingCredits"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "balances": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "actor": {
            "type": "string"
          },
          "chain": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "balance": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "network": {
            "description": "The network this row was read on",
            "type": "string",
            "enum": [
              "mainnet",
              "testnet"
            ]
          },
          "unit": {
            "description": "The unit of `balance` when not the chain's native coin — hyperliquid rows: USDC (spot total)",
            "type": "string"
          },
          "perps": {
            "description": "hyperliquid rows: perps account value in USD, never summed with spot",
            "type": "object",
            "properties": {
              "accountValue": {
                "type": "string"
              },
              "withdrawable": {
                "type": "string"
              }
            },
            "required": [
              "accountValue",
              "withdrawable"
            ]
          },
          "spot": {
            "description": "hyperliquid rows: every non-zero spot coin",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "coin": {
                  "type": "string"
                },
                "total": {
                  "type": "string"
                },
                "hold": {
                  "type": "string"
                }
              },
              "required": [
                "coin",
                "total",
                "hold"
              ]
            }
          }
        },
        "required": [
          "actor",
          "chain",
          "address",
          "balance"
        ]
      }
    },
    "addresses": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "actor": {
            "type": "string"
          },
          "chain": {
            "type": "string"
          },
          "address": {
            "type": "string"
          }
        },
        "required": [
          "actor",
          "chain",
          "address"
        ]
      }
    },
    "agentCaps": {
      "type": "array",
      "items": {
        "type": "object",
        "propertyNames": {
          "type": "string"
        },
        "additionalProperties": {}
      }
    },
    "delegated": {
      "type": "array",
      "items": {
        "type": "object",
        "propertyNames": {
          "type": "string"
        },
        "additionalProperties": {}
      }
    },
    "error": {
      "type": "string"
    }
  }
}