Skip to content

Core SDK

@cinacoin/core-sdk — Cinacoin 核心 SDK 参考。

Overview

The Core SDK is the foundation of Cinacoin. It manages wallet connections, chain switching, sessions, and the core communication layer with the Relay Server.

Installation

bash
npm install @cinacoin/core-sdk

Usage

Initialize

typescript
import { Cinacoin } from '@cinacoin/core-sdk'

const cinacoin = new Cinacoin({
  projectId: 'your-project-id',
  relayUrl: 'wss://relay.cinacoin.com/v1',
  chains: [mainnet, polygon],
})

API Reference

TIP

For the full generated API reference with all types, run npm run typedoc locally.

Released under the MIT License.