Units
For units conversion, Kaia-sdk supports utils for converting kaia
, Gkei
and kei
. See supported units .
Import extend from web3py_ext to extend web3 to kaia web3
To convert from (Gkei/kaia)
to kei
, use Web3.to_kei(value, unit)
.
To convert from kei
to (kaia/Gkei)
, use Web3.from_kei(value, unit)
.