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 viemCreate 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
- Testnet networks & addresses. Chain ids, RPCs, faucet, and contract addresses.
- Grant a session. Scoped, time-bounded keys for AI agents.