API

APIs offer a flexible and fast way to access blockchain data on Somnia — from historical events to real-time state updates. Somnia provides both REST and GraphQL endpoints to help you build powerful off-chain services or enhance your frontends.

In this section, you’ll learn:

Whether you’re fetching wallet balances, listening to onchain events, or triggering backend workflows — Somnia’s APIs make it easy to connect and build.

Last updated