SDK
The @belizechain/gem-sdk provides a complete JavaScript and TypeScript interface for interacting with all GEM smart contracts. Built on Polkadot.js with bundled contract ABIs, full type definitions, and five working examples.
SDK Features
Easy-to-Use API
GemSDK class wraps Polkadot.js with simple methods for all contract interactions. Connect with one line, transfer tokens, mint NFTs, and vote on proposals through a clean, high-level interface.
Full TypeScript Support
Complete type definitions (index.d.ts) with interfaces for Balance, TokenMetadata, Proposal, FaucetStats, and TransactionResult. Import types directly for compile-time safety.
PSP22 Token Helpers
dallaTransfer, dallaBalanceOf, and dallaMetadata methods for the DALLA fungible token. Automatic gas estimation, error handling, and event confirmation for every transaction.
PSP34 NFT Helpers
nftMint, nftOwnerOf, and nftTokenUri methods for BeliNFT operations. Mint with IPFS URIs, query ownership, and retrieve metadata — all with automatic contract loading.
DAO Governance Methods
daoCreateProposal, daoVote, and daoGetProposal for on-chain governance. Create proposals, cast token-weighted votes, and query proposal status including vote tallies.
Faucet Integration
faucetClaim, faucetCanClaim, and faucetStats for testnet token distribution. Check eligibility, claim test DALLA, and view faucet statistics including total claimed and cooldown period.