Crypto APIs icon

Crypto APIs

Interact with Crypto APIs — blockchain data, transactions, market data, and more

Actions77

Block Data → Get Block by Hash

AI-generated

Summary

Fetches block details by hash from CryptoAPIs for the selected blockchain and network.

Inputs

  • Blockchain Type — Select EVM, UTXO, or XRP; defaults to EVM.
  • Blockchain (required) — Select the chain. EVM choices include Ethereum, Ethereum Classic, BSC, Polygon, Avalanche C-Chain, Arbitrum, Base, Optimism, and Tron. UTXO choices include Bitcoin, Bitcoin Cash, Litecoin, Dogecoin, Dash, and Zcash. XRP uses its blockchain type without a separate blockchain selector.
  • Network (required) — Select the network, such as mainnet or a supported test network. Available choices depend on the blockchain type.
  • Block Hash (required) — Hash of the block to retrieve.

Output shape

A single block record

The response helper unwraps the API's data.item field.

Links

Discussion