Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
An ethers-compatible JSONRPC provider powered by Axios
Weekly downloads
Readme
Fastest, fault tolerant multi node ethers.js compatible JSONRPC provider
AxiosProvider is an easy to use ethers.js v5 compatible Ethereum Javascript (Typescript) JSONRPC API Provider powered by a powerful Axios HTTP client wrapped by axios-auto library to help your automated error handling & Promise.any powered client-side load balancing feature.
Features:
Node.js
# Wouldn't work without axios or ethers installed
npm i --save axios ethers ethers-axios-provider
https://ayanamitech.github.io/ethers-axios-provider
Every release of ethers-axios-provider
will have new build of ./dist/browser/index.js
for use in the browser. To get access to module classes use AxiosProvider
global variable.
WARN: We recommend hosting and controlling your own copy for security reasons
<!-- Since Browser bundle comes with axios-auto built in, no need to add additional axios or axios-auto dependency -->
<script src="https://cdn.jsdelivr.net/npm/ethers-axios-provider@latest"></script>
<!-- Since Browser bundle comes with axios-auto built in, no need to add additional axios or axios-auto dependency -->
<script src="https://unpkg.com/ethers-axios-provider@latest"></script>
Note that it would be helpful to setup the Subresource Integrity hash to ensure that the imported library has the desired codes.
For more info, see https://www.srihash.org/.
// CommonJS
const AxiosProvider = require('ethers-axios-provider');
// ModuleJS / TypeScript
import AxiosProvider from 'ethers-axios-provider';
const provider = new AxiosProvider('rpc-host-here');
provider.getBlockNumber().then(blockNumber => {
// Will return something like 10000
console.log(blockNumber);
});
FAQs
An ethers-compatible JSONRPC provider powered by Axios
The npm package ethers-axios-provider receives a total of 0 weekly downloads. As such, ethers-axios-provider popularity was classified as not popular.
We found that ethers-axios-provider demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.