quote_coin
Free. What an amount of SOL buys of a pump.fun coin now (on its bonding curve or PumpSwap), or what tokens sell for, with pumpdata's 0.4% fee. For: how many tokens does 0.5 SOL get, what would I get selling, before buy_coin.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mint": "<mint>"
},
"name": "quote_coin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sol | No | SOL to spend on a buy (0.001 to 100); default 0.1 | |
| mint | Yes | the coin's mint (base58) | |
| side | No | buy (default) or sell | |
| tokens | No | raw token units to sell (6 decimals) for a sell quote |