eth_getTransactionCount

Retrieves the transaction count (nonce) for a given Ethereum address.

Example

import { getRpcClient, eth_getTransactionCount } from "thirdweb/rpc";
const rpcRequest = getRpcClient({ client, chain });
const transactionCount = await eth_getTransactionCount(rpcRequest, {
address: "0x...",
});

Parameters

Returns

A promise that resolves to the transaction count as a number.