@xyz-chain/sdk
The XYZ Chain SDK is a TypeScript library for building decentralized applications on XYZ Chain. It wraps CosmJS with XYZ-specific helpers for wallet connection, token operations, and contract interaction.Installation
Quick Start
Read-Only Client
Connect to XYZ Chain and query data without a wallet:Browser with Wallet
Connect a user’s wallet and send transactions:Node.js with Mnemonic
For scripts, bots, and backend services:Key Modules
Configuration
Token Denominations
XYZ uses 6 decimals. The SDK provides helpers for conversion:Requirements
Next Steps
Queries
Read balances, token info, and contract state
Transactions
Send tokens and execute contracts
Wallets
Connect Keplr, Leap, or XYZ Wallet