-
Notifications
You must be signed in to change notification settings - Fork 3
How to sign Ethereum transaction via KeyChain
Dmitry edited this page Mar 31, 2019
·
43 revisions
Here you can find an instruction on how to sign an Ethereum transaction with KeyChain.
Here you can try out signing Ethereum transactions with KeyChain.
1. Download and install KeyChain for macOS
Start with the command `wscat -c ws://localhost:16384/, then select a key.
{
"command": "select_key"
}
const ethUtil = require('ethereumjs-util');
const publicKey = 'YOUR_PUBLIC_KEY';
const address = ethUtil.publicToAddress(publicKey).toString('hex');
In case you work with ropsten - https://faucet.ropsten.be/
web3.eth.getBalance(address)
.then(console.log);
You can find an example of the code here