SET Crypto API Suite · Wallets and balances
Accept ownership of a self-custody wallet
POST/v1/wallets/{id}/acceptance
An owner named in owners.members accepts ownership of a self-custody wallet. After the last owner accepts, SET creates the wallet at the provider, owned by the owners, and reads it back.
Path parameters
idstringrequired- The self-custody wallet's id,
swl_….
Headers
Idempotency-Keystring- Any unique string, so a retry runs once. See Idempotency.
Notes
- A person accepts in the SET Console; a key gets 403
acceptance_needs_a_person. - Self-custody wallets are switched on per deployment; until then
503 self_custody_disabled. CheckGET /v1/capabilities(features.selfCustodyWallets). - Each owner signs in to the SET Console as themselves and accepts there. Any API key, even with the
approvescope, answers403 acceptance_needs_a_person, before the wallet id is checked. - A signed-in member not named as an owner answers
403 not_an_owner; a signed-in viewer answers403 role_required. - Answers 200. While other owners have not accepted, the wallet stays
pending_acceptancewithaddressnull. - When the last owner accepts, SET creates the owners' key quorum, the policy and the wallet at the provider and reads them back: state
active, the address shown,policy.readBackmatches. A read-back that differs answers statefrozenand no address. - Public keys in
owners.publicKeys(the business's server keys) never accept; only the people named inowners.membersdo. - A repeat by the same owner answers 200 and creates nothing more.
- Until the wallet is
active, a payment from it answers409 wallet_not_active. - 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_disabled403 acceptance_needs_a_person404 wallet_unknown403 not_an_owner503 provider_unavailable502 provider_refused