buy-token
Purchase tokens on the Pump.fun platform via the Solana blockchain. Input the token address, buy amount in SOL, account name, and slippage tolerance to execute the transaction.
Instructions
Buy a Pump.fun token
Input Schema
Name | Required | Description | Default |
---|---|---|---|
accountName | No | Name of the account to use | default |
buyAmount | Yes | Amount to buy in SOL | |
slippageBasisPoints | No | Slippage tolerance in basis points (1% = 100) | |
tokenAddress | Yes | The token's mint address |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"accountName": {
"default": "default",
"description": "Name of the account to use",
"type": "string"
},
"buyAmount": {
"description": "Amount to buy in SOL",
"minimum": 0.0001,
"type": "number"
},
"slippageBasisPoints": {
"default": 100,
"description": "Slippage tolerance in basis points (1% = 100)",
"type": "number"
},
"tokenAddress": {
"description": "The token's mint address",
"type": "string"
}
},
"required": [
"tokenAddress",
"buyAmount"
],
"type": "object"
}