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
address
alias toWallet.classic_address
- Replaced
Wallet.classic_address
withWallet.address
to avoid confusion. (classic_address
is the same as your XRPL accountaddress
, and is only called classic since it's an older standard thanx-address
)
- Replaced
- Added
network_id
to clients in order to use theClient
with networks beyond mainnet by @dangell7 in #520
Changed:
- Updated params for
Wallet
class constructor Wallet.address
is now readonly- Removed
sequence
fromWallet
class - Core keypairs generate seed must take in hexstring instead of bytestring
- Core keypairs formatting for
ED25519
is 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)
AccountSetFlagInterface
now operates on transactiontf
flags (as opposed toasf
flags)sign
is now synchronous instead of async (done by removing the optionalcheck_fee
param & 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 becausewallet
is optional forsubmit_and_wait
and so must come afterclient
) XRP.to_amount
now converts from XRP to drops, instead of expecting a drops amount
Fixed:
- Added a sort of the account IDs in
multisign
, so that themultisign
always works. - Add
ledger_hash
andledger_index
toaccount_nfts
,nft_buy_offers
, andnft_sell_offers
requests. - Add
nft_page
toledger_entry
request.
Removed:
send_reliable_submission
has been replaced bysubmit_and_wait
- Longer aliases for signing/submitting functions have been removed. Specifically
submit_transaction
is nowsubmit
safe_sign_transaction
is nowsign
safe_sign_and_submit_transaction
is nowsign_and_submit
- The param order for
sign_and_submit
moveswallet
afterclient
to be consistent withsubmit_and_wait
- The param order for
safe_sign_and_autofill_transaction
is nowautofill_and_sign
- The param order for
autofill_and_sign
moveswallet
afterclient
to 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_info
get_account_transactions
get_account_payment_transactions
get_transaction_from_hash
Full Changelog: v1.9.0...v2.0.0