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

DErc20 / DEther

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

Solidity

1
DErc20 dToken = dToken(0x3FDA...);
2
uint tokens = dToken.totalSupply();
Copied!

Web3 1.0

1
const dToken = DEther.at(0x3FDB...);
2
const tokens = (await dToken.methods.totalSupply().call());
Copied!