ONE wallet:portfolio
← Receivers

wallet:portfolio

wallet family

mcp

Every wallet row in every workspace the caller controls — one call, no per-address chain reads

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:portfolio \
  -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.

  • limit number optional Max child workspaces to include; capped at 100
  • keys boolean optional Also answer keyMap: one line from the caller's key to every wallet it signs for (its personal wallet, each group vault where its group address, PROVEN by a signature proof row, is the owner or holds a signer row; a paused vault or pen reads paused), plus one face per controlled group (its vault's people, agents and rules). D1 only, still no chain call
  • net mainnet | testnet optional The network whose vaults keyMap draws; unset = the deploy's

Response

What comes back from the call.

  • caller string
  • home string | null
  • workspaces object[]
  • count number
  • keyMap object | null
  • error string

Traffic

Every call to wallet:portfolio, 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:portfolio, 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/receiver-index.generated.ts:486
CLI 2
  • packages/cli/src/lib/money-receivers.ts:33
  • packages/cli/src/wallet.ts:292
Docs 1
  • one.ie/web/src/lib/CLAUDE.md:99
→

Answered by

wallet:portfolio one.ie/web/src/lib/resolvers/wallet.ts:2853 Dispatched through POST /api/ask/wallet:portfolio, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "limit": {
      "description": "Max child workspaces to include; capped at 100",
      "type": "number"
    },
    "keys": {
      "description": "Also answer keyMap: one line from the caller's key to every wallet it signs for (its personal wallet, each group vault where its group address, PROVEN by a signature proof row, is the owner or holds a signer row; a paused vault or pen reads paused), plus one face per controlled group (its vault's people, agents and rules). D1 only, still no chain call",
      "type": "boolean"
    },
    "net": {
      "description": "The network whose vaults keyMap draws; unset = the deploy's",
      "type": "string",
      "enum": [
        "mainnet",
        "testnet"
      ]
    }
  }
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "caller": {
      "type": "string"
    },
    "home": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "workspaces": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "workspace": {
            "type": "string"
          },
          "wallets": {
            "type": "array",
            "items": {
              "type": "object",
              "propertyNames": {
                "type": "string"
              },
              "additionalProperties": {}
            }
          }
        },
        "required": [
          "workspace",
          "wallets"
        ]
      }
    },
    "count": {
      "type": "number"
    },
    "keyMap": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "viewer": {
              "type": "string"
            },
            "network": {
              "type": "string"
            },
            "truncated": {
              "type": "boolean"
            },
            "edges": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "group": {
                    "type": "string"
                  },
                  "personal": {
                    "type": "boolean"
                  },
                  "vault": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "owner",
                      "signer",
                      "paused"
                    ]
                  },
                  "label": {
                    "type": "string"
                  },
                  "rules": {
                    "type": "string"
                  },
                  "named": {
                    "type": "boolean"
                  },
                  "members": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "actor": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "kind": {
                          "type": "string"
                        },
                        "standing": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "actor",
                        "kind",
                        "standing"
                      ]
                    }
                  }
                },
                "required": [
                  "group",
                  "personal",
                  "vault",
                  "role",
                  "label",
                  "rules",
                  "named",
                  "members"
                ]
              }
            },
            "groups": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "group": {
                    "type": "string"
                  },
                  "state": {
                    "type": "string",
                    "enum": [
                      "vault",
                      "no_vault",
                      "unproven_address",
                      "no_address"
                    ]
                  },
                  "vault": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "rules": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "paused": {
                    "type": "boolean"
                  },
                  "members": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "actor": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "kind": {
                          "type": "string"
                        },
                        "standing": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "actor",
                        "kind",
                        "standing"
                      ]
                    }
                  }
                },
                "required": [
                  "group",
                  "state",
                  "vault",
                  "rules",
                  "paused",
                  "members"
                ]
              }
            }
          },
          "required": [
            "viewer",
            "network",
            "edges"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "error": {
      "type": "string"
    }
  }
}