Skip to main content
Monad is a high-throughput, EVM-compatible Layer 1 blockchain that exposes the familiar JSON-RPC 2.0 interface. With the Bless SDK’s fetch function you can retrieve blocks, initiate transactions, and more, all with a single HTTP POST request. This approach works perfectly in client-side or WASM environments such as Bless nodes. This guide demonstrates a minimal “latest block” query using a public testnet RPC. Feel free to substitute another provider (Alchemy, QuickNode, Ankr, etc.) if you need higher rate limits. By the end of this guide you will:
  • Select a public RPC endpoint
  • Call eth_blockNumber
  • Convert the hexadecimal result to a decimal block height

Quick Notes

  • No authentication tokens are required for public endpoints, but each RPC provider enforces its own rate limits. For production workloads, request an API key from a provider like Alchemy or QuickNode to increase those limits.

Full Example (JS/TS)

Example Output

With this snippet, you now have a lightweight, dependency-free way to pull on-chain state from Monad directly in your Bless app. Happy building!