SDK For Hub Framework
Mind Network SDK For Hub Framework
Installation
npm install mind-hubs-sdkUsage
1. Initialize the SDK
import { CoreContextManager } from 'mind-hubs-sdk'
CoreContextManager.initialize({
fheKeyRegistryAddress: '0xFheKeyRegistryAddress', // Address of the FHE Key Registry contract
memberPoolAddress: '0xMemberPoolAddress', // Address of the Member Pool contract
rpc: 'https://rpc.endpoint', // RPC URL for the Mind network
chainID: 228 // Chain ID of the Mind network
})2. Fetch an FHE Key Set
3. Get Voting Reward
Configuration Options
Option
Type
Description
API Reference
initialize(config: CoreConfig): void
initialize(config: CoreConfig): voidfetchFheKeySet(keyId: bigint): Promise<any>
fetchFheKeySet(keyId: bigint): Promise<any>getVotingReward(coldWalletAddress: string): Promise<bigint>
getVotingReward(coldWalletAddress: string): Promise<bigint>License
Last updated