eth_getTransactionCount
PolygonC1Returns the nonce of an address at a given block — the count of transactions it has sent. Use "pending" to build the next transaction, or a historic block to audit past activity.
Endpoint
POST https://api.1st-node.com/v1/polygon/rpcParameters
| Name | Type | Description |
|---|---|---|
| address | DATA, 20 bytes | Address to query. |
| block | QUANTITY | TAG | Block number or tag; "pending" for the next nonce. |
Returns
QUANTITY — the number of transactions sent, hex-encoded.
Request
curl https://api.1st-node.com/v1/polygon/rpc \
-H "Authorization: Bearer $ONE_KEY" \
-H "content-type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_getTransactionCount",
"params": ["0x3f5ce5fbfe3e9af3971dd833d26ba9b5c936f0be", "pending"]
}'{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_getTransactionCount",
"params": ["0x3f5ce5fbfe3e9af3971dd833d26ba9b5c936f0be", "pending"]
}Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x1a4"
}More state methods on Polygon
Perguntas frequentes
How do I get the next nonce?
Query with the "pending" tag — it accounts for transactions already in the mempool.
Recarregue, pegue a chave e publique.
Autoatendimento. Pague em cripto ou cartão. Medido por créditos: primitivas pesadas custam mais, as simples são baratas.
Obter chave de API