Skip to content

getBcodeTokenBalance

Return Bcode Token (PTK) balance of current wallet or the specified address. PTKs are used to enable meta transaction execution.

Params

ParamDefault value
addressuser address

Usage

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

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

  // Returns address for used wallet
  await sdk.getBcodeTokenBalance();
})();

Returns