chain_confirmations
$0.005 via x402: did this transaction land, how deep is it buried, and is it safe to treat as FINAL on this chain. Returns status, block, tip, confirmations, gas used, fee paid and log count, compared against the chain's own finality threshold (Ethereum 64, Polygon 128, OP-stack 60). A success with two confirmations is not a settled payment. Also distinguishes 'no receipt yet' from 'failed' — conflating those is how agents double-spend.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "chain_confirmations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hash | No | Transaction hash (0x + 64 hex) | |
| chain | No | base|ethereum|optimism|arbitrum|polygon|gnosis (default base) | |
| x_payment | No |