The modular access layer for web3
Lava is a modular network which blockchains plug into to scale and optimize RPC & APIs. Requests are routed to the best available provider, giving developers and users optimal service.
Already partnering with
StarknetApibaraAxelarEvmosNear

lava sdk Beta

Peer-to-peer access to any chain, with Lava SDK

A Typescript/JS implementation of Lava Protocol which automatically routes your multi-chain requests to the best node providers. No endpoints needed and no dependency on a single provider.  

import { LavaSDK } from "@lavanet/lava-sdk";

async function useMultipleMainnets() {
  const lavaHandler = await LavaSDK.create({
     badge: {
      badgeServerAddress: "https://badges.lavanet.xyz",
      projectId: "201723ef5923285f02afb7897fc71cb2"
    },
    chainIds: 'AVAX','AXELAR','STRK'
  });

  const axelarNodeInfo =  await lavaHandler.sendRelay({
    method: "GET",
    url: "/node_info",
    chainId: 'AXELAR'
  });

  const starknetBlockResponse = await lavaHandler.sendRelay({
    method: "starknet_blockNumber",
    params: [],
    chainId: 'STRK'
  });
}
});
Copy
wss://tm.axelar-testnet.lava.build/websocket
Copy
https://rest.axelar-testnet.lava.build
Copy
grpc.axelar-testnet.lava.build:443
Copy
import { LavaSDK } from "@lavanet/lava-sdk";
const osmosis = await new LavaSDK({
  access: consumerKey,
  chain: OsmosisMainnetRPC
});

const block = await osmosis.sendRelay({
  method: "block",
  params: ["7179275"],
});
Copy
wss://tm.axelar-testnet.lava.build/websocket
Copy
https://rest.axelar-testnet.lava.build
Copy
grpc.axelar-testnet.lava.build:443
Copy
import { LavaSDK } from "@lavanet/lava-sdk";
const cosmosHub = await new LavaSDK({
  access: consumerKey,
  chain: CosmosHubMainnetRPC
});

const block = await cosmosHub.sendRelay({
  method: "block",
  params: ["7179275"],
});
Copy
wss://tm.axelar-testnet.lava.build/websocket
Copy
https://rest.axelar-testnet.lava.build
Copy
grpc.axelar-testnet.lava.build:443
Copy
import { LavaSDK } from "@lavanet/lava-sdk";
const arbitrum = await new LavaSDK({
  access: consumerKey,
  chain: ArbitrumMainnetRPC
});

const blockNumber = await arbitrum.sendRelay({
  method: "eth_blockNumber",
  params: [],
});
Copy
wss://tm.axelar-testnet.lava.build/websocket
Copy
https://rest.axelar-testnet.lava.build
Copy
grpc.axelar-testnet.lava.build:443
Copy
import { LavaSDK } from "@lavanet/lava-sdk";
const ethereum = await new LavaSDK({
  access: consumerKey,
  chain: EthereumMainnetRPC
});

const blockNumber = await ethereum.sendRelay({
  method: "eth_blockNumber",
  params: [],
});
Copy
wss://tm.axelar.lava.build/websocket
Copy
https://rest.axelar.lava.build
Copy
grpc.axelar.lava.build:443
Copy
Why lava?
Fast and reliable access to any chain
Through any RPC and API

Constant Availability

Lava is fully peer-to-peer with no single point of failure. If the Lava chain halts, developers can always connect to node providers.

Data consistency

Responses are cross-referenced between providers & frauds are resolved onchain to disincentivize bad actors.

Optimized speed

Requests are routed to the fastest node providers in the entire network, based on geolocation and QoS scoring.

Modular flexibility

Anyone can permissionlessly add modules to Lava so the network can serve in-demand APIs and chains. Lava is a one stop shop for RPC & APIs.

Friends and Investors from across Web3
How lava works
Modular network of node providers that dynamically adds, serves and scales APIs on any chain
Unlock innovation across web3 by helping developers build whatever they want to, wherever they want to. From Celestia to Ethereum to Cosmos - Lava can support it.
Join Testnet
Anyone can add modules to Lava, so the network can support in-demand APIs and chains
Specs are a blockchain primitive which extend Lava. At mainnet, external contributors are rewarded on-chain for adding and maintaining specs.
Explore chains
Node operators join the Lava network to meet demand and serve RPC/APIs
Lava can quickly scale under high traffic and coordinates a globally distributed network of node operators - coordination maximalism
Run a node
Relays are routed to providers based on their speed, uptime and accuracy
Apps are regularly matched with the best provider available, so users get fast, high-uptime and accurate responses.
Learn more
Join the modular collective
Lava has some of the most interesting, innovative solutions to a very fundamental problem in web3. Today, access to blockchains is nowhere close to original vision of a decentralized web. As experienced node operators we are excited about contributing to increased decentralization and redundancy.
Chris
Yair, Gil and the rest of the team did not take shortcuts designing Lava. They found great people, and built on top of the right software, protocol and incentive foundation to scale. It shows in how quickly they have been able to add RPCs and grow the Lava community. We're excited to be helping them decentralized web3.
wakkadojo