Docs
Supported ChainsFlow EVM GatewayJSON-RPC APIAccount Methods

eth_getTransactionCount - Flow EVM RPC Method

Get account nonce on Flow EVM Gateway. Essential for transaction ordering for consumer NFTs (NBA Top Shot, Disney Pinnacle), gaming dApps, and hybrid Cadence-EVM applications.

Returns the number of transactions sent from an address on Flow EVM Gateway (the nonce).

Use Cases

  • Transaction building - Get correct nonce for new transactions
  • Account analysis - Count total outgoing transactions
  • Nonce management - Handle pending transaction queues
  • Wallet operations - Prepare transactions for consumer NFTs (NBA Top Shot, Disney Pinnacle), gaming dApps, and hybrid Cadence-EVM applications

Request Parameters

Request
addressDATA

20-byte address

blockParameterQUANTITY|TAG

Block number or tag (pending for next nonce)

Response Body

Response

Code Examples

Bash
curl -X POST https://api-flow-evm-gateway-mainnet.n.dwellir.com/YOUR_API_KEY \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "eth_getTransactionCount",
    "params": [
      "0xd3bF53DAC106A0290B0483EcBC89d40FcC961f3e",
      "latest"
    ],
    "id": 1
  }'
JavaScript
import { JsonRpcProvider } from 'ethers';

const provider = new JsonRpcProvider('https://api-flow-evm-gateway-mainnet.n.dwellir.com/YOUR_API_KEY');

const address = '0xd3bF53DAC106A0290B0483EcBC89d40FcC961f3e';
const nonce = await provider.getTransactionCount(address);
console.log('Nonce:', nonce);

// Get pending nonce for new transaction
const pendingNonce = await provider.getTransactionCount(address, 'pending');
console.log('Next nonce:', pendingNonce);
Python
from web3 import Web3

w3 = Web3(Web3.HTTPProvider('https://api-flow-evm-gateway-mainnet.n.dwellir.com/YOUR_API_KEY'))

address = '0xd3bF53DAC106A0290B0483EcBC89d40FcC961f3e'
nonce = w3.eth.get_transaction_count(address)
print(f'Nonce: {nonce}')

# Get pending nonce
pending_nonce = w3.eth.get_transaction_count(address, 'pending')
print(f'Next nonce: {pending_nonce}')

On this page