Get a Block by Number or Hash

Get a block and all its transactions by a user-defined block number or block hash.

Use -1 or current parameter to return the current block.


👍

START HERE!

Click 'Try It!' to test the endpoint with the default values or customize your request by following these steps:

  1. Enter your own API key in the Header: token text box (top right).
  2. Enter your PATH PARAMS (you can find these below).
  3. Optional . Filter your results with QUERY PARAMS (you can find these below).
  4. Click Try It!

Note: AUTHORIZATION method must be set to Header.


Supported Protocols and Networks

ProtocolNetworkPath ParametersGet Block By
AlgorandMainnetalgorand/mainnetblock number
AvalancheMainnet-c
Testnet-c
avalanche/mainnet-c
avalanche/testnet-c
block number or hash
BitcoinMainnet
Testnet
bitcoin/mainnet
bitcoin/testnet
block number or hash
BitcoincashMainnet
Testnet
bitcoincash/mainnet
bitcoincash/testnet
block number or hash
DogecoinMainnet
Testnet
dogecoin/mainnet
dogecoin/testnet
block number or hash
EthereumMainnet
Holesky
Sepolia
ethereum/mainnet
ethereum/holesky
ethereum/sepolia
block number or hash
FantomMainnet
Testnet
fantom/mainnet
fantom/testnet
block number or hash
LitecoinMainnet
Testnet
litecoin/mainnet
litecoin/testnet
block number or hash
NEARMainnetnear/mainnetblock number or hash
OptimismMainnetoptimism/mainnetblock number or hash
PolkadotMainnet
Westend
polkadot/mainnet
polkadot/westend
block number or hash
PolygonMainnet
Testnet
polygon/mainnet
polygon/testnet
polygon/amoy
block number or hash
SolanaMainnet
Testnet
solana/mainnet
solana/testnet
block number
StellarMainnetstellar/mainnetblock number
TezosMainnettezos/mainnetblock number or hash
XRPMainnetxrp/mainnetblock number or hash
Language
Authorization
URL
Click Try It! to start a request and see the response here!