SDK
Package
Section titled “Package”| npm | @boing-network/boing-sdk |
Recommended (live client_hints) | ^0.5.38 |
| Source | boing-sdk/ |
Install the scoped package. Do not depend on an unscoped boing-sdk name for external apps.
npm install @boing-network/boing-sdk@^0.5.38After changing SDK source in the monorepo, run npm run build inside boing-sdk/ so dist/ matches src/ (tutorial packages consume file:../../boing-sdk).
Core client
Section titled “Core client”import { BoingClient, BOING_TESTNET_CHAIN_ID_DECIMAL } from '@boing-network/boing-sdk';
const client = new BoingClient({ rpcUrl: 'https://testnet-rpc.boing.network/',});
const info = await client.getNetworkInfo(); // wraps boing_getNetworkInfoconsole.log(info.chain_id, BOING_TESTNET_CHAIN_ID_DECIMAL);Use BOING_TESTNET_CHAIN_ID_DECIMAL (6913) / BOING_TESTNET_CHAIN_ID_HEX (0x1b01) for local branching, but prefer the live chain_id when connected.
What else ships in the package
Section titled “What else ships in the package”Exports (non-exhaustive) cover:
- Tx helpers, fees, hex/AccountId utilities, access lists
- Native pool / router / custody / LP vault call builders
- Canonical testnet DEX address constants + merge helpers driven by network info
- Reference fungible / NFT / linked-NFT / builder-attestation bytecode helpers
- Error explanation helpers for RPC rejection reasons
See boing-sdk/src/index.ts for the authoritative export surface.
dApp integration
Section titled “dApp integration”End-to-end connect / simulate / submit patterns: BOING-DAPP-INTEGRATION.md. Wallet provider API: Express docs for window.boing.