@lithosphere/sdk
Installation
npm install @lithosphere/sdk
# or
pnpm add @lithosphere/sdkQuick Start
import { createClient } from '@lithosphere/sdk';
const client = await createClient('mainnet');
const balance = await client.getBalance('0x742d35Cc6634C0532925a3b844Bc9e7595f6E234');
console.log(`${balance.formatted} ${balance.symbol}`);
const blockNumber = await client.getBlockNumber();API
LithoClient
LithoClientMethod
Returns
Description
createClient(rpcUrlOrNetwork, config?)
createClient(rpcUrlOrNetwork, config?)NETWORKS
NETWORKSNetwork
Chain ID
RPC
Development
Publishing
Last updated