Create Account + Token Transfer
Create a token account and transfer tokens in a single transaction
Endpoint
POST https://arrow-api.yatori.io/create-token-account-transfer
Headers
x-api-key
Your Arrow API key
stringrequired
Parameters
from_address
The wallet address sending the tokens (payer)
stringrequired
to_address
The wallet address receiving the tokens
stringrequired
token_mint_address
The mint address of the token to create account for and transfer
stringrequired
amount
The amount to transfer in base units
stringrequired
cURL Request
curl -X POST https://arrow-api.yatori.io/create-token-account-transfer \
-H "Content-Type: application/json" \
-H "x-api-key: " \
-d '{
"from_address": "G8RtxPyG2pdrAhrNRMgg7Hia8imCofdCYxvyWiNG14hx",
"to_address": "gmDexz3AyHdgCyHrbYUrGUvodYE953oGKmywiNzgtGK",
"token_mint_address": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "1000"
}' Sample Response
{
"data": [
1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 5, 8, 187, 204, 43, 102, 152, 70, 57, 21, 115, 206, 230, 147, 215, 124, 46, 132, 211, 114, 214, 30, 226, 236, 193, 213, 177, 109, 63, 103, 113, 200, 253, 231, 127, 137, 237, 247, 130, 56, 74, 134, 204, 67, 191, 123, 166, 91, 79, 41, 161, 140, 76, 123, 201, 155, 45, 37, 32, 35, 97, 191, 124, 46, 38, 180, 239, 55, 169, 113, 124, 85, 97, 165, 5, 210, 19, 156, 99, 51, 16, 229, 109, 159, 136, 34, 207, 184, 170, 218, 163, 93, 117, 47, 78, 170, 173, 57, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169, 10, 47, 166, 50, 194, 158, 42, 159, 85, 182, 21, 57, 187, 54, 186, 247, 145, 129, 134, 162, 61, 143, 77, 101, 185, 8, 248, 147, 69, 189, 243, 172, 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89, 198, 250, 122, 243, 190, 219, 173, 58, 61, 101, 243, 106, 171, 201, 116, 49, 177, 187, 228, 194, 210, 246, 224, 228, 124, 166, 2, 3, 69, 47, 93, 97, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 6, 6, 0, 1, 5, 7, 3, 4, 1, 0, 4, 4, 2, 1, 0, 0, 9, 3, 232, 3, 0, 0, 0, 0, 0, 0
],
"status": "Transfer tx with create token account instruction created Successfully"
}