Skip to main content
POST
/
utils
/
sol
/
burn
Batch burn (SPL + Token-2022)
curl --request POST \
  --url https://ca.raze.sh/utils/sol/burn \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "items": [
    {
      "wallet": "WalletPubkeyA...",
      "tokenAddress": "MintPubkeyA...",
      "amount": 100
    },
    {
      "wallet": "WalletPubkeyA...",
      "tokenAddress": "MintPubkeyB...",
      "amount": 50
    }
  ]
}
'
{
  "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 burn. Either pass items[] for the full batched form, or use top-level wallet / tokenAddress / amount.

items
object[]
wallet
string
tokenAddress
string
amount
number
feeTipLamports
integer
transactionsFeeLamports
integer
encoding
enum<string>
default:base64
Available options:
base64,
base58
maxInstructionsPerTx
integer
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