Developers
Search…
Locked Period
The expiry of given account is the unlock time for locked QBT balance. If the account has no lock, it returns 0.

QubitLocker

1
function expiryOf(address account) external view returns (uint);
Copied!
  • account : The address of the account to get the lock expiry for.
  • RETURN : The expiry time of the lock for given account. The value is in a format of epoch time.

Solidity

1
QubitLocker qubitLocker = QubitLocker(<qubitLockerAddress>);
2
uint expiry = qubitLocker.expiryOf(<account>);
Copied!

Ethers.js

1
const qubitLocker = await ethers.getContractAt(<lockerABI>, <lockerAddress>);
2
const expiry = await qubitLocker.expiryOf(<account>);
Copied!
Last modified 2mo ago