Live Trade API
This API allows users to trade SunPump tokens using TRX. This includes Buy and Sell transactions.
Last updated
Was this helpful?
This API allows users to trade SunPump tokens using TRX. This includes Buy and Sell transactions.
Last updated
Was this helpful?
URL: /pumpfun/trade
Method: POST
Content-Type: application/json
API Key Header: api-key: your-api-key-here
Please do NOT use your main wallet private key for transaction on our API. If anybody has access to your API key or privateKey, they can access your funds. If you would prefer to build transactions instead of sending your Private Key through an HTTPS request, please refer to our
if {parameter}
contains ⚠️
, the data may be sensitive and you should double check what you are doing.
action
string
Yes
Type of transaction:
buy
or sell
tokenAddress
string
Yes
Token Contract Address
amount
number
Yes
Amount to trade (TRX for Buys)
slippage
number
No
Max allowed price change before transaction is reverted
priorityFee
number
No
Tip to speed up transactions (experimental ⚠️)
privateKey ⚠️
string
Yes
Your Wallet Private Key (use a fresh wallet)
Invalid Parameters
Max Slippage Reached
Insufficient Funds
Invalid Action