SET Crypto API Suite · Wallets and balances
Pay from a self-custody wallet: SET checks, then proposes
POST/v1/wallets/{id}/payments
Proposes a transfer from a self-custody wallet. SET checks the wallet's own limits and screens the destination, then proposes the transfer to the provider and answers awaiting_signature with the bytes each owner signs. Nothing moves until enough owners sign with POST /v1/wallets/{id}/payments/{payment}/signatures.
Path parameters
idstringrequired- The self-custody wallet's id,
swl_….
Headers
Idempotency-Keystring- Any unique string, so a retry runs once. See Idempotency.
Body
asset"usdc" | "eurc"required- One of the wallet's own
limits.assets; another answers400 asset_invalid. amountstringrequired- A decimal string above 0 in the asset, up to 12 integer digits and 6 decimals, for example
"250.00"(euros foreurc). Never a float. destinationstringrequired- An address on the wallet's own chain:
0x+ 40 hex on an EVM chain or base58 (32 to 44 characters) on Solana. Another form answers400 destination_invalid. externalIdstring- Your reference: 1 to 64 letters, digits,
.,:,_or-, unique per account (400 external_id_invalid). A repeat answers the payment already made.
Notes
- Self-custody wallets are switched on per deployment; until then
503 self_custody_disabled. CheckGET /v1/capabilities(features.selfCustodyWallets). While SET winds them down, existing wallets still pay; no new wallet opens. - Needs the
writescope. Any account type. - The wallet must be
active: every named owner accepted and the read-back matched (409 wallet_not_active). - The wallet's own limits (
assets,perPayment, andperDayover a rolling 24 hours) answer422 policy_refused; restrictions and sanctions screening of the destination answer403 destination_refused. - There is no chain field: the payment is always on the wallet's own chain.
- The answer is state
awaiting_signature.intent.signingPayload.bytesBase64is the exact bytes each owner signs; send itstimestampback with the signature. - A repeated
externalIdanswers 200 with the same payment and proposes nothing new; that answer has nosigningPayload, so read the payment for fresh bytes. screeningis the destination's sanctions screening result;not_screenedin the sandbox.kindistransfer; aPOST /v1/payoutsfrom a self-custody wallet (swl_…) makes the same object withkindpayout.- Self-custody payments reach
confirmedonly for USDC on Base today; elsewhere they stop atexecuted. - The example was made with a sandbox key: its
basewallet's transfer goes on Base Sepolia. - This example is a recorded run of SET's own code (wallet release
e9b03447) with a sandbox key; ids and times are that run's.
Errors
503 self_custody_disabled404 wallet_unknown400 body_invalid400 external_id_invalid409 wallet_not_active400 asset_invalid400 amount_invalid400 destination_invalid422 policy_refused403 destination_refused503 provider_unavailable502 provider_refused