Retrieves the timelocks associated with multiple user addresses from different versions of UniCrypt's contracts.
The ID of the network where the timelocks are located.
An array containing user addresses for which to retrieve the timelocks.
A Promise that resolves to an object where each key is a user address, and the value is an array of Timelock
objects.
Retrieves the timelocks associated with multiple token addresses from different versions of UniCrypt's contracts.
The ID of the network where the timelocks are located.
An array containing token addresses for which to retrieve the timelocks.
A Promise that resolves to an object where each key is a token address, and the value is an array of Timelock
objects.
Generated using TypeDoc
The
UniCrypt
class provides methods for retrieving tokens timelocks associated with user addresses and token addresses from different versions of UniCrypt's contracts. The class offers the following public methods:getUsersLocks
method: Retrieves timelocks associated with multiple user addresses.getTokensLocks
method: Retrieves timelocks associated with multiple token addresses.To use the
UniCrypt
class, you need to create an instance of theDeFiData
class first and wait for it to be ready. You can then access the public methods of theUniCrypt
property from theDeFiData
instance to fetch timelocks information.Example
Here's an example of how to use the
UniCrypt
class: