EVM nonce
evm_nonceUse when you need an account's transaction count on Base, Ethereum, Arbitrum, Polygon or Optimism: nonce at the latest block and the pending nonce (queued transactions in the node's pool). Returns the paid x402 request for your input (GET /evm/nonce, $0.001 per call; schema linked). Call that URL with an x402 or MPP client to get the data. Bad input is refused before any charge. Transaction count (latest and pending) only; for the coin balance use evm_native_balance, for a transaction by hash use evm_transaction or evm_receipt. First call each day returns the data itself, free; later calls return the paid request.
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": {
"address": "<address>"
},
"name": "evm_nonce"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Chain; default base | base |
| address | Yes | Account whose nonce is read (0x + 40 hex); returns the latest nonce and the pending nonce |