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

function availableOf(address account) external view returns (uint);
  • 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

QubitLocker qubitLocker = QubitLocker(<qubitLockerAddress>);
uint amount = qubitLocker.availableOf(<account>);

Ethers.js

const qubitLocker = await ethers.getContractAt(<lockerABI>, <lockerAddress>);
const amount = await qubitLocker.availableOf(<account>);
Copy link
On this page
QubitLocker
Solidity
Ethers.js