Developers
Search…
Total Supply
totalSupply is the number of tokens currently in circulation in this qToken market. It is part of the EIP-20 interface of the qToken contract.

QToken

1
function totalSupply() external view returns (uint);
Copied!
  • RETURN: The total number of tokens in circulation for the market.

Solidity

1
QToken qToken = QToken(<qTokenAddress>);
2
uint amount = qToken.totalSupply();
Copied!

Ethers.js

1
const qToken = await ethers.getContractAt(<qTokenABI>, <qTokenAddress>);
2
const amount = await qToken.totalSupply();
Copied!
Last modified 2mo ago
Copy link