SOL Transfer

Receive raw unsigned tx data for SOL transfers

Request

const response = await fetch(
  'https://arrow-api.yatori.io/v1/sol-transfer',
  {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
      'Authorization': 'Bearer <insert API key here>'
    },
    body: JSON.stringify({
      from_address: 'De5osHj8G13s15r6WNCdsF4ZSJBGS6q1DRzNHHSBtvQ6',
      to_address: 'gmDexz3AyHdgCyHrbYUrGUvodYE953oGKmywiNzgtGK',
      lamports: '100000'
    })
  }
)

Response

response.json
{
  "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, 1, 3, 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, 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, 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, 2, 2, 0, 1, 12, 2, 0, 0, 0, 160, 134, 1, 0, 0, 0, 0, 0
  ],
  "status": "SOL transfer tx created successfully"
}

Endpoint

POST
https://arrow-api.yatori.io/v1/sol-transfer

Headers

Auth Bearer Token

Include your Arrow API key as a Bearer token in the Authorization header

stringrequired

Parameters

from_address

The wallet address sending SOL

stringrequired

to_address

The wallet address receiving SOL

stringrequired

lamports

The amount to transfer in lamports (1 SOL = 1,000,000,000 lamports)

stringrequired

fee_des (optional)

The destination address for the fee

string addressoptional

fee_amount (optional)

The fee amount in base units

base unit stringoptional