You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mxpy v10 contains a few changes compared to the previous version that we'll go through bellow. The changes consist of some breaking changes with some things being removed, but also some new features and improved usability.
The two commands have been removed due to not being very helpful. A simple curl or wget request to the API can be easily performed to replace these commands.
The --estimate-gas flag was removed. Gas limit estimation is performed by default for all commands where possible (excluding smart contract related transactions). If the user explicitly provides the --gas-limit argument, the value will overwrite the estimated value.
Previously, each wallet type had its own --index argument (e.g. --pem-index, --ledger-address-index). Since only one wallet can be provided at once, we've decided to only use one index argument for all wallet types. The arguments are as follows:
--sender-wallet-index --> can be used for the sender wallet
--guardian-wallet-index --> can be used in case a guardian wallet is provided
--relayer-wallet-index --> can be used in case a relayer wallet is provided
Previously, if an address was provided for --arguments, mxpy would know it's an address and knew how to encode it. This flow is still possible, but it's considered legacy and will be removed in the future. If you want to provide an address as an argument, please use the addr: prefix.
A new command group has been added and it can be used to create a validator wallet and to sing and verify messages using a validator wallet. For more information about this command, please run:
Activity
popenta commentedon Mar 18, 2025
mxpy contractSome smart contract related commands like: build, test, report have been deleted. Please use
sc-metafor smart contract development.Commands such as deploy, call and query are still available. To see all the available commands, please run:
popenta commentedon Mar 18, 2025
mxpy deps install rustThe
Rustdependency has been dropped no longer being needed after the removal of the above mentioned contract commands.popenta commentedon Mar 18, 2025
mxpy account get&&mxpy transaction getThe two commands have been removed due to not being very helpful. A simple
curlorwgetrequest to the API can be easily performed to replace these commands.popenta commentedon Mar 18, 2025
--estimate-gasflagThe
--estimate-gasflag was removed. Gas limit estimation is performed by default for all commands where possible (excluding smart contract related transactions). If the user explicitly provides the--gas-limitargument, the value will overwrite the estimated value.popenta commentedon Mar 18, 2025
wallet indexPreviously, each wallet type had its own
--indexargument (e.g.--pem-index,--ledger-address-index). Since only one wallet can be provided at once, we've decided to only use one index argument for all wallet types. The arguments are as follows:popenta commentedon Mar 18, 2025
Added new prefix for address arguments
Previously, if an address was provided for
--arguments, mxpy would know it's an address and knew how to encode it. This flow is still possible, but it's considered legacy and will be removed in the future. If you want to provide an address as an argument, please use theaddr:prefix.e.g.
popenta commentedon Mar 18, 2025
mxpy-up.pyThe installation script was deprecated and not maintained anymore so it was deleted. We recommend installing
mxpyusing pipx.popenta commentedon Mar 18, 2025
mxpy validator-walletA new command group has been added and it can be used to create a validator wallet and to sing and verify messages using a validator wallet. For more information about this command, please run:
popenta commentedon Mar 18, 2025
relayed transactions v1With relayed transactions v3 being live, we dropped support for relayed v1 since that will be deactivated from the protocol in the upcoming releases.