Chainstack home pagelight logodark logo
  • Start for free
  • Start for free
Guides
Recipes
API
Release notes
  • Status
  • Discord
  • Telegram
  • Blog
  • llms.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

    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

    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

    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

    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

    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

    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

    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

    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

    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

    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

    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

    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

    Monitoring swaps on Uniswap with WebSocket endpoints

    Monitoring swaps, in near real-time, as they happen on Uniswap V2 with web3.js.

    7 Steps

    Querying subgraphs in Python with Subgrounds

    Leveraging the Subgrounds Python library to interact with subgraphs.

    6 Steps

    Minting SPL tokens with solana-web3.js

    Leveraging solana-web3.js and spl-token to mint 1000 SPL tokens on Solana.

    7 Steps

    Simulate a buy swap on Uniswap using Web3.js

    Learn how to use eth_call to simulate Uniswap swaps.

    7 Steps

    Delegating SOL with solana-web3.js

    Using solana-web3.js to interact with Solana’s stake program to delegate 0.02 SOL.

    6 Steps

    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

    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

    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

    Fetch ERC-20 balances using ethers.js and ChainstackProvider

    Use ethers with the ChainstackProvider to call smart contract functions.

    7 Steps

    Was this page helpful?

    Suggest editsRaise issue
    Create a .env file with all your Chainstack endpoints with Python
    Chainstack home pagelight logodark logo
    linkedinxdiscordtelegramfacebookyoutube

    Platform

    SolutionPricingEnterpriseCustomersMarketplaceHostingChainstack CloudIPFSSubgraphs

    Developers

    LoginSign upFaucetsLabsStatus

    Company

    About usContact usCareersAmbassadorsLabsSecuritySLA

    Support

    Help centerDeveloper portalTerms of servicePrivacy policy
    Assistant
    Responses are generated using AI and may contain mistakes.