Skip to main content

Getting Axelar RPC

Axelar ipRPC πŸͺ™β€‹

LavaπŸŒ‹ now offers incentivized public RPC for Axelar. Developers can get free, public endpoints for all.

Mainnet πŸŒβ€‹

Service πŸ”ŒURL πŸ”—
🟒 tendermint-rpchttps://axelar.tendermintrpc.lava.build
🟒 tendermint-rpc / websocketwss://tm.axelar.lava.build/websocket
🟒 resthttps://axelar.lava.build
🟒 grpcgrpc.axelar.lava.build

Testnet πŸ§ͺ​

Service πŸ”ŒURL πŸ”—
🟒 tendermint-rpchttps://tm.axelar-testnet.lava.build
🟒 tendermint-rpc / websocketwss://tm.axelar-testnet.lava.build/websocket
🟒 resthttps://axelart.lava.build
🟒 grpcgrpc.axelar-testnet.lava.build

API Reference​

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

Gateway​

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

SDK​

Input πŸ“₯​

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

async function useAxelarMainnet() {
const AxelarMainnet = await LavaSDK.create({
privateKey: process.env.PRIVATE_KEY, //hide your private key in an environmental variable
chainIds: "AXELAR",
rpcInterface: "rest",
});

const AxelarBlockResponse = await AxelarMainnet.sendRelay({
method: "GET",
url: "/node_info",
});

console.log(AxelarBlockResponse);
}

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

Output πŸ“€β€‹

To learn more about our SDK visit the Getting Started guide