SET Crypto API Suite · Wallets and balances
Post a wallet owner's signature
POST/v1/wallets/{id}/payments/{payment}/signatures
Posts one owner's signature over a payment's signingPayload bytes. SET relays it to the provider unchanged and adds none of its own; the provider checks the signer is an owner and counts it toward the threshold.
Path parameters
idstringrequired- The self-custody wallet's id,
swl_…. paymentstringrequired- The payment's id,
swp_….
Headers
Idempotency-Keystring- Any unique string, so a retry runs once. See Idempotency.
Body
signaturestringrequired- The owner's ECDSA P-256 (SHA-256) signature over the
signingPayloadbytes, base64 (DER), 40 to 200 characters. Anything else answers400 signature_invalid. timestampintegerrequired- The
signingPayload's owntimestamp, a whole number of milliseconds (400 timestamp_invalid). More than 5 minutes old, it answers410 signature_expired.
Notes
- Self-custody wallets are switched on per deployment; until then
503 self_custody_disabled. CheckGET /v1/capabilities(features.selfCustodyWallets). - Needs the
approvescope (403 scope_missingwithout it). Any account type. Unlike acceptance, an API key withapprovemay post an owner's signature. - The payment must be
awaiting_signature(409 payment_not_waiting). - An owner may be a person or one of the business's own P-256 server keys named in
owners.publicKeys; SET holds only the public half. - Answers 200 with the payment. With the threshold met the provider executes at once: state
executedwithtxHash. Below it the payment staysawaiting_signature, with fresh bytes for the next owner. executedmeans the provider sent the transaction. Self-custody payments reachconfirmedonly for USDC on Base today, when SET reads the transfer on chain; elsewhere they stop atexecuted.- If the provider refuses the signature (not an owner's, or the wrong bytes) the answer is
502 provider_refusedwith the provider's code. - The example was made with a sandbox key: the sandbox counts the signature toward the threshold without checking it, which the live provider does.
- 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
403 scope_missing503 self_custody_disabled404 payment_unknown409 payment_not_waiting400 body_invalid400 signature_invalid400 timestamp_invalid410 signature_expired503 provider_unavailable502 provider_refused