ONE wallet:update
← Receivers

wallet:update

wallet family

mcp

Set an agent's spending limit in credits a month (0 pauses it). Lowering is open to the people who control the workspace and to the agent for itself (never a sibling); raising needs a person — a signed-in session or the owner's own key, never an agent key

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:update \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "actor": "scout", "limit": 5000 }}'

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.

  • actor string optional The agent whose limit is set — its wallets row (kind 'agent') in `workspace`. Required with `limit`
  • limit number optional The spending limit in credits per month. 0 pauses the agent (every spend refused, liftable by the owner). 1000 credits = $1
  • payByName boolean optional Your own switch, sent alone (no actor, no limit): true lets the groups you tick (`payByNameGroups`) read your wallet's receive addresses (never a balance) and pay you by name; false stops it. Sharing a group is not enough, because a group's owner can seat you in it. Only you set it, signed in as yourself, on your own wallet
  • payByNameGroups string[] optional Your own ticks, sent alone: the group ids (with or without the 'group:' prefix) whose members may pay you by name. Replaces the list. Each must be a group you are really in; read your choices with wallet:get { view: 'pay-by-name' }
  • workspace string optional The workspace that holds the agent's wallet; defaults to the attested caller
  • contact object optional Your own address book, sent alone (no actor, no limit): save someone outside ONE by name with the addresses they asked to be paid at, so /pay can preset network, coin and address. Only you write it, signed in with your key or passkey; an agent key or a backup sign-in is refused, because a swapped address redirects money. Read it with wallet:get { view: 'contacts' }

Response

What comes back from the call.

  • ok boolean
  • workspace string
  • actor string
  • monthlyCredits number
  • spentCredits number What this period has used against the limit
  • paused boolean
  • changed boolean
  • raised boolean
  • payByName boolean Your pay-by-name switch as it now stands, when that is what was set
  • contact object The contact as now saved, when that is what was sent
  • removed boolean true when an empty address list removed the contact
  • groups string[] The groups you have ticked for pay-by-name, as stored, when that is what was set
  • closed mark | warn | dissolve
  • detail string
  • error string unauthorized | actor_required | no_db | bad_limit | forbidden | not_an_agent_wallet | zeroed_on_chain (the on-chain Zero is final) | human_presence_required (a raise, or payByName, from an agent or a bare key) | no_wallet (payByName with no wallet yet: make your key first) | not_your_group (a tick for a group you are not really in) | groups_unread (your groups could not be read, so nothing was stored) | bad_groups | bad_contact | bad_name (1 to 60 letters, digits, spaces and . _ ' & @ -) | bad_coin (not a coin /pay delivers) | address_mismatch (the address does not fit that coin's chain) | too_many_addresses | book_full | key_required (contact from a backup sign-in: use your key or passkey) | write_unconfirmed

Traffic

Every call to wallet:update, 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:update, 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 3
  • one.ie/web/src/components/pay/AddressBook.tsx:75
  • one.ie/web/src/components/pay/PayByNameGroups.tsx:28
  • one.ie/web/src/components/wallet/AgentWalletControls.tsx:114
API route 2
  • one.ie/web/src/lib/receiver-index.generated.ts:513
  • one.ie/web/src/lib/resolvers/wallet.ts:2830
CLI 4
  • packages/cli/src/lib/money-receivers.ts:20
  • packages/cli/src/wallet-contacts.ts:47
  • packages/cli/src/wallet-pay-by-name.ts:30
  • packages/cli/src/wallet.ts:375
Docs 4
  • one.ie/web/src/content/docs/cli.md:355
  • one.ie/web/src/content/docs/multisig.md:127
  • one.ie/web/src/content/docs/sdk.md:278
  • one.ie/web/src/content/docs/wallets.md:356
→

Answered by

