Skip to main content
This guide walks you through making your first request to Ralph Studio’s RPC API. By the end you’ll have a working call that returns the current block height of the Alephium network.

Before you start

You need two things:
  • Your API key: find it in the Ralph Studio dashboard under Settings → API Keys
  • Your node slug: the unique identifier for your node, shown on the Nodes page
Both look like this:

Step 1: Make the request

Step 2: Read the response

currentHeight is the number of blocks mined on the chain from group 0 to group 0. Alephium has 16 chains (4 groups × 4 groups), so each fromGroup/toGroup pair has its own independent height.

Step 3: Handle errors

If something is wrong you’ll get a structured error:

Step 4: Try a few more calls

Get node version
Get ALPH balance for an address
Get latest blocks

Base URL structure

Every request follows the same pattern:
  • {your-slug}: your node identifier, never changes
  • {node-path}: any path from the Alephium node API, passed through as-is
The indexer API uses a different prefix:

Next steps

Query an address balance

Get ALPH and token balances for any address

Submit a transaction

Build, sign, and broadcast a transfer

Read a contract

Call view functions on deployed contracts

Error handling

Retry logic and error code reference