namillum
Version:
Bubble Protocol SDK
41 lines (32 loc) • 2.07 kB
text/mdx
---
id: api-introduction
title: Introduction
keywords:
- api
- introduction
description: Zilliqa JSON RPC API
---
---
[JSON-RPC](https://en.wikipedia.org/wiki/JSON-RPC) is a remote procedure call protocol encoded in JSON. You can use this API to access data from the Zilliqa nodes.
The JSON-RPC API server runs on:
| Chain(s) | URL(s) |
| --------------------- | -------------------------------------------- |
| **Zilliqa mainnet** | https://api.zilliqa.com/ |
| **Developer testnet** | https://dev-api.zilliqa.com/ |
| **Local testnet** | http://localhost:4201/ |
| **Isolated server** | https://zilliqa-isolated-server.zilliqa.com/ |
You can use the following block explorers for the various networks
| Chain(s) | Explorer link |
| --------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| **Zilliqa mainnet** | https://viewblock.io/zilliqa <br/> https://devex.zilliqa.com/ |
| **Developer testnet** | https://viewblock.io/zilliqa?network=testnet <br/> https://devex.zilliqa.com/?network=https%3A%2F%2Fdev-api.zilliqa.com |
| **Local testnet** | https://devex.zilliqa.com/?network=http%3A%2F%2Flocalhost%3A4201%2F |
| **Isolated server** | https://devex.zilliqa.com/?network=https%3A%2F%2Fzilliqa-isolated-server.zilliqa.com |
All API calls are POST requests.
All requests follow the standard JSON-RPC format and include 4 variables in the data object:
| Data object | Example |
| ----------- | :------------------ |
| `id` | e.g. `"1"` |
| `jsonrpc` | e.g. `"2.0"` |
| `method` | e.g. `"GetBalance"` |
| `params` | e.g. `["1"]` |