Query The Network

Read-only APIs for querying blocks, transactions, chain parameters, and node status.

Read-only APIs for querying blocks, transactions, chain parameters, and node status.

APIs in this group

Block queries

APIPurpose
GetNowBlockQuery the latest block produced by the FullNode.
GetBlockQuery a block by number or ID, optionally returning only the block header.
GetBlockByNumQuery a full block by block number.
GetBlockByIdQuery a block by block ID.
GetBlockByLatestNumQuery the latest N blocks from the current chain head.
GetBlockByLimitNextQuery blocks in a block-number range.
GetBlockBalanceQuery all balance-change operations in a block.

Transaction queries

APIPurpose
GetTransactionByIdQuery the transaction body, including raw_data and signatures.
GetTransactionInfoByIdQuery the transaction execution receipt.
GetTransactionInfoByBlockNumQuery all transaction receipts in a block.
GetApprovedListRecover signer addresses from a multi-signature transaction.

Chain parameters and node status

APIPurpose
GetChainParametersQuery the current values of all chain parameters.
GetBandwidthPricesQuery the historical Bandwidth price schedule.
GetEnergyPricesQuery the historical Energy price schedule.
GetBurnTRXQuery the cumulative amount of burned TRX.
GetNodeInfoQuery the running status of the node itself.
ListNodesQuery the list of peers connected to the node.

Related resources

  • Blocks — block structure and the composite block ID
  • Consensus and DPoS — block production schedule, fork choice, and solidification
  • Network parameters — chain parameter descriptions and current Mainnet values