cast_nonce
Retrieve the transaction nonce of an address on zkSync networks. Specify the address and RPC URL to get the current nonce for transaction ordering.
Instructions
Query the transaction nonce of an address (cast nonce). Note: on zkSync this returns the TX nonce only, not the deploy nonce.
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>",
"rpcUrl": "<rpcUrl>"
},
"name": "cast_nonce"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | Address to query the nonce of | |
| rpcUrl | Yes | RPC URL of the network | |
| blockTag | No | Block to query at, e.g. "latest", "pending", or a block number |