Skip to main content

πŸ”₯ Burn Tokens – API

Use this endpoint to permanently remove tokens from circulation.
Burning is irreversible β€” double‑check your parameters before sending the call.

Endpoint​

POST https://api.pumpapi.io

Request Body​

FieldDescription
privateKeyWallet that owns the tokens. Not required if you pass apiKey instead.
apiKeyOptional. Not required. Pass it instead of privateKey if you prefer not to send your private key. Generate one on the Trade API page (πŸ”‘ spoiler).
actionMust be "burn"
mintMint address of the token
mintRefTemporary token reference for token creations
amountAmount to burn. '100%' burns all available balance of the token
priorityFeeOptional extra fee in SOL to speed up the transaction

The response returns the burn transaction signature once confirmed.

πŸ“¦ Code Examples​

import requests

url = "http://api.pumpapi.io"

data = {
"privateKey": "base58_private_key", # or use "apiKey": "your_api_key" instead β€” generate one at pumpapi.io/trade-api (πŸ”‘ spoiler)
"action": "burn",
"mint": "mint_address",
"amount": "100%", # burn all tokens
"priorityFee": 0.000001
}

response = requests.post(url, json=data)
print(response.json()) # {'signature': '...'}