Approve Tokens
This endpoint returns an unsigned transaction to approve an unlimited amount of tokens for trading on SunPump. This should be signed and broadcasted locally or on the client side.
Endpoint
URL:
/sunpump/approve
Method:
POST
Content-Type:
application/json
API Key Header:
api-key: your-api-key
Parameters
Parameter
Type
Required
Description
tokenAddress
string
Yes
Token Contract Address
userAddress
string
Yes
Public Tron Address of sender
Example Approve Requests
Example Response JSON
Error Responses
Invalid Parameters
Insufficient Funds
Notes
Rate Limiting: This endpoint is rate-limited according to your plan's API key limits. Ensure that you handle these limits in your application.
Unsigned Transactions: The API returns unsigned transactions that users must sign before broadcasting.
Last updated
Was this helpful?