Miscellaneous functions, types and constants

API reference

class monero.numbers.PaymentID(payment_id)

A class that validates Monero payment ID.

Payment IDs can be used as str or int across the module, however this class offers validation as well as simple conversion and comparison to those two primitive types.

Parameters:payment_id – the payment ID as integer or hexadecimal string

Returns True if payment ID is short enough to be included in IntegratedAddress.


Return the amount rounded to maximal Monero precision.


Convert atomic integer of piconero to Monero decimal.


Convert Monero decimal to atomic integer of piconero.