@jadonamite/chessify-sdk
v1.0.4
Published
Production-grade SDK for Chessify Protocol. Provides core bindings for onchain chess games, wagers, and NFT rewards on Stacks.
Maintainers
Readme
@jadonamite/chessify-sdk
Production-ready TypeScript SDK for Chessify — play chess, place wagers, and join tournaments on the Stacks blockchain.
📦 Installation
This SDK requires the @jadonamite/stacks-core utility package.
npm install @jadonamite/chessify-sdk @jadonamite/stacks-core🚀 Quick Start
Initialize the client with your network configuration to interact with the Chessify contracts.
import { ChessifyClient } from '@jadonamite/chessify-sdk';
const client = new ChessifyClient({ network: 'mainnet' });
async function run() {
// Create a game with a wager
await client.games.create({ opponent: 'SP123...', wager: 10 });
// Submit a chess move
await client.games.submitMove('game-id', 'e4');
// Place a wager on a game
await client.wagers.place({ gameId: 'game-id', amount: 5, token: 'STX' });
}🧩 Architecture
client.games— Create and play games on-chain.client.wagers— Place and claim wagers securely.client.tournaments— Register and compete in tournaments.
