Getting Evmos RPC
Evmos ipRPC πͺβ
Lavaπ now offers incentivized public RPC for Evmos. Developers can get free, public endpoints for all.
Mainnet πβ
Service π | URL π |
---|---|
π’ tendermint-rpc | https://evmos.tendermintrpc.lava.build |
π’ tendermint-rpc / websocket | wss://evmos.tendermintrpc.lava.build/websocket |
π’ json-rpc | https://evmos.lava.build |
π’ json-rpc / websocket | wss://evmos.lava.build |
π’ rest | https://evmos.rest.lava.build |
π’ grpc | evmos.grpc.lava.build |
Testnet π§ͺβ
Service π | URL π |
---|---|
π’ tendermint-rpc | https://tm.evmos-testnet.lava.build |
π’ tendermint-rpc / websocket | wss://tm.evmos-testnet.lava.build/websocket |
π’ json-rpc | https://evmos-testnet.lava.build |
π’ json-rpc / websocket | wss://evmos-testnet.lava.build/websocket |
π’ rest | https://evmost.rest.lava.build |
π’ grpc | grpc.evmos-testnet.lava.build |
Gatewayβ
To learn more about using the Lava Gateway visit the Getting Started guide
SDKβ
Input π₯β
- BackEnd
- FrontEnd
// Install lavaSDK with the following command:
// npm i @lavanet/lava-sdk
const { LavaSDK } = require("@lavanet/lava-sdk");
async function useEvmosTestnet() {
const evmosTestnet = await LavaSDK.create({
privateKey: process.env.PRIVATE_KEY, //hide your private key in an environmental variable
chainIds: "EVMOST",
});
const evmosBlockResponse = await evmosTestnet.sendRelay({
method: "block",
params: ["15500000"],
});
console.log(evmosBlockResponse);
}
(async () => {
await useEvmosTestnet();
})();
// Install lavaSDK with the following command:
// npm i @lavanet/lava-sdk
const { LavaSDK } = require("@lavanet/lava-sdk");
async function useEvmosTestnet() {
const evmosTestnet = await LavaSDK.create({
badge: {
badgeServerAddress: "https://badges.lavanet.xyz", // Or your own Badge-Server URL
projectId: "enter_your_project_id_here",
},
chainIds: "EVMOST",
});
const evmosBlockResponse = await evmosTestnet.sendRelay({
method: "block",
params: ["15500000"],
});
console.log(evmosBlockResponse);
}
(async () => {
await useEvmosTestnet();
})();
Output π€β
To learn more about our SDK visit the Getting Started guide