Developers
Search…
Locked Balance
Locked balance is the amount of QBT balance locked by the QubitLocker contract. One may query the amount of locked balance for specific user account. Unlike qScore value, locked balance is not time-weighted value.

QubitLocker

1
function balanceOf(address account) external view returns (uint);
Copied!
  • account : The address of the account to get the locked balance for.
  • RETURN : The quantity of QBT locked by the contract for the given account.

Solidity

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

Ethers.js

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