
Security News
Software Engineering Daily Podcast: Feross on AI, Open Source, and Supply Chain Risk
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.
@aws/web3-http-provider
Advanced tools
Web3 HTTP provider for Amazon Managed Blockchain that handles AWS Signature Version 4 authentication
This is an npm package that takes care of Signature Version 4 authentication for HTTP connections to Ethereum nodes on Amazon Managed Blockchain.
Install and save as a dependency using NPM:
npm install @aws/web3-http-provider --save
This example assumes that your AWS IAM-related environment variables have been set previously. For example:
export AWS_ACCESS_KEY_ID=...
export AWS_SECRET_ACCESS_KEY=...
# if your IAM credentials are temporary:
export AWS_SESSION_TOKEN=...
const Web3 = require('web3');
const AWSHttpProvider = require('@aws/web3-http-provider');
const endpoint = 'https://nd-NODEID.ethereum.managedblockchain.REGION.amazonaws.com';
const web3 = new Web3(new AWSHttpProvider(endpoint));
web3.eth.getNodeInfo().then(console.log);
You may also provide your credentials directly to the constructor arguments of a new instance of AWSHttpProvider():
const Web3 = require('web3');
const AWSHttpProvider = require('@aws/web3-http-provider');
const credentials = {
accessKeyId: process.env.AWS_ACCESS_KEY_ID,
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY
}
const endpoint = <your Amazon Managed Blockchain HTTP URL>
const web3 = new Web3(new AWSHttpProvider(endpoint, credentials));
web3.eth.getNodeInfo().then(console.log);
This reusable HTTP provider can be used to create a valid HTTP provider in the popular Ethers.js library:
In your project's root directory, install ethers:
npm install ethers --save
const ethers = require('ethers');
const AWSHttpProvider = require('@aws/web3-http-provider');
const credentials = {
accessKeyId: process.env.AWS_ACCESS_KEY_ID,
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY
}
const endpoint = 'https://nd-NODEID.ethereum.managedblockchain.REGION.amazonaws.com';
const baseProvider = new AWSHttpProvider(endpoint, credentials));
let provider = new ethers.providers.Web3Provider(baseProvider);
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.
FAQs
Web3 HTTP provider for Amazon Managed Blockchain that handles AWS Signature Version 4 authentication
The npm package @aws/web3-http-provider receives a total of 33 weekly downloads. As such, @aws/web3-http-provider popularity was classified as not popular.
We found that @aws/web3-http-provider demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 15 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.

Security News
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.