Skip to content

getPrivateKey

Returns used API Key.

Usage

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

const fun = () => {
  const sdk = new BcodeSDK({
    apiKey: "your-api-key",
    config: { env: "MUMBAI" },
  });

  sdk.getPrivateKey();
};

Returns

Returns private key of initialized wallet. Usefull in frontend environment to allow user to save his wallet.