@interest-protocol/xcore-sdk
v1.0.2
Published
SDK for Lattice XCore on Sui
Readme
@lattice/xcore-sdk
SDK for the multi-tenant balance ledger with dWallet management.
Installation
bun installUsage
import { XCore, ChainId } from '@lattice/xcore-sdk';
const xcore = new XCore({
suiClient,
packageId: XCORE_PACKAGE_ID,
xcoreSharedObjectData,
});
// Initialize app (admin only)
const tx = xcore.initApp({
adminCapId,
});
// Add wallet for an app
const tx = xcore.addWallet({
adminCapId,
chainId: ChainId.Solana,
});
// Mint presign for faster signing
const tx = xcore.mintPresign({
walletKey: 0n,
fee: presignFee,
});Chain IDs
| Chain | ID | |-------|-----| | Solana | 1 | | EVM | 2 | | Sui | 3 |
Development
bun run build # Build package
bun run test # Run tests
bun run lint # Run linterDocumentation
See ../CLAUDE.md for SDK architecture patterns.
