Skip to main content
POST
/
utils
/
sol
/
transfer
Batch transfer (SOL + SPL + Token-2022)
curl --request POST \
  --url https://ca.raze.sh/utils/sol/transfer \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "sender": "treasuryWalletPubkeyHere...",
  "items": [
    {
      "receiver": "RecipientPubkeyA...",
      "amount": 0.1
    },
    {
      "receiver": "RecipientPubkeyB...",
      "tokenAddress": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": 5
    }
  ],
  "simulate": true
}
'
{
  "success": true,
  "transactions": [
    "<string>"
  ],
  "batches": [
    {
      "signers": [
        "<string>"
      ],
      "itemIndices": [
        123
      ],
      "instructionCount": 123
    }
  ],
  "mint": "<string>",
  "platform": "<string>",
  "status": {},
  "simulations": [
    {}
  ],
  "error": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.raze.bot/llms.txt

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

Authorizations

X-API-Key
string
header
required

Body

application/json

Batch transfer. Either pass items[] for the full batched form, or use the top-level sender / receiver / tokenAddress / amount for the legacy single-item shape. Items are grouped by sender and packed into the fewest possible 1232-byte transactions.

items
object[]
sender
string
receiver
string
tokenAddress
string
amount
number
feeTipLamports
integer

Optional override for the Raze tip lamports (min 900000).

transactionsFeeLamports
integer

Optional priority fee in lamports. When set, compute-budget instructions are added to every output tx.

encoding
enum<string>
default:base64
Available options:
base64,
base58
maxInstructionsPerTx
integer

Optional cap on non-fee instructions per tx. Default = whatever fits the 1232-byte budget.

simulate
boolean
default:false

Response

Transactions built

Shared envelope for every /utils/sol/* write endpoint. Optional fields are omitted from the JSON when unset.

success
boolean
required
transactions
string[]

Serialized partially-signed transactions in submission order.

batches
object[]

For batch endpoints (transfer, burn): packing metadata. batches[i] describes transactions[i].

mint
string

Set by /utils/sol/launch — the mint of the launched token.

platform
string

Set by /utils/sol/launch and /utils/sol/fees/claim.

status
object

Set by /utils/sol/fees/config for action=status reads.

simulations
object[]

Set when the request had simulate: true. One entry per built tx, in the same order as transactions. Each entry is the RPC simulateTransaction value object (logs / unitsConsumed / err).

error
string