Developers
Search…
Unlocked Balance
Unlocked Balance is the amount of QBT currently unlocked from the locker since the expiry time of the lock has already expired.

QubitLocker

1
function availableOf(address account) external view returns (uint);
Copied!
  • account : The address of the account to get the unlocked balance for.
  • RETURN : The quantity of QBT unlocked by the contract for the given account. If the lock has not expired yet, the resulting value is 0.

Solidity

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

Ethers.js

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