This is an npm package that takes care of Signature Version 4 authentication when using web3 library with Ethereum nodes on Amazon Managed Blockchain.
npm install aws-web3-http-provider --save
import Web3 from 'web3';
import AWSHttpProvider from 'aws-web3-http-provider';
const endpoint = process.env.AMB_HTTP_ENDPOINT
const web3 = new Web3(new AWSHttpProvider(endpoint));
web3.eth.getNodeInfo().then(console.log);
To test this package, follow the instructions in test/README
.
See CONTRIBUTING for more information.
This library is licensed under the LGPL-3.0 License.