6.1 RPC API

Where running the snarkOS software, all nodes (provers, validators and simple clients) have a RPC API automatically up locally. This API exposes the blockchain data so it to be retrievable through simple HTTP calls.

Here is such an RPC API URL, exposed on the internet by the Provable team: https://api.explorer.provable.com/v1/{network}

On your own machine, for instance when running a devnet client you should be able to access it at: http://127.0.0.1:3030/{network}

The following endpoint for reaching the latest block height can be used for testing if the API is up: https://api.explorer.provable.com/v1/testnet/block/height/latest

Useful Endpoints

Let's explore some of the endpoints that could be useful for you, to use in your DApps.

You can also find all the documentation for the other endpoints here:

https://developer.aleo.org/references/apis/public_api

There are other custom other APIs made by the community that can be very useful for your programs.

  • Haruka's

  • Leo Wallet RPC

Last updated