POST
/
send
Send native assets and tokens
curl --request POST \
  --url https://app.afkcrypto.com/api/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>",
  "simulate": true
}'
{ "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

Response

200
application/json

Submission accepted

The response is of type object.