truffle-hyperledger-besu-box
v2.0.0
Published
<img src="assets/box-img-lg.png" align="right" width="325">
Downloads
4
Readme
Hyperledger Besu Truffle Box
You can read the official documentation here
Overview
Run a local devnet or connect to a test network
Quickstart
. ./init-besu.sh
Getting Started
Install
Install the NPM Package: `npm install truffle-hyperledger-besu-box`
Modify the truffle-config.js file in the project directory to add the wallet provider. Replace:
`<JSON-RPC-http-endpoint>` with the JSON-RPC endpoint (IP address and port) of a Besu node `<account-private-key>` with the private key of an Ethereum account containing Ether
Start a Besu Node Start a Besu node with JSON-RPC enabled on the endpoint specified in the Truffle configuration file.
Mac users can use homebrew to install hyperledger besu Add the tap, and install: You will need a genesis file as well
Run the besu executable:
besu --help
besu --data-path=data --genesis-file=genesis.json --p2p-port=30303 --rpc-http-enabled --rpc-http-api=ETH,NET,ADMIN --host-whitelist="*" --rpc-http-cors-origins="all"
Deploy Contract To deploy a contract onto the Besu network:
truffle migrate --network besuWallet
License
MIT / Apache-2.0