Transaction Policy
1. getCurrentPolicy
fun main() {
// Retrieve the current transaction policy
let resPolicy = getCurrentPolicy()
}
3. enablePolicy
fun main() {
let enablePolicy = true
let force = true
// enable the Transaction Policy
let updatedPolicy = enablePolicy(
enablePolicy: enablePolicy,
force: force,
)
}
3. disablePolicy
4. addWalletAddress
5. removeWalletAddress
6. updateWalletAddress
7. getTransactionAmountLimit
8. updateTransactionAmountLimit
9. updateTransactionAmountLimitForSpecificAddress
10. getTransactionCurrentUsage
11. recordTransactionDailyUsage
12. checkAmountWithPolicy
Last updated