Skip to content

Function: register()

function register(opts: WalletRegisterOptions): void

Defined in: packages/core/lib/register.ts:54

Registers the required components and initializes the SDK

Parameters

opts

WalletRegisterOptions = {}

Returns

void

Examples

Connect to HappyChain Sepolia

register()

Connect to a pre-defined chain

register({ chainId: happyChainSepolia.id })

Connect to a custom chain

register({ chainId: "0x7a69" }) // in hex format