Estimate the platform fee for an amount
phantom_estimate_feePrice discovery before quoting: given an amount in 6-decimal USDC units, returns the exact platform fee (0.5%, min $0.01), the maximum total the payer will be asked to authorize, the current fee schedule (fee_bps, min_fee, max_fee_cap) and an estimated gas figure. Free and read-only — the same fee quote_payment applies.
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": {
"amount": "<amount>"
},
"name": "phantom_estimate_fee"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount in smallest units (6 decimals for USDC), e.g. '2500000' = $2.50. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | ||
| isError | No | True when the API call failed; text carries { error: { code, message } }. |