Transaction Constraints
Parameters needed to create a tx
Last updated
Was this helpful?
Parameters needed to create a tx
Last updated
Was this helpful?
Different privacy pools have different limits for deposit and withdraw operations. Limits can also depend on the user's 0x
-address (address can be whitelisted).
address
:
An address to be used for evaluating limits. Zero-address is used if undefined.
directRequest
: Request limits from the pool contract when true
(otherwise, request from the relayer node).
Promise
returns
The transaction amount cannot be less than the return value. This is applicable for each transaction type (for multi-transfer tx each note is must meet this minimum value).
Promise
returns minimum transaction amount in the pool dimension.
Privacy pools have the optional ability to swap an amount of tokens to native coins during a withdraw transaction (typically to seed a wallet with native tokens for operations). The following method returns the maximum number of tokens that can be swapped to native coins.
Promise
returns maximum number of tokens available to swap to native coins (in the pool dimension).