I am working with https://github.com/ethereum/wiki/wiki/JSON-RPC
api + curl .
And implementing custom api using this php library:
https://github.com/Achse/geth-jsonrpc-php-client
below method is working fine for me for unlock before transaction:
$ curl -X POST --data '{"jsonrpc":"2.0","method":"personal_unlockAccount","params":["0x7642b...", "password", 3600],"id":67}' http://localhost:8545
But I want to unlock account using private key
not by password
. So is there any way to unlock account
and do transaction using private key
.
Best Answer
you can generate a raw transaction as described here or use myetherwallet to get the signed raw transaction and then call
as explained here
besides as @yogesh has mentioned in his comment bellow Ethereumjs build for browser can be used to build the rawtransaction (in client side).