Get query price
get_payment_infoRetrieve USDC price, asset, payTo, and network for a subgraph query to estimate cost or set up payment without paying.
Instructions
Preflight a subgraph: return the USDC price, asset, payTo and network from the x402 402 challenge WITHOUT paying. Use to estimate cost or to drive a harness-side payment.
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": {
"subgraph_id": "<subgraph_id>"
},
"name": "get_payment_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subgraph_id | Yes | Subgraph ID | |
| query | No | GraphQL query to price (defaults to a minimal _meta probe) |