DecimalisedHolding

Documentation for eth_defi.balances.DecimalisedHolding Python class.

class DecimalisedHolding[source]

A helper class to represent token holdings.

Exposes the underlying decimals the ERC-20 wants to express.

Attributes summary

value

decimals

contract

Methods summary

__init__(value, decimals, contract)

__init__(value, decimals, contract)
Parameters
  • value (decimal.Decimal) –

  • decimals (int) –

  • contract (web3.contract.contract.Contract) –

Return type

None