For the complete documentation index, see llms.txt. This page is also available as Markdown.

Total Supply

Total Supply is the number of tokens currently in circulation in this bToken market. It is part of the EIP-20 interface of the bToken contract.

BErc20 / CEther

function totalSupply() returns (uint)
  • RETURN: The total number of tokens in circulation for the market.

Solidity

BErc20 bToken = BToken(0x3FDA...);
uint tokens = bToken.totalSupply();

Web3 1.0

const bToken = CEther.at(0x3FDB...);
const tokens = (await bToken.methods.totalSupply().call());

Last updated