This document provides an overview of the key changes made in the xahau SDK, a fork of the original xrpl-py repository. Users transitioning from xrpl-py to xahau should take note of the following modifications to ensure a smooth migration and continued functionality.
- The import statement for the SDK has changed:
to:
import xrpl
import xahau
- The import for the Client class has been updated:
to:
from xrpl import Client
from xahau import Client
-
The exception class has been renamed:
- From
XRPLException
toXAHLException
.
Update your exception handling code accordingly:
from xrpl.exceptions import XRPLException
should now be:
from xahau.exceptions import XAHLException
- From
-
The currency class reference has changed:
- From
XRP()
toXAH()
.
Ensure that any instances of
XRP()
are replaced withXAH()
in your code. - From
-
The utility functions for converting between currency and drops have been renamed:
xrp_to_drops()
is nowxah_to_drops()
drops_to_xrp()
is nowdrops_to_xah()
Update your function calls accordingly:
drops = xrp_to_drops(amount)
should now be:
drops = xah_to_drops(amount)
- Any calls to the XRPL ledger should continue to work seamlessly within this SDK. The underlying functionality remains intact, ensuring that users can interact with the XRPL ledger as expected.
These changes are designed to enhance the xahau SDK while maintaining compatibility with the XRPL ledger. Users should review their code for the above modifications to ensure a smooth transition from xrpl-py to xahau. If you have any questions or need further assistance, please refer to the documentation or reach out to the community for support.