getNonce
Functions that returns nonce for the given address, related to Bcode meta transaction contract.
Param | Description |
---|---|
walletAddress | Wallet address of which you want the nonce |
Usage
import { BcodeSDK } from "@bcode-tech/bcode-sdk";
const fun = () => {
const sdk = new BcodeSDK({
apiKey: "your-api-key",
config: { env: "MUMBAI" },
});
const nonce = await sdk.getNonce(walletAddress);
console.log(nonce);
// e.g. > 42
};
Returns
Number value of nonce.