getBcodeTokenBalance
Return Bcode Token (PTK) balance of current wallet or the specified address. PTKs are used to enable meta transaction execution.
Params
Param | Default value |
---|---|
address | user 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();
})();