SET Crypto API Suite · Fund a wallet
Every way a customer can pay in, in one call
POST/v1/deposit_options
Every way a customer can pay in to one bank account, in one call. SET opens (or finds) the customer's multichain EVM address in currency any and a USDC address on Solana, each with every check of POST /v1/cash_out_addresses, and lists each other source for the rail in otherSources, to open on its own.
Headers
Idempotency-Keystring- Any unique string, so a retry runs once. See Idempotency.
Body
customerstringrequired- The customer's id,
cus_…; the customer must be approved. Missing, it answers400 customer_required. bankAccountstringrequired- The customer's own bank account id, which its payments pay out to. Missing, it answers
400 customer_required. railstring- The payout rail. It defaults from the bank account's currency (
usdgivesach). solanaReturnAddressstring- The Solana address a payment the provider cannot pay out returns to. Leave it out to use your registered Solana return address; with neither, the
solanaoption readsrefusedwithreturn_address_required.
Notes
- Expanded routes are switched on per deployment; until then
403 expanded_routes_off. CheckGET /v1/capabilities(features.expandedRoutes). - Needs the
writescope. Any account type. - Each option runs every check of
POST /v1/cash_out_addresses: an approved customer, its own bank account, your asset policy and restrictions. - Answers 200, also when it opens the two addresses. A repeat finds the same addresses.
evmis a chainevm, currencyanyCash-Out Address: one 0x address on every EVM network the provider lists. Itspairs(network and currency, each with SET's minimum) are read from the provider.otherSourceslists each route for the rail thatevm.pairsand the Solana address do not cover; open each withPOST /v1/cash_out_addresses.- In the sandbox the simulated provider lists no pairs, so
evm.pairsis empty andotherSourceslists every route. The example'sotherSourcesis cut to its first 2 of 9. - An option that cannot be opened reads
statusrefusedwitherrorandmessage; the other option still answers. - For a live key the
evmoption also needs multichain addresses offered (features.multichainAddresses); otherwise it readsrefusedand the call still answers 200. - The
evmaddress takes no return address of its own: itsreturnAddressis SET's own crypto return address. - Bitcoin is never offered here.
- 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 expanded_routes_off400 customer_required