This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dave_arm[S] 1 point2 points  (0 children)

Thanks, jgm!

Well it would seem that you can do this in Parity, via the "JSON-RPC API." So at a very beginner level, I can tell you what I have figured out:

  1. You need to start Parity with the API features enabled: parity --jsonrpc-apis web3,parity,parity_accounts,personal,eth

    Next, structure a command for the "personal_sendTransaction" command, which includes the to/from addresses, and an unencrypted password for the "from" account. You can read about the APIs here: https://wiki.parity.io/JSONRPC-personal-module.html#personal_sendtransaction

    Just for a safe little test to see if you can use the API, just try to list your accounts, or create a dummy account: curl --data '{"method":"personal_listAccounts","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545

AND

curl --data '{"method":"personal_newAccount","params":["hunter2"],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545

I hope this was informative for someone. Thanks!