Skip to main content
POST
Send native assets and tokens
Nécessite l’en-tête Idempotency-Key. ERC20 appelle transfer() ; SPL peut créer un ATA si nécessaire.

Autorisations

x-api-key
string
header
requis

En-têtes

Idempotency-Key
string<uuid>
requis

Provide a unique Idempotency-Key per user to ensure single submission.

Corps

application/json
chain
string
requis

Chain slug (e.g., base, base-sepolia, solana-devnet).

to
string
requis

Recipient wallet address (owner for token transfers).

asset
enum<string>
requis

Asset type to send.

Options disponibles:
native,
erc20,
spl
amount
string
requis

Amount in base units (wei/lamports/token units).

from
string | null

Optional sender wallet; defaults to user's default wallet for the chain.

token
string | null

Token address (EVM) or mint (Solana) when sending tokens.

Réponse

Submission accepted

id
string
requis

AFK transaction id for the submitted action.

status
enum<string>
requis

Submission status.

Options disponibles:
SUBMITTED
hash
string | null
requis

On-chain transaction hash/signature (may be null at submission time).

explorerUrl
string | null
requis

Direct link to the transaction on a chain explorer. Null until a hash/signature exists.

chainName
string
requis

Human-readable chain name for display (e.g., Base, Ethereum, Solana).