YATORI
DOCS
Solana Transactions Token TransfersCreate Account + Token Transfer with Memo

Create Account + Token Transfer with Memo

Create a token account and transfer tokens with memo in a single transaction

Start for Free

Endpoint

POST https://arrow-api.yatori.io/create-account-token-transfer-memo

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

yid

Unique identifier for the transaction memo

stringrequired

cURL Request

curl -X POST https://arrow-api.yatori.io/create-account-token-transfer-memo   -H "Content-Type: application/json" \
  -H "x-api-key: " \
  -d '{
    "from_address": "G8RtxPyG2pdrAhrNRMgg7Hia8imCofdCYxvyWiNG14hx",
    "to_address": "gmDexz3AyHdgCyHrbYUrGUvodYE953oGKmywiNzgtGK",
    "token_mint_address": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "1000",
    "yid": "some_unique_id"
  }'

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, 6, 9, 224, 198, 132, 241, 33, 60, 165, 69, 165, 137, 249, 56, 14, 189, 194, 57, 107, 230, 202, 36, 126, 45, 186, 41, 133, 233, 0, 160, 254, 107, 105, 131, 114, 209, 25, 121, 139, 14, 220, 248, 44, 176, 117, 159, 14, 254, 214, 6, 151, 36, 118, 109, 236, 203, 32, 120, 192, 61, 6, 179, 173, 45, 218, 45, 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, 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, 5, 74, 83, 90, 153, 41, 33, 6, 77, 36, 232, 113, 96, 218, 56, 124, 124, 53, 181, 221, 188, 146, 187, 129, 228, 31, 168, 64, 65, 5, 68, 141, 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, 3, 7, 6, 0, 2, 6, 8, 3, 5, 1, 0, 5, 4, 1, 2, 0, 0, 9, 3, 232, 3, 0, 0, 0, 0, 0, 0, 4, 0, 178, 1, 97, 114, 114, 111, 119, 45, 97, 112, 105, 124, 109, 105, 110, 116, 58, 69, 80, 106, 70, 87, 100, 100, 53, 65, 117, 102, 113, 83, 83, 113, 101, 77, 50, 113, 78, 49, 120, 122, 121, 98, 97, 112, 67, 56, 71, 52, 119, 69, 71, 71, 107, 90, 119, 121, 84, 68, 116, 49, 118, 124, 102, 58, 71, 56, 82, 116, 120, 80, 121, 71, 50, 112, 100, 114, 65, 104, 114, 78, 82, 77, 103, 103, 55, 72, 105, 97, 56, 105, 109, 67, 111, 102, 100, 67, 89, 120, 118, 121, 87, 105, 78, 71, 49, 52, 104, 120, 124, 116, 58, 103, 109, 68, 101, 120, 122, 51, 65, 121, 72, 100, 103, 67, 121, 72, 114, 98, 89, 85, 114, 71, 85, 118, 111, 100, 89, 69, 57, 53, 51, 111, 71, 75, 109, 121, 119, 105, 78, 122, 103, 116, 71, 75, 124, 97, 58, 49, 48, 48, 48, 124, 121, 105, 100, 58, 115, 111, 109, 101, 95, 117, 110, 105, 113, 117, 101, 95, 105, 100
  ],
  "status": "Transfer tx with create token account instruction created Successfully"
}