SET Crypto API Suite · Senders and screening
Register a wallet you pay from, with its signature (personal_sign, EIP-1271 or Solana signMessage)
POST/v1/senders
Registers a wallet you pay from, with its signature of the message from GET /v1/senders/message. Payments from it are then credited to you.
Headers
Idempotency-Keystring- Any unique string, so a retry runs once. See Idempotency.
Body
chain"base" | "ethereum" | "solana" | "arbitrum" | "avalanche_c_chain" | "celo" | "optimism" | "polygon"requiredbase,ethereumorsolana; with expanded routes on, alsoarbitrum,avalanche_c_chain,celo,optimismandpolygon. Another answers400 chain_invalid.addressstringrequired- The wallet:
0x+ 40 hex on an EVM chain (stored lowercase), base58 of 32 to 44 characters on Solana (exact case). Otherwise400 address_invalid. issuedAtstringrequired- The
issuedAtthatGET /v1/senders/messagereturned with the message (400 issued_at_invalid). The signature must arrive within 1 hour of it (400 signature_expired). signaturestringrequired- The wallet's signature of the message:
0xhex on an EVM chain (EIP-191personal_sign, or EIP-1271 for a contract wallet); on Solana the 64-byte Ed25519signMessagesignature as base58 or0xhex. Otherwise400 signature_invalid. labelstring- Your name for the wallet, up to 60 characters.
Notes
- Direct Deposit is switched on per deployment; until then
503 direct_deposit_disabled. - Needs the
writescope; the key needs nodirect_depositscope. - A platform account. A business account answers
409 merchant_no_sendersuntil SET switches business senders on. - A signature from another wallet answers
422 signature_not_from_wallet; a wallet another business pays from answers409 sender_taken; a restricted wallet is refused. - Answers 201 with
registeredtruethe first time; a repeat for a wallet already yours answers 200 withregisteredfalseand is not verified again. - A plain key (
eoa) needs no chain read; a contract wallet (EIP-1271) or a contract'sowner()is checked on the chain. lateAttributioncounts payments from this wallet recorded with an unknown sender in the last 30 days that are now credited to you:creditedat once,queuedfor SET's scheduled pass.- With expanded routes on, a plain key registered on one EVM chain is registered on every EVM chain Direct Deposit takes; a contract wallet only on the chain it was checked on.
screeningis the wallet's sanctions screening at registration;not_screenedin the sandbox.- 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
409 merchant_no_senders503 direct_deposit_disabled400 chain_invalid400 address_invalid403 restricted400 issued_at_invalid400 signature_expired400 signature_invalid409 sender_taken422 signature_not_from_wallet