Ogmios JSON-RPC API

Ogmios is a lightweight bridge to a Cardano node that speaks JSON-RPC 2.0. Over HTTP, it answers stateless request-response calls: ledger and network state queries, transaction submission, and script evaluation. Stateful protocols such as chain synchronization and mempool monitoring run over the WebSocket interface instead.

Every request is an HTTP POST with a JSON-RPC 2.0 body: a method, optional params, and an id. Responses carry the same id and either a result or an error.

Base URL

bashhttps://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/

Replace <ACCESS-TOKEN> with the access token from the GetBlock dashboard.

Network Queries

MethodDescription
queryNetwork/blockHeightCurrent network block height
queryNetwork/tipNetwork tip slot and hash
queryNetwork/startTimeNetwork start time
queryNetwork/genesisConfigurationGenesis configuration for an era

Ledger State Queries

MethodDescription
queryLedgerState/tipLedger tip slot and hash
queryLedgerState/epochCurrent epoch
queryLedgerState/eraStartStart of the current era
queryLedgerState/eraSummariesEra summaries for time conversion
queryLedgerState/protocolParametersCurrent protocol parameters
queryLedgerState/utxoUnspent outputs by address or reference
queryLedgerState/stakePoolsRegistered stake pools
queryLedgerState/liveStakeDistributionLive stake distribution
queryLedgerState/rewardAccountSummariesReward-account summaries
queryLedgerState/projectedRewardsProjected rewards
queryLedgerState/rewardsProvenanceRewards provenance data
queryLedgerState/noncesConsensus nonces
queryLedgerState/treasuryAndReservesTreasury and reserves balances
queryLedgerState/governanceProposalsActive governance proposals

Transaction Submission

MethodDescription
submitTransactionSubmit a signed transaction
evaluateTransactionEvaluate script execution units

Support

For technical support and questions:

See Also