Quote a payment
quote_paymentGenerates an IDPHANTOM payment quote with a transparent 0.5% platform fee (min $0.01 USDC) and returns an EIP-712-ready payment intent. Quoting never moves funds.
Instructions
Create an IDPHANTOM payment quote with transparent platform fee (0.5%, min $0.01 USDC). Returns a payment intent ready for the payer's EIP-712 signature. Free: quoting never moves funds.
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": {
"payer_wallet": "<payer_wallet>",
"recipient_wallet": "<recipient_wallet>",
"asset_contract": "<asset_contract>",
"amount": "<amount>",
"chain_id": "<chain_id>",
"idempotency_key": "<idempotency_key>"
},
"name": "quote_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Token amount in smallest units (6 decimals for USDC), e.g. '2500000' = $2.50. | |
| chain_id | Yes | EVM chain ID: 8453 = Base mainnet. | |
| metadata | No | Optional free-form key/value object attached to the quote (surfaced in receipts). | |
| payer_wallet | Yes | EVM address of the payer wallet (0x..., checksummed). | |
| asset_contract | Yes | ERC-20 token contract to pay with, e.g. USDC on Base: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913. | |
| payer_agent_id | No | Optional A2A agent card ID of the payer, for discovery and audit. | |
| idempotency_key | Yes | Unique client-generated key; safe retries return the same quote instead of duplicating it. | |
| recipient_wallet | Yes | EVM address of the recipient wallet (0x...). | |
| recipient_agent_id | No | Optional A2A agent card ID of the recipient. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | ||
| isError | No | True when the API call failed; text carries { error: { code, message } }. |