multiversx / mx-sdk-py-cli

Python Command Line Tools and SDK for interacting with the MultiversX blockchain and dApps.
Other
34 stars 36 forks source link

Can I sign contract deployment transactions using Ledger hardware wallet? #349

Closed andreibancioiu closed 10 months ago

andreibancioiu commented 10 months ago

Yes! :rocket:

For example:

mxpy contract deploy --proxy=https://devnet2-gateway.multiversx.com --recall-nonce \
 --bytecode=counter.wasm --gas-limit=5000000 \
 --ledger --ledger-address-index=42 --send

Example of such a transaction on Devnet 2.

FabriceDautriat commented 10 months ago

Thanks a lot

razvanphp commented 10 months ago

can we have this in the mxpy CLI cookbook? I see it mentioned in the documentation, but maybe it would be nice to explain better what --ledger-address-index=42 parameter is.

andreibancioiu commented 10 months ago

@razvanphp, yes, thanks for the suggestion :pray:

We have prepared a PR on docs, currently under internal review:

https://github.com/multiversx/mx-docs/pull/725

andreibancioiu commented 10 months ago

Docs updated: https://docs.multiversx.com/sdk-and-tools/sdk-py/mxpy-cli/#using-the-ledger-hardware-wallet.

@FabriceDautriat, @razvanphp, thank you :pray: