Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

BNB Testnet

BNB Smart Chain Testnet (chain id 97) is Altana's full-stack testnet — the keystore, account contracts, and the Altana testnet relay are all deployed there (see Testnet), and the SDK ships a ready-made BNB_TESTNET config.

Install

npm install @altananetwork/sdk viem

Create a wallet on BNB testnet

import { createClient, BNB_TESTNET, signerFromPrivateKey } from "@altananetwork/sdk";
 
const client = createClient({ chains: [BNB_TESTNET] });
const signer = signerFromPrivateKey(process.env.PRIVATE_KEY as `0x${string}`);
 
const wallet = await client.createWallet({ signer });
 
console.log(wallet.address);

Fund wallet.address with test BNB before step 2: testnet.bnbchain.org/faucet-smart

What's next