Cryptocurrency Unit Conversion

  • For callback
    • The amount and fees fields in the callback are in the smallest cryptocurrency unit, use decimal and fee_decimal(in the addon field) fields of callback data to convert the unit.
  • For API
    • Refer to decimals of Currency Definition to convert main cryptocurrency unit.
    • For the cryptocurrency token, use the token_decimals field of the Wallet Info API to convert cryptocurrency token unit.