Get Outgoing Transaction Count: API Migration (v3 to v4)

This guide covers the migration from legacy v3 chain-specific Get outgoing transaction count endpoints to the new unified Blockchains API endpoint Get transaction count


Endpoint Change Summary

Componentv3 (Legacy)v4 (New)
Standard Pattern/v3/{chain}/transaction/count/v4/data/blockchains/transaction/count
Address Pattern/v3/{chain}/transaction/count/{address}/v4/data/blockchains/transaction/count

Deprecated v3 Endpoints

The following chain-specific endpoints have been consolidated:

Old v3 EndpointStatus
/v3/arb/transaction/count/{address}Deprecated
/v3/avalanche/transaction/countDeprecated
/v3/base/transaction/countDeprecated
/v3/bsc/transaction/countDeprecated
/v3/celo/transaction/countDeprecated
/v3/cronos/transaction/countDeprecated
/v3/egld/transaction/countDeprecated
/v3/ethereum/transaction/countDeprecated
/v3/fantom/transaction/countDeprecated
/v3/flare/transaction/countDeprecated
/v3/kcs/transaction/countDeprecated
/v3/klaytn/transaction/countDeprecated
/v3/one/transaction/countDeprecated
/v3/optimism/transaction/countDeprecated
/v3/polygon/transaction/countDeprecated
/v3/sonic/transaction/count/{address}Deprecated
/v3/xdc/transaction/countDeprecated

Migration Steps

1. Update Your Base URL

Standard endpoints:

- GET /v3/ethereum/transaction/count
+ GET /v4/data/blockchains/transaction/count?chain=ethereum-mainnet&address={address}

2. Adjust Chain Identifiers

Ensure you're using the new chain identifier format (e.g., ethereum-mainnet instead of ethereum).

3. Update Response Handling

Review your code for any response schema changes between v3 and v4.

🚧

Attention

Mind potential breaking changes.