Wondering what’s next for npm?Check out our public roadmap! »

    truffle-hyperledger-besu-box

    2.0.0 • Public • Published

    Hyperledger Besu Truffle Box



    This is a boilerplate template for development on Hyperledger Besu

    You can read the official documentation here

    Overview

    Run a local devnet or connect to a test network

    Quickstart

    . ./init-besu.sh

    Getting Started

    1. Install

      Install the NPM Package:
      `npm install truffle-hyperledger-besu-box`
      
    2. 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
      
    3. 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


    `brew tap hyperledger/besu`
    `brew install besu`
    1. 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"

    2. Deploy Contract To deploy a contract onto the Besu network:
      truffle migrate --network besuWallet


    License

    MIT / Apache-2.0

    Keywords

    none

    Install

    npm i truffle-hyperledger-besu-box

    DownloadsWeekly Downloads

    1

    Version

    2.0.0

    License

    ISC

    Unpacked Size

    1.79 MB

    Total Files

    36

    Last publish

    Collaborators

    • avatar