Questions tagged [alchemy]

Used for questions related to Alchemy, a Web3 developer platform that provides supernode infrastructure, enhanced APIs, and other building and monitoring tools for building decentralized blockchain applications.

75 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
1 answer
289 views

Goerli Smart Contract Deployment taking way too long because of pending transactions

My deployments are very slow. I've read that I need to override pending transactions by resetting the nonce. I'm using Infura. Is there a way to view pending transactions and their nonce like I would ...
HeeeeSark's user avatar
3 votes
0 answers
76 views

Contract events not being emitted reliably from ethers

I'm having a problem with contract events being not reliable as in they are mostly not emitted but sometimes are emitted. Events from a smart contract (Gnosis Safe contract, SignMsg but true for other ...
Firatov's user avatar
  • 73
3 votes
1 answer
753 views

Get logs for a transaction without actually sending the transaction

I'm trying to simulate a transaction without actually sending the transaction. The trace_call method (on Alchemy) returns 3 types of traces - vmTrace, trace, stateDiff. The trace object returns all ...
pbsh's user avatar
  • 2,401
2 votes
1 answer
256 views

Why is Alchemy eth_getLogs not finding event logs for AaveV3 Supply events?

I have created a Node project that connects to Alchemy via ethers. I am trying to capture all Supply events for AaveV3 However, when I use the getLogs function, and use the contract address as the ...
Oscar Chambers's user avatar
2 votes
1 answer
193 views

Does Alchemy support batch requests for getAssetTransfers?

