POST
/
95e61622bf6a8af293978377718e3b77
/
jsonrpc
/
eth_blocknumber
eth_blockNumber
curl --request POST \
  --url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/jsonrpc/eth_blocknumber \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "method": "eth_blockNumber",
  "id": 1,
  "params": []
}'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": "<string>"
}
TRON API method that returns the current block number, providing an Ethereum-compatible interface for accessing TRON blockchain data.
Get you own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • jsonrpc — the JSON-RPC protocol version (always “2.0”)
  • method — the method name (always “eth_blockNumber”)
  • params — array containing method parameters (empty for this method)
  • id — request identifier (number or string)

Response

  • jsonrpc — the JSON-RPC protocol version (“2.0”)
  • id — the request identifier that matches the request
  • result — the current block number in hexadecimal format

Use case

The jsonrpc eth_blockNumber method is used for:
  • Monitoring the current state of the TRON blockchain through Ethereum-compatible interfaces
  • Implementing block synchronization logic in Web3 applications
  • Building real-time dashboards that display current blockchain height
  • Validating transaction confirmations by comparing block numbers

Body

application/json

Response

200 - application/json

Current block number in hexadecimal format

The response is of type object.