Should be viewed as type to representing QUANTITY in Web3 JSON RPC docs
When encoding QUANTITIES (integers, numbers): encode as hex, prefix with "0x", the most compact representation (slight exception: zero should be represented as "0x0"). Examples:
0x41 (65 in decimal) 0x400 (1024 in decimal) WRONG: 0x (should always have at least one digit - zero is "0x0") WRONG: 0x0400 (no leading zeroes allowed) WRONG: ff (must be prefixed 0x)
Constructors
Instances12Enum, Eq, Integral, Num, Ord, Real, …
Enum QuantityDefined in web3-ethereum-1.1.0.1 · Network.Ethereum.Api.TypesEq QuantityDefined in web3-ethereum-1.1.0.1 · Network.Ethereum.Api.TypesIntegral QuantityDefined in web3-ethereum-1.1.0.1 · Network.Ethereum.Api.TypesNum QuantityDefined in web3-ethereum-1.1.0.1 · Network.Ethereum.Api.TypesOrd QuantityDefined in web3-ethereum-1.1.0.1 · Network.Ethereum.Api.TypesReal QuantityDefined in web3-ethereum-1.1.0.1 · Network.Ethereum.Api.TypesShow QuantityDefined in web3-ethereum-1.1.0.1 · Network.Ethereum.Api.TypesIsString QuantityDefined in web3-ethereum-1.1.0.1 · Network.Ethereum.Api.TypesGeneric QuantityDefined in web3-ethereum-1.1.0.1 · Network.Ethereum.Api.TypesFromJSON QuantityDefined in web3-ethereum-1.1.0.1 · Network.Ethereum.Api.TypesToJSON QuantityDefined in web3-ethereum-1.1.0.1 · Network.Ethereum.Api.Typestype Rep Quantity = D1 ('MetaDataDefined in web3-ethereum-1.1.0.1 · Network.Ethereum.Api.Types"Quantity"
"Network.Ethereum.Api.Types"
"web3-ethereum-1.1.0.1-738WWo75PiF1Z3zfKtoo7x"
'True) (C1 ('MetaCons"Quantity"
'PrefixI 'True) (S1 ('MetaSel ('Just"unQuantity"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer)))