RPC method

eth_getTransactionCount on Berachain

Supported on SwiftNodes

Everything below was measured on 2026-10-13 by calling eth_getTransactionCount on Berachain through the same endpoint customers use, and is re-measured weekly.

What eth_getTransactionCount does

Returns the number of transactions an address has sent, which is the nonce its next transaction must use. With the pending tag it also counts the address's transactions waiting in the node's mempool.

eth_getTransactionCount on Berachain: what we measured

On an address that had just sent a transaction in the latest block (0xb2ac79c3df22f3eae8fbdc0627995a5b610dc357):

"latest"441,244
"pending"441,244

Which tag to use

"pending" equalled "latest" for this address when we read it. Use "pending" for the next nonce anyway: it covers your own transactions that are sent but not yet mined. On a chain with a few seconds per block, sending twice in one block is common.

Example request

curl -s https://rpc.swiftnodes.io/rpc/berachain?key=YOUR_API_KEY \
  -X POST -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_getTransactionCount","params":["0xb2ac79c3df22f3eae8fbdc0627995a5b610dc357","pending"]}'
import { createPublicClient, http } from "viem";

const client = createPublicClient({
  transport: http("https://rpc.swiftnodes.io/rpc/berachain?key=YOUR_API_KEY"),
});

const nonce = await client.getTransactionCount({ address, blockTag: "pending" });

// Sending several transactions: let viem track nonces locally
import { nonceManager, privateKeyToAccount } from "viem/accounts";
const account = privateKeyToAccount(key, { nonceManager });

Other methods on Berachain

eth_getTransactionCount on other chains

Frequently asked questions

Does Berachain support eth_getTransactionCount?

Yes. eth_getTransactionCount answered on the SwiftNodes Berachain endpoint when our weekly probe called it through the customer path (2026-10-13).

How do I get the next nonce on Berachain?

eth_getTransactionCount(address, "pending"). For several transactions in a row, increment locally.

Berachain endpoints, live block height and WebSocket status are on the Berachain RPC page.

One key covers every chain we serve, and SwiftNodes has a free tier.