Prepare an unsigned SPL token transfer from an address. Derives the sender and recipient Associated Token Accounts (creating the recipient ATA in-transaction when it does not yet exist), and returns the unsigned transaction serialized to base64 together with the recent blockhash, compute-budget settings and the estimated fee. The amount is in the token's raw base units (scaled by the mint decimals).
Represents the name of the blockchain network used; "mainnet" is the live network with actual data while the others are test networks.
In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. context is specified by the user.
In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. context is specified by the user.
Sender's Solana wallet address (base58). Owner of the source token account; also the fee payer.
Recipient's Solana wallet address (base58). Its Associated Token Account is derived (and created in-transaction if it does not yet exist).
The SPL token mint address (base58).
Amount to send, in the token's raw base units (integer string, scaled by the mint decimals).
Optional token program - "TOKEN" (classic SPL, default) or "TOKEN-2022" (Token Extensions).
Fee configuration.
Fee priority - slow, standard or fast. Selects the priority fee tier.
Specifies the version of the API that incorporates this endpoint.
Defines the ID of the request. The requestId is generated by Crypto APIs and it's unique for every request.
In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. context is specified by the user.
The sender (fee payer) wallet address.
The recipient wallet address.
The transferred amount in the token's raw base units.
The recent blockhash the transaction is bound to (~60s TTL).
The last block height at which the blockhash is still valid.
The estimated transaction fee.
The fee amount, in the base denomination.
The fee denomination (lamports).
The compute unit limit set on the transaction (ComputeBudget).
The compute unit price in micro-lamports per compute unit (ComputeBudget).
The unsigned transaction, serialized to base64, ready for the signer.
The SPL token mint address.
The sender's derived Associated Token Account (source).
The recipient's derived Associated Token Account (destination).
The token mint decimals used to scale the amount.
The token program used - "TOKEN" or "TOKEN-2022".
True when the recipient's ATA did not exist and a create-ATA instruction was prepended to the transaction.
| Blockchain protocol | Credits for 1 Results |
| Default Cost | 240 |
| Solana | 240 |
API Key
{
"context": "yourExampleString",
"data": {
"item": {
"fromAddress": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM",
"toAddress": "3Nxr6Wj5tK1abRxWzAf3VvJ2SsTf1cW9y5gEwYbNb6vA",
"tokenContract": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "1000000",
"tokenStandard": "TOKEN",
"feeOptions": {
"priority": "standard"
}
}
}
}
{
"apiVersion": "2024-12-12",
"requestId": "601c1710034ed6d407996b30",
"context": "yourExampleString",
"data": {
"item": {
"sender": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM",
"recipient": "3Nxr6Wj5tK1abRxWzAf3VvJ2SsTf1cW9y5gEwYbNb6vA",
"amount": "1000000",
"recentBlockhash": "8HWLsJviKujXjg23sm7v5aiaU9gE1QpLAasEUpCuDUBN",
"lastValidBlockHeight": "463187603",
"fee": {
"amount": "7000",
"unit": "lamports"
},
"computeUnitLimit": "25000",
"computeUnitPrice": "10000",
"serializedTransaction": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAIEfowIh2C/3h3dzzLBfyCbgkLuUqrxMfrNiNDqLG0LBvIjV7d1+yEItK+z/ZXUvIT1uq9WzenyybmZEAeqND/kXwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwZGb+UhFzL/7K26csOb57yM5bvF9xJrLEObOkAAAABsPEd2LGZ7+weJWXmkKYJUWGEjbNW7o2rEg/TnL/pyZQMDAAUCQA0DAAMACQMQJwAAAAAAAAICAAEMAgAAAKCGAQAAAAAA",
"tokenContract": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"senderTokenAccount": "H8sMJSCQxfKiFTCfDR3DUMLPwcRbM61LGFJ8N4dK3WjS",
"recipientTokenAccount": "Bqmac8kQe9dHwXFkJnv5KGjJDpvXfP6E1sTdKMv2yJqL",
"decimals": 6,
"tokenStandard": "TOKEN",
"recipientTokenAccountCreated": false
}
}
}