Skip to main content
POST
/
transfer-tokens
Transfer Tokens
curl --request POST \
  --url https://tokens.shakesco.com/transfer-tokens \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "from_customer_ref": "<string>",
  "to_customer_ref": "<string>",
  "amount": 123
}
'
{ "tx_hash": "0xabc123..." }

Documentation Index

Fetch the complete documentation index at: https://docs.shakesco.com/llms.txt

Use this file to discover all available pages before exploring further.

For the complete documentation index, see llms.txt. Moves tokens between two of your customers. Both are identified by your own customer_ref strings.
Treat this as a transaction. If you don’t get a 200 OK, check both balances before retrying. A successful retry after a successful original transfer doubles the movement.

Request Body

from_customer_ref
string
required
Your unique identifier for the sender
to_customer_ref
string
required
Your unique identifier for the receiver
amount
number
required
Number of tokens to transfer. Decimals allowed.

Response

tx_hash
string
Reference identifier for the transfer
await fetch("https://tokens.shakesco.com/transfer-tokens", {
  method: "POST",
  headers: { Authorization: `Bearer ${API_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({
    from_customer_ref: "customer-123",
    to_customer_ref: "customer-456",
    amount: 5,
  }),
});
{ "tx_hash": "0xabc123..." }