Transaction Policy
The Transaction Policy (TP) module ensures secure and customizable transaction controls for users by integrating features like whitelisting and time delays.
1. getCurrentPolicy
The getCurrentPolicy()
method retrieves the current transaction policy configuration. This includes details about the whitelisted addresses, time limits, and whether the policy is enabled.
Example:
3. enablePolicy
The enablePolicy()
method allows enabling/disabling of a transaction policy. - enabled: A flag to enable or disable the transaction policy. - force: A flag to enable the turning- off mode (default is false)
Example:
3. disablePolicy
The disablePolicy()
method allows disable transaction policy.
Example:
4. addWalletAddress
The addWalletAddress()
method allows you to add a recipient’s wallet address to the whitelist. - address: The recipient's wallet address that you want to whitelist. - networkChain: the chain of wallet - labels: the alias of wallet
Example:
5. removeWalletAddress
The removeWalletAddress()
method removes a specified address from the whitelist. - walletId: The whitelist wallet id
Example:
6. updateWalletAddress
The updateWalletAddress()
method update a specified address from the whitelist. - walletId: The whitelist wallet id - labels: the alias of wallet
Example:
Last updated