I am trying to make a batch request for getAssetTransfers endpoint. However, when I try to do this, I get this error: jsonrpc: '2.0', id: 1, error: { code: -32600, message: '...
bison's user avatar
  • 21
2 votes
1 answer
82 views

Is dedicated gateway a need for marketplace projects?

I am developing an NFT marketplace. It has a section showing images of NFTs ( NFTCards with some information ) of a specific contract address. Since the number of minted NFTs by the contract is high, ...
Sina Rahimi's user avatar
1 vote
0 answers
138 views

Alchemy API: How to get transaction history including failed and pending transactions for a specific wallet address?

In React I'm building a transaction history screen to list succeeded, failed and pending Polygon transactions. Using alchemy_getAssetTransfers I can retrieve the transaction history for a specific ...
Operator's user avatar
  • 111
1 vote
0 answers
128 views

Why Alchemy responds eth_getBlockByNumber with wrong data

Network: Polygon Mainnet. I am using the Alchemy RPC in the following manner: I listen for new blocks and then retrieve block data, including transactions, based on the block number. However, today my ...
Alexandr Kalashnikov's user avatar
1 vote
0 answers
22 views

How to filter smart contracts via method signature

is there anyone here who is an expert on dune/ethereum etl/alchemy? the question is - i'm doing research and want to find a quick way to query all smart contracts that implement/have called a certain ...
bilbob2392's user avatar
1 vote
0 answers
86 views

Unable to run concurrent contract executions on polygon mainnet (Alchemy)

I'm currently encountering a peculiar issue on the Polygon Mainnet, which doesn't seem to occur on the Testnet. When running two or more parallel node processes which have two different wallets with ...
Rakesh Bhatt's user avatar
1 vote
2 answers
99 views

getting error as deploy file not found

require('dotenv').config(); require('@nomicfoundation/hardhat-toolbox'); const API_URL = process.env.API_URL; const PRIVATE_KEY = process.env.PRIVATE_KEY; const API_KEY=process.env.API_KEY console....
ATHUL SURESH's user avatar
1 vote
1 answer
52 views

Etherjs "contract.on" method in Reactjs to read events not loading on console

I am trying to display the events that are emitted from a function in my smart contract to the front end of my dApp, and I feel like I am missing a step in the connection process with my dApp. I've ...
OhItsPM's user avatar
  • 75
1 vote
0 answers
79 views

Alchemy notify slack webhook not working properly

I'm trying to get notifications on an address piped to slack, and Alchemy apparently has a free tool for this, but I can't get the webhook to work. Copied it directly from the slack app, but the tests ...
scheherazhaad's user avatar
1 vote
0 answers
94 views

How Can I get both Incoming and Outgoing transactions from "getAssetTransfers" inside one request?

I'm working with alchemy's SDK. And as per the Alchemy SDK documentation, it says we can get all the transactions like this: const config = { apiKey: "<-- ALCHEMY APP API KEY -->", ...
MDIPANJAN's user avatar
1 vote
1 answer
237 views

Not able to send transaction using alchemy sdk

Hey i have to build a ERC20 contract and using alchemy sdk to send transactions onchain For eg mint or burn tokens. But i am not able to send a transaction as its showing an error of cannot estimate ...
Yakshesh Gupta's user avatar
1 vote
1 answer
128 views

Decode eth_call transaction

How to read "data params" and "value result" from eth_call method on Alchemy explorer ? thanks.
adam mr's user avatar
  • 61
1 vote
0 answers
136 views

Alchemy API returning "not found" on endpoints in docs

I have the following code: import requests url = "https://eth-mainnet.g.alchemy.com/v2/<REDACTED_API_KEY>/findContractDeployer" payload = {"contractAddress": "...
Patrick Collins's user avatar
1 vote
1 answer
1k views

Use EthersJS to connect to either Alchemy or Infura depending on availability

I've noticed that relying on one provider API can be problematic at times of heavy server load. I would like to use EthersJS to choose either Infura or Alchemy depending on which network is available ...
Ahmed Ihsan Tawfeeq's user avatar
1 vote
0 answers
205 views

"Error HH100: Network rinkeby doesn't exists

I am running through learnweb3.io 'Build your own simple NFT tutorial' and I keep getting the error: Error HH100: Network rinkeby doesn't exist This is what my deploy.js file looks like: // Import ...
Chukwuebuka's user avatar
1 vote
0 answers
43 views

Alchemy getOwnersForCollection missing some owners

Using the Alchemy API and getOwnersForCollection endpoint on Optimism, the returned list seems to be missing some holders despite those addresses having a balance for that collection. Here is the code ...
fourpoops's user avatar
1 vote
1 answer
322 views

Alchemy's getNFTMetadata does not return title and description for freshly minted NFT on OpenSea

I connected to the testnet OpenSea and minted an NFT on Rinkeby. After that I called alchemy's getNFTMetadata and it did return some data, but "title" and "description" were empty, ...
Dmytro Polovynka's user avatar
1 vote
0 answers
155 views

Alchemy pending transactions indefinetly

I changed literally nothing and the transactions for contract creations don't go through anymore. I'm using hardhat and deploying on mumbai. I have set blockGasLimit: 999999999999999,. Any ideas why ...
theLotus's user avatar
1 vote
0 answers
251 views

Alchemy Mumbai endpoint not working from truffle

I am trying to deploy some smart contracts on Mumbai network from truffle using an Alchemy endpoint I just created. this is my truffle-config.js But I am getting errors all the time : Not to long ...
Alberto Molina's user avatar
1 vote
2 answers
438 views

Sending hundreds of transactions every minute, TXs seem to get randomly stuck in mempool even after setting high gas

I'm building an application that needs to send hundreds of transactions every minute (consistently for hours & even days) to the Polygon blockchain. To achieve this I'm setting unique (and +1 ...
Shanzid Shaiham's user avatar
1 vote
0 answers
365 views

Wait for web3.eth.sendSignedTransaction and lambda timeout

I'm using alchemy to mint NFT and in the specific case this piece of code //the transaction const tx = { from: PUBLIC_KEY, to: blockChainAddress, nonce: nonce, ...
advapi's user avatar
  • 113
1 vote
1 answer
174 views

How can I properly set a minting price with Alchemy?

I am having trouble establishing a mint price as Alchemy offers a too abstract coding practice for the smart contract part. I would like to know how I might set a minting price for my collection so ...
Tim Cvetko's user avatar
1 vote
0 answers
30 views

NFT on Opensea #Alchemy

I followed all steps in 3 parts of this tutorial https://ethereum.org/en/developers/tutorials/how-to-view-nft-in-metamask/ I also registered NFT in Metamask wallet. Wallet adress ...
user92408's user avatar
1 vote
2 answers
668 views

Forking mainnet with Hardhat + Alchemy fails with "Too Many Requests"

Running into a problem attempting to test with hardhat by forking mainnet. I'm following the instructions here: https://hardhat.org/hardhat-network/docs/guides/forking-other-networks. I have a ...
Madbreaks's user avatar
  • 151
0 votes
0 answers
44 views

sending a transaction requires a signer (operation="sendTransaction", code=UNSUPPORTED_OPERATION, version=contracts/5.7.0)

import React from 'react'; import './App.css'; import { useState, useEffect } from 'react'; // import { ethers } from 'ethers'; import contract from './RPSLS.sol/RPSLS.json' const { ethers, ...
Indul's user avatar
  • 9
0 votes
0 answers
124 views

"Error happened while trying to execute a function inside a smart contract" after trying to call smart contract function with fork ethereum chain

I am forking Ethereum blockchain using Alchemy's api. Below is my chain config module.exports = { solidity: { compilers :[ {version : "0.8.17"}, {version: "0.8.4"}...
Rohit Goyal's user avatar
0 votes
1 answer
95 views

Error: factory runner does not support sending transactions (operation="sendTransaction", code=UNSUPPORTED_OPERATION, version=6.7.1)

I have run into the above error trying to deploy my contract. Running npx hardhat scripts/deploy.js. Here is the deploy.js: async function main() { const Test1 = await ethers.getContractFactory(&...
Meltxx's user avatar
  • 3
0 votes
0 answers
67 views

Must be authenticated error using Alchemy RPC URL

I am getting this error Error: (code: -32000, message: Must be authenticated!, data: None) When running this command forge script script/DeploySimpleStorage.s.sol --rpc-url $SEPOLIA_RPC_URL --...
Basho's user avatar
  • 31
0 votes
2 answers
46 views

version problem in hardhat

const hre = require("hardhat"); // Returns the ether balance of a given address. async function getBalance(address) { const balanceBigInt = await hre.ethers.provider.getBalance(address); ...
Indul's user avatar
  • 9
0 votes
1 answer
19 views

How to find the origin of the token/crypto in the wallet?

For example, Wallet 0x...A1 has 0.5 ETH. I want to know about the origin of 0.5 ETH. Can I get that data from the Etherscan API (what endpoint?) or another solution?
77ay's user avatar
  • 1
0 votes
0 answers
120 views

Error with Sepolia Faucet - ReCAPTCHA not Recognized Despite Correct Completion

I am facing an issue while using the Sepolia Faucet provided by Alchemy through sepoliafaucet.com. Every time I try to access the faucet and complete the ReCAPTCHA, I encounter the error message, &...
Ibrahim Khalil's user avatar
0 votes
1 answer
41 views

Given token id of ERC1155, how to find out how many copies of it are there?

This may not be possible to implement in an easy fashion via the standard calls only to blockchain, therefore I'd consider third-party API providers such as Alchemy.com I'm aware of, let's say, ...
Nondi's user avatar
  • 49
0 votes
0 answers
80 views

Alchemy Account Activity webhook not firing for internal transfers

According to the webhook docs when listening for account activity on an address it should include internal transactions. I'm not seeing any though. For example when i list a NFT for sale on OpenSea ...
Madbreaks's user avatar
  • 151
0 votes
0 answers
22 views

Forking Polygon PoS with hardhat + Alchemy Failing with Connection Timeout Error

I am trying to fork the Polygon PoS with Alchemy and it gives me the error of timeout while my internet connection is pretty good. I don't know why sometimes it runs successfully and sometimes it ...
Ajay Yadav's user avatar
0 votes
0 answers
26 views

Test networks not working

I am using Hardhat, Alchemy and Goerli to test my SC. But for some reason NONE of my txns go through. They are all stuck in "Pending" within Alchemy. I have tried both Goerli and Sepolia ...
JaySnel's user avatar
  • 55
0 votes
0 answers
34 views

Alchemy getAssetTransfers function doesn't return all transactions

I am using alchemy and axios to get all the transaction history for an address Here is the code: var categoryList = []; categoryList.push("external"); categoryList.push("internal");...
Fariha Abbasi's user avatar
0 votes
0 answers
105 views

Trying Uniswap V3 Swap Example - Error: Transaction reverted: function call to a non-contract address

Have been getting bellow error message: SwapExamples swapExactInputSingle: Error: Transaction reverted: function call to a non-contract account at SwapExamples.swapExactInputSingle (contracts/...
EMintela's user avatar
0 votes
0 answers
15 views

How to get list of all NFTs owned by a EOA in a specific collection

I want to get all the NFTs an EOA owns in a specific collection but I found that none of the SDKs like Alchemy, Infura, etc provides this feature. So how can I do that?
Rishabh Raghwendra's user avatar
0 votes
0 answers
146 views

I am Getting this error ProviderError: Must be authenticated!

ProviderError: Must be authenticated! at HttpProvider.request (/workspaces/Decentralized-Voting-Application-on-Ethereum-Blockchain/node_modules/hardhat/src/internal/core/providers/http.ts:88:21) ...
AmariS1's user avatar
  • 77
0 votes
0 answers
36 views

i got a ParserError: Expected '(' but got identifier while using Hardhat

I got this error in the terminal while running the npx Hardhat compile I've tried looking at the other examples of the error Stack Exchange but none have been able to provide a fix for my issue. ...
Head Office's user avatar
0 votes
0 answers
56 views

How to create `ee-jwt-secret-file` for Teku node with Alchemy

I am looking to run a Teku node, but instead of connecting it to my own execution client, I'm looking to connect to a node as a service. Is this possible How do I create a ee-jwt-secret-file from ...
Patrick Collins's user avatar
0 votes
1 answer
24 views

How to set owner wallet into useState from router.query?

I'm trying to set the address of a connected wallet into useState as string so that another function can use it to run it's function. const router = useRouter(); const { walletAddress } = ...
Miles Donald's user avatar
0 votes
1 answer
85 views

Using connected wallet to fetch all NFTs using alchemy sdk

I'm trying to pass the user's connected wallet into getNftsForOwner function but am not sure how to do it. If I type out the address into the function like this: const NFTs = await alchemy.nft....
Miles Donald's user avatar
0 votes
1 answer
348 views

Ethers.js Batch Fetch Archive Transactions by Hash

I have a big array of emitted events that I retrieved using an archive node with Ethers queryFilter. I want to get the transaction parameters for each of those transactions. I am using Ethers.js await ...
Adam's user avatar
  • 126
0 votes
1 answer
242 views

Derived contract must override function "supportsInterface". Two or more base classes define function with same name and parameter types

TypeError: Derived contract must override function "supportsInterface". Two or more base classes define function with same name and parameter types. --> royalty.sol:9:1: | 9 | contract ...
soumyadeep.eth's user avatar
0 votes
0 answers
19 views

const { walletAddress } = req.query not passing wallet address to alchemy api

Alchemy api isn't recognizing the wallet address given by req.query. Not sure why. I tested it using Moralis api and it worked fine. Is this a known issue or is there a better way to input the ...
Miles Donald's user avatar