logoCheckmate
Getting Started

Installation

Install and set up the ChessMate SDK

Prerequisites

  • Node.js 18+
  • TypeScript 4.9+

Install the SDK

Install the Chess CheckMate SDK and its peer dependencies:

npm install @sendarcade/checkmate @solana/kit @solana-program/token

Environment Setup

1. RPC Configuration

You'll need access to both standard Solana RPC and Ephemeral Rollup RPC:

import { createSolanaRpc } from "@solana/kit";

// Standard Solana RPC
const rpc = createSolanaRpc("https://api.devnet.solana.com");

// Ephemeral Rollup RPC (for game state)
const erRpc = createSolanaRpc("https://devnet.magicblock.app");

2. Wallet Integration

The SDK works with any wallet that implements the @solana/kit TransactionSigner interface:

import { createNoopSigner, address } from "@solana/kit";

// Example with a keypair (for testing)
const signer = createNoopSigner(address("YourPublicKeyHere"));

// In production, use your wallet adapter
// const signer = wallet.adapter.signer;

3. Initialize the SDK

import { ChessGameSDK } from "@sendarcade/checkmate";

const chessMateSDK = new ChessGameSDK();

Next Steps

  • Quick Start Guide - Create your first game
  • Basic Concepts - Understand core concepts
  • Integration Guide - Full integration tutorial