Skip to content

init

Initialize SDK profile. Execute the authentication and pull of the profile data that enable the correct use of the fucntionalites.

Params

No params required.

Usage

import { BcodeSDK } from "@bcode-tech/bcode-sdk";

type ReturnParam = "leaves" | "merkleRoot" | "merkleProof" | "inclusion";

(async () => {
  const sdk = BcodeSDK.create({
    email: "your@email.com",
    password: "your-secure-password",
    config: configParams,
    version: "v1",
  });

  await sdk.init();
})();

Returns

No data returned.