eth_getTransactionCount

BNB Smart ChainC1

Returns 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/bsc/rpc

Parameters

NameTypeDescription
addressDATA, 20 bytesAddress to query.
blockQUANTITY | TAGBlock 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/bsc/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 BNB Smart Chain

BNB Smart Chain API

Preguntas frecuentes

How do I get the next nonce?

Query with the "pending" tag — it accounts for transactions already in the mempool.

Recarga, obtén tu clave y publica.

Autoservicio. Paga en cripto o con tarjeta. Medido por créditos: las primitivas pesadas cuestan más, las simples son baratas.

Obtener clave API