marusinm / eth-wallet

Python Ethereum wallet
MIT License
15 stars 16 forks source link

Is There a Way to Send A Transaction With 1 Command, Instead of The "To Address" and "Value To Send" Prompts. #27

Open Puffball101961 opened 3 years ago

Puffball101961 commented 3 years ago

Title says most, pretty much I want to be able to send a transaction by executing eth-wallet send-transaction --token XXX --destination 0x94853... --value 10 as an example. Is there are way to do this?

Puffball101961 commented 3 years ago

Nevermind, turns out i'm really dumb and didn't look at the help page.

Puffball101961 commented 3 years ago

Well I have actually found another issue with this, it still asks for the "keystore password", which I don't use, so is there a way to bypass this?

mansilla commented 3 years ago

@Puffball101961 I think the keystore password is required for the wallet creation. Si if you didn't provide a password an empty string will be used. Take a look at this: https://github.com/marusinm/eth-wallet/blob/master/eth_wallet/cli/new_wallet.py#L19 and here https://github.com/marusinm/eth-wallet/blob/master/eth_wallet/wallet.py#L40

Puffball101961 commented 3 years ago

I am aware of this during the wallet creation, but is there a way to put the key store password as an argument when doing send-transaction. something like this: eth-wallet send-transaction -v 0.005 -t 0x123... -keystore

marusinm commented 3 years ago

@Puffball101961, no there is no such an option. Feel free to open a PR :)