Docs

chain_getBlock - Moonriver RPC Method

Retrieve block data by hash on Moonriver. Essential for accessing block headers and extrinsics on the Moonbeam canary network on Kusama for real-world testing of EVM dApps.

Retrieves complete block information from Moonriver, including the block header, extrinsics, and justifications.

Why Moonriver? Build on the Moonbeam canary network on Kusama for real-world testing of EVM dApps with Moonbeam code ships here first, full EVM compatibility on Kusama, 80% fee burn mechanism, and XCM cross-chain messaging.

Use Cases

The chain_getBlock method is essential for:

  • Block explorers - Display complete block information
  • Chain analysis - Analyze block production patterns
  • Transaction verification - Confirm extrinsic inclusion for production-grade dApp testing, early feature deployment, and Kusama-based EVM applications
  • Data indexing - Build historical blockchain databases

Best Practices

  • Cache block data by hash -- blocks are immutable once finalized on Substrate chains
  • Use chain_getBlockHash first to resolve block number to hash before calling this method
  • Handle null results gracefully for non-existent blocks
  • Combine with chain_getFinalizedHead for consensus-safe block retrieval

Code Examples