This plugin provides Cactus
a way to interact with Go-Ethereum networks. Using this we can perform:
sendSyncRequest
: Send sync-typed requests to the ledgers (e.g. getBalance)sendAsyncRequest
: Send async-typed requests to the ledgers (e.g. sendTransaction)startMonitor
: Start monitoring blocks on the ledgersstopMonitor
: Stop the block monitoring
- OS: Linux (recommended Ubuntu20.04,18.04 or CentOS7)
- Docker (recommend: v17.06.2-ce or greater)
- Docker-compose (recommend: v1.14.0 or greater)
- node.js v12 (recommend: v12.20.2 or greater)
- Please ensure that the destination ledger (default: geth-testnet) is already launched
- Available port:
5050
(for the port of@hyperledger/cactus-plugin-ledger-connector-go-ethereum-socketio
)- if this port is already used, please change the setting on
docker-compose.yaml
- if this port is already used, please change the setting on
- Install npm packages and build them
cd cactus/packages/cactus-plugin-ledger-connector-go-ethereum-socketio npm install npm run build
- Create symbolic link to node_modules
- NOTE: This command is enough to execute only once.
npm run init-ethereum
- Create the docker image
docker-compose -f docker-compose.yaml build
- Launce the container
docker-compose -f docker-compose.yaml up
- To confirm the operation of this package, please refer to the following business-logic sample applications:
We welcome contributions to Hyperledger Cactus in many forms, and there's always plenty to do!
Please review CONTIRBUTING.md to get started.
This distribution is published under the Apache License Version 2.0 found in the LICENSE file.