Skip to main content

Claim Cashback – API

Use this endpoint to claim accumulated cashback from pump.fun and PumpSwap via the pump.fun API and the PumpSwap API.

We claim cashback accumulated as a result of trading in pools where cashbackEnabled = True.

✅ If you are planning to discard your account and switch to a new one — do not forget to call this function first.
It will return several rent fees (~0.004 SOL) to your wallet, even if you have not traded in pools with cashback enabled.

You can verify the refund on Solscan in the "Balance Changes" tab to confirm that the return was successfully processed.

✅ You do not need to provide a specific pool name — we do everything for you.

Local transactions are supported
For a local-transaction example, visit the Trade API page and reuse the same local-transaction code snippets — the flow works the same way here.
Some features from the standard Trade API work here (e.g., guaranteedDelivery).

Endpoint

POST https://api.pumpapi.io

Request Body

FieldDescription
privateKeyPrivate key of the wallet that will sign the claim transaction
actionMust be "claimCashback"
priorityFeePriority fee in SOL.

📦 Code Examples

import requests

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

data = {
"privateKey": "private_key",
"action": "claimCashback",
"priorityFee": "0.0000012",
}

response = requests.post(url, json=data)
print(response.json())