• Homepage • Supported protocols • Chainstack blog • Chainstack docs • Blockchain API reference • Start for free •
This project allows the retrieval of historical data from the blockchain programmatically, switching between a full and archive node provider when necessary.
See the full tutorial on the Chainstack blog:
This repository holds the JavaScript version of a tool to query common state functions. Some essential functions include getting an address balance and storage at a given position, a contract bytecode, or even the whole transactions included on a given block.
This tool queries the blockchain using the web3 and inquirer libraries for JavaScript.
git clone https://github.com/yieniggu/chainstack-full-vs-archive-query-js.gitnpm ciUse
npm cito launch aclean installof the dependencies, this will install the same version as in thepackage.jsonfile.
Add your RPC node URLs and rename the file to .env.
CHAINSTACK_FULL_NODE="CHAINSTACK_FULL_NODE_URL"
CHAINSTACK_ARCHIVE_NODE="CHAINSTACK_ARCHIVE_NODE_URL"npm run start- Node.js: ^16.17.0— install Node
- A full and archive node RPC endpoints.
Deploy a full and archive node with Chainstack:
- dotenv: ^16.0.3
- inquirer: ^8.2.4
- web3.js: ^1.7.4
Clone this repository:
git clone https://github.com/yieniggu/chainstack-full-vs-archive-query-js.gitInstall the dependencies in the project's directory:
cd query-full-and-archive-nodes-javascriptnpm ciUse
npm cito launch aclean installof the dependencies, this will install the same version as in thepackage.jsonfile.
