cfx_utils.types#
- cfx_utils.types.AddressParam#
alias of
str
- cfx_utils.types.EpochNumberParam#
Epoch param could be either EpochLiteral, or Epoch Number
alias of
Literal[‘earliest’, ‘latest_checkpoint’, ‘latest_finalized’, ‘latest_confirmed’, ‘latest_state’, ‘latest_mined’, ‘pending’] |EpochNumber|int
- class cfx_utils.types.GDrip(value: int | decimal.Decimal | str | float | cfx_utils.token_unit.AbstractTokenUnit[cfx_utils.token_unit.BaseTokenUnit])[source]#
A derived token unit from
Dripin Conflux, which corresponds to Ethereum’s GWei. 1 GDrip = 10**9 Drip
- class cfx_utils.types.HexBytes(val: bool | bytearray | bytes | int | str | memoryview)[source]#
Thin wrapper around the python built-in
bytesclass.- It has these changes:
Accepts more initializing values: bool, bytearray, bytes, (non-negative) int, str, and memoryview
The representation at console (__repr__) is 0x-prefixed
to_0x_hexreturns a 0x-prefixed hex string
- cfx_utils.types.EpochLiteral#
alias of
Literal[‘earliest’, ‘latest_checkpoint’, ‘latest_finalized’, ‘latest_confirmed’, ‘latest_state’, ‘latest_mined’, ‘pending’]