Skip to content

Latest commit

 

History

History
161 lines (112 loc) · 9.41 KB

recipes.mdx

File metadata and controls

161 lines (112 loc) · 9.41 KB
title description
Recipes
Overview of Chainstack recipes

import { Button } from '/snippets/button.mdx';

Learn how to automatically generate a .env file listing all your Chainstack endpoints with Python.
13 Steps

<Button href="/recipes/create-a-env-file-with-all-your-chainstack-endpoints-with-python">Open Recipe</Button>
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

<Button href="/recipes/how-to-get-erc-20-token-transfer-logs-using-ethersjs">Open Recipe</Button>
This script extracts the 'randao' information from the Beacon chain block details in JavaScript using the Axios package.
6 Steps

<Button href="/recipes/extract-randao-value-from-the-ethereum-beacon-chain-using-the-block-details-method-1">Open Recipe</Button>
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

<Button href="/recipes/identify-if-a-block-has-been-included-in-the-main-chain-or-was-forked-1">Open Recipe</Button>
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

<Button href="/recipes/how-to-properly-encode-topics-for-eth_getlogs-1">Open Recipe</Button>
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

<Button href="/recipes/how-to-encode-calldata-parameters-to-programmatically-interact-with-a-smart-contract">Open Recipe</Button>
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

<Button href="/recipes/how-to-convert-decimal-numbers-to-hexadecimals-strings-using-web3js-and-ethersjs">Open Recipe</Button>
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

<Button href="/recipes/send-batch-requests-using-ethersjs">Open Recipe</Button>
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

<Button href="/recipes/send-simultaneous-blockchain-requests-using-web3js">Open Recipe</Button>
This Recipe shows you how to leverage subscriptions, WSS endpoints, and web3.js to monitor incoming transactions in real-time.
5 Steps

<Button href="/recipes/monitor-incoming-transactions-to-an-ethereum-address-in-real-time-using-subscriptions-and-web3js">Open Recipe</Button>
This Recipe shows how you can use the solana/web3.js library to send transactions programmatically.
7 Steps

<Button href="/recipes/send-solana-transactions-using-solanaweb3js">Open Recipe</Button>
Querying the Chainstack Covalent SDK to return a list of contracts deployed by a specified address.
7 Steps

<Button href="/recipes/fetching-contract-deployment-transactions-with-the-chainstack-covalent-sdk">Open Recipe</Button>
Monitoring swaps, in near real-time, as they happen on Uniswap V2 with web3.js.
7 Steps

<Button href="/recipes/monitoring-swaps-on-uniswap-with-websocket-endpoints">Open Recipe</Button>
Leveraging the Subgrounds Python library to interact with subgraphs.
6 Steps

<Button href="/recipes/querying-subgraphs-in-python-with-subgrounds">Open Recipe</Button>
Leveraging solana-web3.js and spl-token to mint 1000 SPL tokens on Solana.
7 Steps

<Button href="/recipes/minting-spl-tokens-with-solana-web3js">Open Recipe</Button>
Learn how to use `eth_call` to simulate Uniswap swaps.

7 Steps

<Button href="/recipes/simulate-a-buy-swap-on-uniswap-using-web3js">Open Recipe</Button>
Using solana-web3.js to interact with Solana's stake program to delegate 0.02 SOL.
6 Steps

<Button href="/recipes/delegating-sol-with-solana-web3js">Open Recipe</Button>
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

<Button href="/recipes/fetching-polygon-logs-for-an-address-from-a-block-using-eth_gettransactionreceiptsbyblock-and-web3py">Open Recipe</Button>
Learn how to create a `.env` file with all your Chainstack endpoints using JavaScript.
7 Steps

<Button href="/recipes/create-a-env-file-with-all-your-chainstack-endpoints-with-javascript">Open Recipe</Button>
Learn how to transfer the entire balance from an account using web3.js.
5 Steps

<Button href="/recipes/how-to-transfer-the-entire-account-balance-using-web3js">Open Recipe</Button>
Use ethers with the `ChainstackProvider` to call smart contract functions.
7 Steps

<Button href="/recipes/fetch-erc-20-balances-using-ethersjs-and-chainstackprovider">Open Recipe</Button>