Returns the caller org's wallets, newest first, optionally NARROWED within the…
Returns the caller org's wallets, newest first, optionally NARROWED within the org by project, agent or account.
GET /v1/wallet
| Address | https://api.hanzo.ai/v1/wallet |
| Method | GET |
| Operation | get_wallet |
| Auth | Authorization: Bearer $HANZO_API_KEY |
Returns the caller org's wallets, newest first, optionally NARROWED within the org by project, agent or account. The org is always the bound isolation boundary — the filters only ever narrow inside it, so a caller can never widen past its own org.
Request
3 fields.
| Field | In | Type | Required | Description |
|---|---|---|---|---|
project | query | string | — | Project narrows to wallets scoped to one project. |
agent | query | string | — | Agent narrows to wallets scoped to one agent. |
account | query | string | — | Account narrows to wallets under one account id. |
Response
| Status | Body | Meaning |
|---|---|---|
200 | walletList | ok |
200 body — 13 fields.
| Field | In | Type | Always | Description |
|---|---|---|---|---|
wallets | body | Wallet[] | — | Wallets are the matching wallets, newest first. |
wallets[].accountId | body | string | — | |
wallets[].address | body | string | — | Address is the on-chain address. For kms/mpc/treasury it is the EOA a signature from this wallet recovers to; for safe it is the CREATE2 address of the Safe… |
wallets[].agent | body | string | — | |
wallets[].chain | body | string | — | Chain is the EVM chain the wallet is bound to, CAIP-2 "eip155:<n>" or a bare decimal chain id. |
wallets[].createdAt | body | integer | — | CreatedAt is when the wallet was provisioned, Unix seconds. |
wallets[].custody | body | string | — | Custody is the backend holding the signing material, fixed at creation: "kms" (a secp256k1 key sealed under KMS and opened in-process), "mpc" or "treasury" (an… |
wallets[].financeAccount | body | string | — | FinanceAccount is the finance ledger account bound to this wallet — the lookup that turns a ledger account back into an on-chain signer. |
wallets[].id | body | string | — | ID is the wallet id, minted by the server as "wal_" + 24 hex. |
wallets[].name | body | string | — | Name is the display label given at creation. |
wallets[].org | body | string | — | |
wallets[].project | body | string | — | |
wallets[].tier | body | string | — | Tier is the wallet tier the ring keys its TierPolicy on: hot, warm, cold, gas, bridge, contract_admin, validator, quarantine or disaster_recovery. |
Failure carries the platform error shape — see Errors.
Examples
hanzo wallets listimport { Configuration, WalletApi } from 'hanzoai';
const api = new WalletApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getWallet();from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import WalletApi
client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = WalletApi(client).get_wallet()cfg := cloud.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := cloud.NewAPIClient(cfg)
resp, _, err := client.WalletAPI.GetWallet(context.Background()).Execute()
if err != nil {
return err
}use hanzo_cloud::apis::{configuration::Configuration, wallet_api};
let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();
let result = wallet_api::get_wallet(&cfg, Default::default()).await?;import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.WalletApi;
ApiClient client = new ApiClient();
client.setRequestInterceptor(b -> b.header("Authorization", "Bearer " + System.getenv("HANZO_API_KEY")));
var result = new WalletApi(client).getWallet();The method above is the one at the current release of the document. [email protected] (npm) and [email protected] (PyPI) were generated from an earlier release, where this operation carried a different id, so it spells the method differently — regenerating the clients is what makes the two agree. SDKs →
curl https://api.hanzo.ai/v1/wallet \
-H "Authorization: Bearer $HANZO_API_KEY"Tool wallets, op get_wallet — POST the JSON-RPC envelope to https://api.hanzo.ai/v1/mcp.
curl -X POST https://api.hanzo.ai/v1/mcp \
-H "Authorization: Bearer $HANZO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "wallets",
"arguments": {
"op": "get_wallet",
"input": {}
}
}
}'How is this guide?