get nonce
API details
Retrieves the current nonce from your wallet using the HIN. The nonce indicates the number of transactions sent and is essential for transaction ordering and preventing replay attacks.
Code example
import { hibitClient } from '@delandlabs/hibit-sdk';
const options = {
network: HibitNetwork.Testnet,
hin: 10000n
};
hibitClient.setOptions(options);
const nonce = await hibitClient.getNonce(options.hin);
SDK
Source code https://github.com/Deland-Labs/hibit-sdk
References
Last updated