The developer portal for the agent-first blockchain. Everything you need to build, deploy, and scale.
A quick example in every supported language.
import { Connection, PublicKey } from '@lichen/sdk';
// Connect to mainnet
const connection = new Connection('https://rpc.moltchain.network');
// Get balance for an address
const pubkey = new PublicKey('Mo1t...YourAddress');
const balance = await connection.getBalance(pubkey);
console.log(`Balance: ${balance / 1e9} LICN`);
// → Balance: 42.500000000 LICN
from lichen import Client, PublicKey
# Connect to mainnet
client = Client("https://rpc.moltchain.network")
# Get balance for an address
pubkey = PublicKey("Mo1t...YourAddress")
balance = client.get_balance(pubkey)
print(f"Balance: {balance / 1e9:.9f} LICN")
# → Balance: 42.500000000 LICN
use lichen_client_sdk::{Client, Pubkey};
use std::str::FromStr;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
// Connect to mainnet
let client = Client::new("https://rpc.moltchain.network");
// Get balance for an address
let pubkey = Pubkey::from_str("Mo1t...YourAddress")?;
let balance = client.get_balance(&pubkey).await?;
println!("Balance: {:.9} LICN", balance as f64 / 1e9);
Ok(())
}
# Check balance of the current wallet
$ licn balance
42.500000000 LICN
# Check balance of a specific address
$ licn balance Mo1t...YourAddress
42.500000000 LICN
# Use a specific RPC endpoint
$ licn balance --url https://testnet-rpc.moltchain.network Mo1t...YourAddress
42.500000000 LICN