Skip to main content

Getting Juno RPC

API Reference

curl -X GET -H "Content-Type: application/json" https://g.w.lavanet.xyz:443/gateway/jun1/rest/3dc655f970c930f1d3e78ee71beece18/cosmos/base/tendermint/v1beta1/blocks/latest

Gateway

To learn more about using the Lava Gateway visit the Getting Started guide



SDK

caution

Lava SDK is currently in Alpha. Please observe the documentation on both frontend and backend use before getting started.

Input 📥

// Install lavaSDK with the following command:
// npm i @lavanet/lava-sdk
const { LavaSDK } = require("@lavanet/lava-sdk");

async function useJunoTestnet() {
const junoTestnet = await LavaSDK.create({
privateKey: process.env.PRIVATE_KEY, //hide your private key in an environmental variable
chainIds: "JUNT1",
});

const junoBlockResponse = await junoTestnet.sendRelay({
method: "block",
params: ["82500"],
});

console.log(junoBlockResponse);
}

(async () => {
await useJunoTestnet();
})();

Output 📤

To learn more about our SDK visit the Getting Started guide