
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
web3data-js
Advanced tools
Wrapper for Amberdata.io's REST API
Using npm:
npm install web3data-js
Using CDN:
<script src="https://unpkg.com/web3data-js/dist/web3data.min.js"></script>
import Web3Data from 'Web3Data'
const w3d = new Web3Data('<api-key>')
( async () => {
const contract = await w3d.contract.getDetails("0x06012c8cf97bead5deae237070f9587f8e7a266d")
console.log(contract) // { ... }
}
)()
import Web3Data from 'Web3Data'
const w3d = new Web3Data('<api-key>')
w3d.connect(status => {
console.log('status ->', status.type)
})
w3d.on({eventName: 'block'}, data => {
console.log(data)
})
This will run all tests using the prerecorded responses from the fixtures.
npm test
Runs tests using live responses from our endpoints. (Requires API key see Obtaining an Api key).
npm run test-live
Runs tests using live responses from our endpoints and records them in your fixtures folder.
npm run test-record
Visit Amberdata.io and select the developer plan to get started!
Once you have you're key place it in a file named .env
— see ./env.example for reference.
npm run build # Build for browser and output as `dist/web3data.min.js`
npm run lint # run linter
npm run lintfix # fix linting errors
npm run test # runs all tests in playback mode
npm run test-record # run tests in record mode
npm run test-live # run tests hitting live endpoints
npm run test-fast # run tests but stop when one fails
npm run test-verbose # run tests with verbose output
npm run clean-fix # deletes the fixtures
npm run example # runs the example - see web3data-js in action!
This project is licensed under the Apache Licence 2.0.
FAQs
A javascript wrapper for accessing amberdata's public API.
The npm package web3data-js receives a total of 7 weekly downloads. As such, web3data-js popularity was classified as not popular.
We found that web3data-js 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
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.