For the complete documentation index, see llms.txt. This page is also available as Markdown.

Cardano(ADA)

GetBlock provides fast, reliable access to Cardano nodes via Ogmios JSON-RPC and the Rosetta API. Connect to the Cardano network without running your own infrastructure.

Cardano is a proof-of-stake Layer 1 blockchain that uses the Extended UTXO (EUTXO) accounting model and the Ouroboros consensus protocol. It supports native assets that move without smart contracts and Plutus scripts for programmable validation. GetBlock exposes Cardano through three interfaces: the Rosetta API, Ogmios over JSON-RPC, and Ogmios over WebSocket.

Key Features

  • EUTXO Model: Extends the unspent-output model with scripts and datums for deterministic validation.

  • Native Assets: Mints and transfers tokens as first-class ledger objects without contracts.

  • Ouroboros Consensus: Secures the chain with a peer-reviewed proof-of-stake protocol.

  • Staking and Delegation: Lets ada holders delegate to stake pools and earn rewards.

  • On-Chain Governance: Supports the Conway-era governance system of proposals and voting.

  • Plutus Scripts: Validates spending with scripts whose execution units are metered.

  • Rosetta Interface: Offers a standardized construction and data API for exchange integration.

  • Ogmios Bridge: Provides low-level ledger, network, and mempool access over JSON-RPC and WebSocket.

TECHNICAL DISCLAIMER.

GetBlock's Cardano API reference documentation is provided for informational purposes and developer experience. The canonical specifications are maintained by the Rosetta and Ogmios projects and by Input Output Global. The Rosetta interface follows the Rosetta API specification; the Ogmios interface follows the Ogmios v6 JSON-RPC API.

Network Information

Property
Value

Network Name

Cardano Mainnet

Native Currency

ADA (1 ADA = 1,000,000 lovelace)

Consensus

Ouroboros Proof of Stake

Model

Extended UTXO (EUTXO)

Address Format

Bech32 (addr, stake)

Base URL

Supported Networks

Network
Rosetta
Ogmios JSON-RPC
Ogmios WebSocket

Mainnet

APIs

Cardano is served through three interfaces. Each has its own reference section.

Interface
Transport
Use it for

HTTP POST

Standardized data and transaction construction, exchange flows

HTTP POST

Ledger and network state queries, transaction submission

WebSocket

Chain synchronization, ledger-state acquisition, mempool monitoring

Quickstart

In this section, you will learn how to make your first call with either:

  • Javascript(Axios)

  • Python

1

Setup project

Create and initialize a new project:

2

Install Axios

3

Create file

Create a new file named index.js. This is where you will make your first call.

4

Set ES module type

Set the ES module "type": "module" in your package.json.

5

Add code

Add the following code to index.js:

Replace <ACCESS-TOKEN> with your actual access token from GetBlock.

6

Run the script

Expected output (example):

1

Set up the project directory

2

Create and activate a virtual environment

3

Install requests

4

Create script

Create a file called main.py with the following content:

Replace <ACCESS-TOKEN> with your actual access token from GetBlock.

5

Run the script

Support

For technical support and questions:

See Also

Last updated

Was this helpful?