eth_getTransactionCount
EthereumC1Returns 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/ethereum/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/ethereum/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 Ethereum
Частые вопросы
How do I get the next nonce?
Query with the "pending" tag — it accounts for transactions already in the mempool.
Пополнили, получили ключ, запустили.
Полное самообслуживание. Оплата криптой или картой. Тарификация в кредитах — тяжёлые примитивы дороже, простые дёшевы.
Получить API-ключ