v2.0.0
Detailed Migration Guide
https://xrpl.org/blog/2023/xrpl-py-2.0-release.html
What's Changed
Added:
- Wallet support for regular key compatibility
- Added new ways of wallet generation:
from_seed,from_secret,from_entropy,from_secret_numbers - Added
addressalias toWallet.classic_address- Replaced
Wallet.classic_addresswithWallet.addressto avoid confusion. (classic_addressis the same as your XRPL accountaddress, and is only called classic since it's an older standard thanx-address)
- Replaced
- Added
network_idto clients in order to use theClientwith networks beyond mainnet by @dangell7 in #520
Changed:
- Updated params for
Walletclass constructor Wallet.addressis now readonly- Removed
sequencefromWalletclass - Core keypairs generate seed must take in hexstring instead of bytestring
- Core keypairs formatting for
ED25519is now padded with zeros if length of keystring is less than 64 - Removed deprecated request wrappers (the preferred method is to directly do client.request instead)
AccountSetFlagInterfacenow operates on transactiontfflags (as opposed toasfflags)signis now synchronous instead of async (done by removing the optionalcheck_feeparam & moving checks up to other functions)- In order to be internally consistent, all signing/submitting functions will follow the parameter order of
transaction,client,wallet, and then other parameters. (This is becausewalletis optional forsubmit_and_waitand so must come afterclient) XRP.to_amountnow converts from XRP to drops, instead of expecting a drops amount
Fixed:
- Added a sort of the account IDs in
multisign, so that themultisignalways works. - Add
ledger_hashandledger_indextoaccount_nfts,nft_buy_offers, andnft_sell_offersrequests. - Add
nft_pagetoledger_entryrequest.
Removed:
send_reliable_submissionhas been replaced bysubmit_and_wait- Longer aliases for signing/submitting functions have been removed. Specifically
submit_transactionis nowsubmitsafe_sign_transactionis nowsignsafe_sign_and_submit_transactionis nowsign_and_submit- The param order for
sign_and_submitmoveswalletafterclientto be consistent withsubmit_and_wait
- The param order for
safe_sign_and_autofill_transactionis nowautofill_and_sign- The param order for
autofill_and_signmoveswalletafterclientto be consistent withsubmit_and_wait
- The param order for
- Removed deprecated request functions which were just wrappers around
Client.request(). Specifically this includes:get_account_infoget_account_transactionsget_account_payment_transactionsget_transaction_from_hash
Full Changelog: v1.9.0...v2.0.0