Skip to content
SETSimple Easy Transactions
SET DocsSET Crypto API Suite and SET API referenceCurrent as of 2026-11-21 · wallet release 7d8a79fb
Browse: SET Crypto API Suite

SET Crypto API Suite · Wallets and balances

Pay from a self-custody wallet: SET checks, then proposes

POST/v1/wallets/{id}/payments

Key scope: write · Success: 201

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

id stringrequired
The self-custody wallet's id, swl_….

Headers

Idempotency-Key string
Any unique string, so a retry runs once. See Idempotency.

Body

asset "usdc" | "eurc"required
One of the wallet's own limits.assets; another answers 400 asset_invalid.
amount stringrequired
A decimal string above 0 in the asset, up to 12 integer digits and 6 decimals, for example "250.00" (euros for eurc). Never a float.
destination stringrequired
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 answers 400 destination_invalid.
externalId string
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. Check GET /v1/capabilities (features.selfCustodyWallets). While SET winds them down, existing wallets still pay; no new wallet opens.
  • Needs the write scope. 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, and perDay over a rolling 24 hours) answer 422 policy_refused; restrictions and sanctions screening of the destination answer 403 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.bytesBase64 is the exact bytes each owner signs; send its timestamp back with the signature.
  • A repeated externalId answers 200 with the same payment and proposes nothing new; that answer has no signingPayload, so read the payment for fresh bytes.
  • screening is the destination's sanctions screening result; not_screened in the sandbox.
  • kind is transfer; a POST /v1/payouts from a self-custody wallet (swl_…) makes the same object with kind payout.
  • Self-custody payments reach confirmed only for USDC on Base today; elsewhere they stop at executed.
  • The example was made with a sandbox key: its base wallet'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_disabled
  • 404 wallet_unknown
  • 400 body_invalid
  • 400 external_id_invalid
  • 409 wallet_not_active
  • 400 asset_invalid
  • 400 amount_invalid
  • 400 destination_invalid
  • 422 policy_refused
  • 403 destination_refused
  • 503 provider_unavailable
  • 502 provider_refused

All codes: Errors.