Skip to content

Function: register()

function register(opts: WalletRegisterOptions): void

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: chains.testnet.chainId })

Connect to a custom chain

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

Defined in

packages/sdk-vanillajs/lib/register.ts:48