Skip to main content
POST
/
send
Send native assets and tokens
curl --request POST \
  --url https://api.afkcrypto.com/v1/send \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: <idempotency-key>' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "chain": "<string>",
  "from": "<string>",
  "to": "<string>",
  "asset": "native",
  "token": "<string>",
  "amount": "<string>"
}'
{ "id": "tx_...", "status": "SUBMITTED", "hash": "0x..." }
{ "id": "tx_...", "status": "SUBMITTED", "hash": "0x..." }

Authorizations

x-api-key
string
header
required

Headers

Idempotency-Key
string<uuid>
required

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

Body

application/json
chain
string
required

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

to
string
required

Recipient wallet address (owner for token transfers).

asset
enum<string>
required

Asset type to send.

Available options:
native,
erc20,
spl
amount
string
required

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.

Response

Submission accepted

id
string
required

AFK transaction id for the submitted action.

status
enum<string>
required

Submission status.

Available options:
SUBMITTED
hash
string | null
required

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

I