💸Sell SPL Token
Sell SPL token using primeapis one of the esiest and fastest way of selling SPL tokens
To sell an SPL token, send a POST request with the following parameters: private_key
, mint
, amount
, fee
, and slippage
.
Recommended Practice
We recommend creating a new wallet to interact with our APIs. Below is a guide on the required data for the request:
private_key: Your base58 private key, used to pay for the transaction and fee.
mint: The token mint CA of the token you want to sell.
amount: The amount in tokens you want to use to sell the token (e.g., 0.001 or 1).
fee: The transaction fee (e.g., 0.0005 or 0.001).
Example Node.js Form Code
Here's an example of how to send a POST request to the API endpoint using Node.js:
A successful response from the API will be in JSON format and include the following fields:
A failed transaction response will have 2 fields in JSON format status and txid
If your transactions are failing alot try increasing the fee
Status: Indicates the success of the transaction.
solReceived: The amount of SOL received.
txid: The transaction ID for reference.
Contact Information
These APIs are in beta and being tested. Any bug reports and suggestions are highly appreciated. If you need more information, have a suggestion, or want to report an issue, please use the contact details below:
Email: prime@oss.one
Telegram: @primeoss
TG Group Join group
Thank you for using Prime APIs!
Last updated