wallet:update one.ie/web/src/lib/resolvers/wallet.ts:2856 Dispatched through POST /api/ask/wallet:update, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "actor": {
      "description": "The agent whose limit is set — its wallets row (kind 'agent') in `workspace`. Required with `limit`",
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "limit": {
      "description": "The spending limit in credits per month. 0 pauses the agent (every spend refused, liftable by the owner). 1000 credits = $1",
      "type": "integer",
      "minimum": 0,
      "maximum": 10000000
    },
    "payByName": {
      "description": "Your own switch, sent alone (no actor, no limit): true lets the groups you tick (`payByNameGroups`) read your wallet's receive addresses (never a balance) and pay you by name; false stops it. Sharing a group is not enough, because a group's owner can seat you in it. Only you set it, signed in as yourself, on your own wallet",
      "type": "boolean"
    },
    "payByNameGroups": {
      "description": "Your own ticks, sent alone: the group ids (with or without the 'group:' prefix) whose members may pay you by name. Replaces the list. Each must be a group you are really in; read your choices with wallet:get { view: 'pay-by-name' }",
      "maxItems": 200,
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "workspace": {
      "description": "The workspace that holds the agent's wallet; defaults to the attested caller",
      "type": "string"
    },
    "contact": {
      "description": "Your own address book, sent alone (no actor, no limit): save someone outside ONE by name with the addresses they asked to be paid at, so /pay can preset network, coin and address. Only you write it, signed in with your key or passkey; an agent key or a backup sign-in is refused, because a swapped address redirects money. Read it with wallet:get { view: 'contacts' }",
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 60,
          "description": "What you call them, e.g. linkseller. The same name again (any case) replaces that contact's addresses"
        },
        "addresses": {
          "maxItems": 10,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "coin": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80,
                "description": "The coin they are paid in, as a swap alias: USDT@tron, USDT@ethereum, USDC@base"
              },
              "address": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "description": "Their address on that coin's chain; it must fit the chain's address shape"
              }
            },
            "required": [
              "coin",
              "address"
            ]
          },
          "description": "Every address you keep for them; an empty list removes the contact"
        }
      },
      "required": [
        "name",
        "addresses"
      ]
    }
  }
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "workspace": {
      "type": "string"
    },
    "actor": {
      "type": "string"
    },
    "monthlyCredits": {
      "type": "number"
    },
    "spentCredits": {
      "description": "What this period has used against the limit",
      "type": "number"
    },
    "paused": {
      "type": "boolean"
    },
    "changed": {
      "type": "boolean"
    },
    "raised": {
      "type": "boolean"
    },
    "payByName": {
      "description": "Your pay-by-name switch as it now stands, when that is what was set",
      "type": "boolean"
    },
    "contact": {
      "description": "The contact as now saved, when that is what was sent",
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "addresses": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "coin": {
                "type": "string"
              },
              "chain": {
                "type": "string"
              },
              "symbol": {
                "type": "string"
              },
              "network": {
                "type": "string"
              },
              "address": {
                "type": "string"
              }
            },
            "required": [
              "coin",
              "chain",
              "symbol",
              "network",
              "address"
            ]
          }
        }
      },
      "required": [
        "name",
        "addresses"
      ]
    },
    "removed": {
      "description": "true when an empty address list removed the contact",
      "type": "boolean"
    },
    "groups": {
      "description": "The groups you have ticked for pay-by-name, as stored, when that is what was set",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "closed": {
      "type": "string",
      "enum": [
        "mark",
        "warn",
        "dissolve"
      ]
    },
    "detail": {
      "type": "string"
    },
    "error": {
      "description": "unauthorized | actor_required | no_db | bad_limit | forbidden | not_an_agent_wallet | zeroed_on_chain (the on-chain Zero is final) | human_presence_required (a raise, or payByName, from an agent or a bare key) | no_wallet (payByName with no wallet yet: make your key first) | not_your_group (a tick for a group you are not really in) | groups_unread (your groups could not be read, so nothing was stored) | bad_groups | bad_contact | bad_name (1 to 60 letters, digits, spaces and . _ ' & @ -) | bad_coin (not a coin /pay delivers) | address_mismatch (the address does not fit that coin's chain) | too_many_addresses | book_full | key_required (contact from a backup sign-in: use your key or passkey) | write_unconfirmed",
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}