Wallet

Blockchain key custody: create wallets, rotate their keys, and sign with them.

Also for this capability: API · CLI · MCP · SDKs

Blockchain key custody: create wallets, rotate their keys, and sign with them.

Base URLhttps://api.hanzo.ai
Operations8
AuthAuthorization: Bearer $HANZO_API_KEY

Specification

Specification pending — no HIP in hanzoai/hips declares capability: wallet yet. What this capability serves is below, from the API document; what it is — the store it owns, how it meters, what it publishes — is written as a HIP under HIP-0139.

Four surfaces

SurfaceReaches this capability asCoverage
RESTwallet at its own prefix8 operations
CLIhanzo wallet …8 of 8
SDKWalletApi in every published client8 methods
MCPtool wallet on https://api.hanzo.ai/v1/mcp7 operations, 1 under the document's own id — ask describe for the rest

Quickstart

export HANZO_API_KEY=sk-...   # console.hanzo.ai → API keys

Then the first call — a read that needs nothing but the key. GET /v1/wallet, operation get_wallet:

hanzo wallet list
import { 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 := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)

resp, _, err := client.WalletAPI.GetWallet(context.Background()).Execute()
if err != nil {
	return err
}
use hanzo_client::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.setBearerToken(System.getenv("HANZO_API_KEY"));

var result = new WalletApi(client).getWallet();
curl https://api.hanzo.ai/v1/wallet \
  -H "Authorization: Bearer $HANZO_API_KEY"

MCP reaches wallet through the wallet tool, which names its 7 operations with its own verbs — this one among them, under a name only MCP declares. describe explains any of them:

curl -X POST https://api.hanzo.ai/v1/mcp \
  -H "Content-Type: application/json" \
  -d '{
       "jsonrpc": "2.0",
       "id": 1,
       "method": "tools/call",
       "params": {
         "name": "describe",
         "arguments": {
           "op": "list_wallets"
         }
       }
     }'

Answers 200 with object — ok.

Endpoints

EndpointWhat it does
POST /v1/wallet/{id}/keysRolls one wallet's signing material through its own custody backend and answers the wallet with whatever address that produced.
POST /v1/wallet/{id}/signProduces a secp256k1 signature from one of the caller org's wallets over a 32-byte digest, through whichever custody backend that wallet uses.
POST /v1/wallet/{id}/transactionsComposes a Safe transaction on the MPC ring and answers its EIP-712 hash together with the owner approval the ring's threshold signature produced.
GET /v1/wallet/{id}Returns one of the caller org's wallets: its scope, custody kind, tier, chain and on-chain address.
GET /v1/wallet/accountsReturns the caller org's wallet accounts, newest first.
POST /v1/wallet/accountsOpens a named wallet account for the caller's org.
GET /v1/walletReturns the caller org's wallets, newest first, optionally NARROWED within the org by project, agent or account.
POST /v1/walletProvisions a new signing identity under one of the caller org's accounts and answers the stored wallet including its on-chain address.

All Hanzo APIs · Interactive reference

Was this page useful?