Use MetaMask with Node.js.
โ ๏ธ Highly experimental!
git clone [email protected]:harshjv/metamask-bridge.git
cd metamask-bridge
npm install
node index.js
open http://localhost:4000/
See example.js.
ethereum('enable')((err, accounts) => {
console.log('ethereum.enable', err, accounts)
})
If
methodName
ends with '()', it will be treated like a function call.
web3('eth.getBlock()')(1)((err, block) => {
console.log('web3.eth.getBlock(1)', err, block)
})
web3('eth.accounts')()((err, accounts) => {
console.log('eth.accounts', err, accounts)
})
MIT