js-ethereum-libp2p
js-ethereum-libp2p copied to clipboard
⛓ Process the ethereum blockchain in the Browser ou Node.js with ♦libp2p 🎉
trafficstars
js-ethereum-libp2p

Get the ethereum blockchain in the Browser or in a Node.js process using libp2p and run through it using ethereum-vm. This is the humble starts of getting a full ethereum node running in JavaScript that can interact with the rest of the network.
BEWARE BEWARE BEWARE
This module is a work in progress! So beware of dragons! 🐲 🐉
Description
Example
Usage
Install
API
Ethereum Node Class: Ethereum.Node
Create an Ethereum Node: const eth = new Ethereum.Node()
Start the node: eth.start([PeerInfo], callback)
Stop the node: eth.stop(callback)
libp2p: eth.libp2p
See ipfs/js-libp2p-ipfs for documentation.
BlockChain: eth.blockchain
Synchronize (fetch) the latest state of the blockchain eth.blockchain.sync([PeerInfo], callback)
Synchronizes the BlockChain, fetching every block in the network.
Virtual Machine eth.vm
Instance of ethereumjs-vm, see ethereumjs/ethereumjs-vm for docs.
Blocks
WIP
Send a block
Broadcast a block
Transactions
WIP
Send a transaction
Broadcast a transaction
License
MIT © David Dias