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-sdkUsage
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.
Related
- React Adapter — React hooks and provider
- SIWE — Sign-In with Ethereum
- Swap SDK — Swap aggregator
- AA SDK — Account Abstraction
