-
I am not able to get a command without using my private key in plain text for calling a function using "cast send". If anyone knows a command for calling a function using command which prompts for the password to decrypt the private key and not to directly enter private key then please REPLY. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hello @omkar454, Read this page of the Foundry docs https://book.getfoundry.sh/reference/cast/cast-send . Basically, you should use |
Beta Was this translation helpful? Give feedback.
Hello @omkar454, Read this page of the Foundry docs https://book.getfoundry.sh/reference/cast/cast-send . Basically, you should use
--account
instead of the--interactive
flag. Using the--account
flag, you need to pass an account you have previously created with Foundry Keystore by encrypting your private key, and it will prompt you for the account password, and boom, it will run your transaction.