Wallets API
USDC wallets for x402 and MPP payments, held with a regulated custodian.
Base URL https://api.ndstill.com/v2. Send Authorization: Bearer with a key, Ndstill-Version: 2026-11-01, and an Idempotency-Key on every POST. Conventions, scopes and errors are in the API overview and Errors and decline reasons. Examples come from the mock backend; the shapes are the TypeScript types in packages/api.
List wallets#
/v2/wallets- cursorstring
- limitnumber
1–200, default 50.
- qstring
Free-text search over names, ids and descriptors.
- sortstring
Sort field, prefix "-" for descending ("-created_at" is the default).
- created_gteTimestamp
created_at >= (ISO).
- created_lteTimestamp
created_at <= (ISO).
Returns a list envelope: object "list", data[], has_more, next_cursor (pass it back as cursor) and total when cheap to count. Items:
- idId
- object"wallet"
- org_idId
- created_atTimestamp
- updated_atTimestampoptional
- test_modebooleanoptional
True for test-mode objects (simulations, sandbox).
- agentRef | null
Small reference used for denormalized names in lists (no N+1 lookups in tables).
Ref: 2 fields
- idId
- namestring
- namestring
- custodianstring
- custodystring
How keys are held, in plain words ("MPC; the custodian holds the key shares, ndStill co-signs").
- chainstring enum
"base""ethereum""solana""polygon" - addressstring
- balanceMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- availableMoney
Confirmed and spendable.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- pendingMoney
Waiting for confirmations (in) or reserved for approved payments (out).
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- policy_bindingobject
4 fields
- policy_idId | null
- policy_namestring | null
- modestring enum
"policy_api""co_sign""client_hook" - rulesstring[]
The rules the custodian enforces natively for this wallet.
- statusstring enum
"active""frozen" - explorer_urlstring
- recentWalletTx[]
WalletTx: 9 fields
- tx_hashstring
- atTimestamp
- directionstring enum
"in""out" - amountMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- counterpartystring
- explorer_urlstring
- statusstring enumoptional
"pending""failed""confirmed" - blocknumber | nulloptional
- intent_idId | nulloptional
- 400invalid_request
A query parameter is invalid.
- 401authentication
The key or token is missing, expired or revoked.
- 403permission
The key's scopes or the person's role don't allow this.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X GET "https://api.ndstill.com/v2/wallets?limit=2" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "list",
"data": [
{
"id": "wal_01M01DYTMEPJ2AS3Z98G7QYQ44",
"object": "wallet",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-08-15T00:43:11.374Z",
"explorer_url": "https://solscan.io/account/cw5MPgyS77QRH1Z8UsR58AtpUS3ooHDkmxa7Rsy6mWRQ",
"agent": {
"id": "agt_01KWY9N54EWVW2B9R5VCDZ7753",
"name": "Social scheduler"
},
"name": "Solana pilot wallet",
"custodian": "Privy (server wallets)",
"custody": "Key shares split between Privy and a secure enclave. ndStill approves through Privy's policy engine.",
"chain": "solana",
"address": "cw5MPgyS77QRH1Z8UsR58AtpUS3ooHDkmxa7Rsy6mWRQ",
"balance": {
"amount": 412500000,
"asset": "USDC"
},
"available": {
"amount": 412500000,
"asset": "USDC"
},
"pending": {
"amount": 0,
"asset": "USDC"
},
"policy_binding": {
"policy_id": "pol_01KYXCCRME9QXCXCFR6RPQ6HFG",
"policy_name": "Acme Robotics org policy",
"mode": "client_hook",
"rules": [
"Privy's policy engine asks ndStill before signing",
"Frozen: every signing request is refused"
]
},
"status": "frozen",
"recent": []
},
{
"id": "wal_01KYDY0EMEWQ1QSA801D6NAPA4",
"object": "wallet",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-07-26T00:43:11.374Z",
"explorer_url": "https://basescan.org/address/0xe1418734fa16195bc71278e2c66902513d4e76b0",
"agent": {
"id": "agt_01KQ667RMEP9Y30VHM3RCA9HZN",
"name": "Research orchestrator"
},
"name": "Agent USDC wallet",
"custodian": "Coinbase CDP",
"custody": "Server wallet with MPC key shares held by Coinbase. ndStill co-signs each transfer.",
"chain": "base",
"address": "0xe1418734fa16195bc71278e2c66902513d4e76b0",
"balance": {
"amount": 2707242967,
"asset": "USDC"
},
"available": {
"amount": 2707242967,
"asset": "USDC"
},
"pending": {
"amount": 0,
"asset": "USDC"
},
"policy_binding": {
"policy_id": "pol_01KYXCCRME9QXCXCFR6RPQ6HFG",
"policy_name": "Acme Robotics org policy",
"mode": "policy_api",
"rules": [
"Transfers need ndStill's co-signature, given only for an approved decision",
"Up to 1,500.00 USDC per transaction",
"USDC only; other tokens and contract calls are refused"
]
},
"status": "active",
"recent": [
{
"tx_hash": "0xf88288e9737970a58e4ccae95482e8c51e970fa95805c8253dfd7ba9f8e17645",
"at": "2026-11-22T23:56:11.374Z",
"direction": "out",
"amount": {
"amount": 2266000,
"asset": "USDC"
},
"counterparty": "Firecrawl",
"explorer_url": "https://basescan.org/tx/0xf88288e9737970a58e4ccae95482e8c51e970fa95805c8253dfd7ba9f8e17645",
"intent_id": "pi_01M82V0MQETCC3BXWVBCTPCV8K",
"status": "confirmed",
"block": 21418413
},
{
"tx_hash": "0x3f2085760cbd3837a6e651306d86b961fd647c22ce776ac39d1f1b2c95d9fd7d",
"at": "2026-11-22T19:31:55.940Z",
"direction": "out",
"amount": {
"amount": 6104000,
"asset": "USDC"
},
"counterparty": "OpenData Exchange",
"explorer_url": "https://basescan.org/tx/0x3f2085760cbd3837a6e651306d86b961fd647c22ce776ac39d1f1b2c95d9fd7d",
"intent_id": "pi_01M82BWRX443WY1SMCAD9QBVDF",
"status": "confirmed",
"block": 21318348
},
{
"tx_hash": "0x4b2198842983876bb094c1d221288f11e55c10f0925dce072edcb48e3265a3cd",
"at": "2026-11-21T14:10:01.687Z",
"direction": "out",
"amount": {
"amount": 71000,
"asset": "USDC"
},
"counterparty": "Browserbase",
"explorer_url": "https://basescan.org/tx/0x4b2198842983876bb094c1d221288f11e55c10f0925dce072edcb48e3265a3cd",
"intent_id": "pi_01M7Z72MAQ11JPSA6C0FWDNR9W",
"status": "confirmed",
"block": 21754539
}
]
}
],
"has_more": true,
"next_cursor": "Mg==",
"total": 3
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Retrieve a wallet#
/v2/wallets/{id}- idIdrequired
A prefixed ID from this org.
The same Wallet object as List wallets.
- 401authentication
The key or token is missing, expired or revoked.
- 403permission
The key's scopes or the person's role don't allow this.
- 404not_found
No object with that id in this org.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X GET "https://api.ndstill.com/v2/wallets/wal_01M01DYTMEPJ2AS3Z98G7QYQ44" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"id": "wal_01M01DYTMEPJ2AS3Z98G7QYQ44",
"object": "wallet",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-08-15T00:43:11.374Z",
"explorer_url": "https://solscan.io/account/cw5MPgyS77QRH1Z8UsR58AtpUS3ooHDkmxa7Rsy6mWRQ",
"agent": {
"id": "agt_01KWY9N54EWVW2B9R5VCDZ7753",
"name": "Social scheduler"
},
"name": "Solana pilot wallet",
"custodian": "Privy (server wallets)",
"custody": "Key shares split between Privy and a secure enclave. ndStill approves through Privy's policy engine.",
"chain": "solana",
"address": "cw5MPgyS77QRH1Z8UsR58AtpUS3ooHDkmxa7Rsy6mWRQ",
"balance": {
"amount": 412500000,
"asset": "USDC"
},
"available": {
"amount": 412500000,
"asset": "USDC"
},
"pending": {
"amount": 0,
"asset": "USDC"
},
"policy_binding": {
"policy_id": "pol_01KYXCCRME9QXCXCFR6RPQ6HFG",
"policy_name": "Acme Robotics org policy",
"mode": "client_hook",
"rules": [
"Privy's policy engine asks ndStill before signing",
"Frozen: every signing request is refused"
]
},
"status": "frozen",
"recent": []
}Runs against the in-browser mock with a test key. Nothing leaves your browser.