Skip to main content

Claim Cashback – pump.fun API

Use this endpoint to claim accumulated cashback from trades and creator fees from pump.fun and PumpSwap.

We claim cashback from trading in pools where cashbackEnabled = True, as well as creator fees from trades on tokens you created with cashbackToTradersEnabled = False (the default, no need to pass it when creating a token).

βœ… 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 or created any tokens.

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.

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())