SET Crypto API Suite · Wallets and balances
One payment, re-read from the provider
GET/v1/wallets/{id}/payments/{payment}
One self-custody wallet payment. Each read re-reads the transfer at the provider; while the payment waits for signatures, intent.signingPayload holds fresh bytes to sign.
Path parameters
idstringrequired- The self-custody wallet's id,
swl_…. paymentstringrequired- The payment's id,
swp_….
Notes
- Self-custody wallets are switched on per deployment; until then
503 self_custody_disabled. CheckGET /v1/capabilities(features.selfCustodyWallets). - Needs the
readscope. Any account type. - A payment id that is not this wallet's, or a wallet id that is not yours, answers
404 payment_unknown. - Each read while the payment waits answers new bytes with a new
timestamp(the read's own time). Sign them promptly:POST …/signaturesrefuses a timestamp more than 5 minutes old with410 signature_expired. - States:
awaiting_signature,processing,executed,confirmed; orfailed,rejected,expiredordismissed, withfailureCode. - Once the owners have signed,
intentcarries nosigningPayloadandtxHashholds the transaction. confirmedis set by SET's scheduled pass when it reads the transfer on chain. Self-custody payments reachconfirmedonly for USDC on Base today; elsewhere they stop atexecuted.- The example was made with a sandbox key: its
basewallet is 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 payment_unknown