Chainstack home page
Search...
⌘K
Start for free
Start for free
Search...
Navigation
Recipes
Guides
Recipes
API
Release notes
Status
Discord
Telegram
Blog
llms.txt
llms-full.txt
Recipes
Create a .env file with all your Chainstack endpoints with Python
How to get ERC-20 token transfer logs using ethers.js
Extract 'randao' Value from the Ethereum Beacon Chain Using the Block Details Method
Identify if a block has been included in the main chain or was forked
How to properly encode topics for eth_getLogs
How to encode callData parameters to programmatically interact with a smart contract
How to convert decimal numbers to hexadecimals strings using web3.js and ethers.js
Send batch requests using ethers.js
Send simultaneous blockchain requests using web3.js
Monitor incoming transactions to an Ethereum address in real time using subscriptions and web3.js
Send Solana transactions using solana/web3.js
Fetching contract deployment transactions with the Chainstack Covalent SDK
Monitoring swaps on Uniswap with WebSocket endpoints
Querying subgraphs in Python with Subgrounds
Minting SPL tokens with solana-web3.js
Simulate a buy swap on Uniswap using Web3.js
Delegating SOL with solana-web3.js
Fetching Polygon Logs for an Address from a Block using `eth_getTransactionReceiptsByBlock` and web3.py
Create a .env file with all your Chainstack endpoints with JavaScript.
How to transfer the entire account balance using web3.js
Fetch ERC-20 balances using ethers.js and ChainstackProvider
Recipes
Copy page
Overview of Chainstack recipes
Create a .env file with all your Chainstack endpoints with Python
Learn how to automatically generate a .env file listing all your Chainstack endpoints with Python.
13 Steps
Open Recipe
How to get ERC-20 token transfer logs using ethers.js
This recipe shows you how to use the Ethers library with a Chainstack Ethereum node to retrieve transfer logs for an ERC-20 token.
7 Steps
Open Recipe
Extract 'randao' value from the Ethereum Beacon chain using the block details method
This script extracts the ‘randao’ information from the Beacon chain block details in JavaScript using the Axios package.
6 Steps
Open Recipe
Identify if a block has been included in the main chain or was forked
This script uses web3.js to evaluate whether a specific block within a blockchain network has been integrated into the main chain or if it was a result of a reorg.
6 Steps
Open Recipe
How to properly encode topics for eth_getLogs
These web3.js and ethers.js scripts provide a straightforward way to generate encoded event signatures and parameters that can be utilized in the topics filter when pulling logs from an EVM-compatible chain.
7 Steps
Open Recipe
How to encode callData parameters to programmatically interact with a smart contract
These scripts show you how to encode callData parameters using the Ethereum ABI specification and web3.js to interact with smart contracts programmatically.
7 Steps
Open Recipe
How to convert decimal numbers to hexadecimals strings using web3.js and ethers.js
Hexadecimal strings are used to represent addresses and encode gas data and values. These scripts show you how to do it programmatically within your DApps.
4 Steps
Open Recipe
Send batch requests using ethers.js
This Recipe shows how to send batch requests to your Chainstack node instead of sending multiple loop-based requests. Adopting this approach can substantially boost the performance of your DApp.
7 Steps
Open Recipe
Send simultaneous blockchain requests using web3.js
This Recipe shows you how to efficiently send multiple requests to an Ethereum node instead of using a
for
loop by fetching an account balance for the past 500 blocks.
6 Steps
Open Recipe
Monitor incoming transactions to an Ethereum address in real time using subscriptions and web3.js
This Recipe shows you how to leverage subscriptions, WSS endpoints, and web3.js to monitor incoming transactions in real-time.
5 Steps
Open Recipe
Send Solana transactions using solana/web3.js
This Recipe shows how you can use the solana/web3.js library to send transactions programmatically.
7 Steps
Open Recipe
Fetching contract deployment transactions with the Chainstack Covalent SDK
Querying the Chainstack Covalent SDK to return a list of contracts deployed by a specified address.
7 Steps
Open Recipe
Monitoring swaps on Uniswap with WebSocket endpoints
Monitoring swaps, in near real-time, as they happen on Uniswap V2 with web3.js.
7 Steps
Open Recipe
Querying subgraphs in Python with Subgrounds
Leveraging the Subgrounds Python library to interact with subgraphs.
6 Steps
Open Recipe
Minting SPL tokens with solana-web3.js
Leveraging solana-web3.js and spl-token to mint 1000 SPL tokens on Solana.
7 Steps
Open Recipe
Simulate a buy swap on Uniswap using Web3.js
Learn how to use
eth_call
to simulate Uniswap swaps.
7 Steps
Open Recipe
Delegating SOL with solana-web3.js
Using solana-web3.js to interact with Solana’s stake program to delegate 0.02 SOL.
6 Steps
Open Recipe
Fetching Polygon Logs for an Address from a Block using `eth_getTransactionReceiptsByBlock` and web3.py
Using the web3.py library, this tool fetches transaction logs from the Polygon blockchain for a given Ethereum address in a specific block. It aids in efficient retrieval and analysis of transaction activities, ideal for debugging and monitoring.
11 Steps
Open Recipe
Create a .env file with all your Chainstack endpoints with JavaScript
Learn how to create a
.env
file with all your Chainstack endpoints using JavaScript.
7 Steps
Open Recipe
How to transfer the entire account balance using web3.js
Learn how to transfer the entire balance from an account using web3.js.
5 Steps
Open Recipe
Fetch ERC-20 balances using ethers.js and ChainstackProvider
Use ethers with the
ChainstackProvider
to call smart contract functions.
7 Steps
Open Recipe
Was this page helpful?
Yes
No
Suggest edits
Raise issue
Create a .env file with all your Chainstack endpoints with Python
Assistant
Responses are generated using AI and may contain mistakes.