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
0 answers
270 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
1 answer
580 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,301
2 votes
1 answer
68 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
80 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
0 answers
51 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
  • 53
2 votes
1 answer
50 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
21 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
11 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
42 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
1 answer
18 views

before all" hook for "should allow a purchase" error - Chainshot

I am completing series of tutorials on chainshot. Now I am on events 4. - Sale and I am getting an error "before all" hook for "should allow a purchase" and I don't have an idea ...
rad2's user avatar
  • 11
1 vote
2 answers
40 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
20 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
  • 55
1 vote
0 answers
41 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
44 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
106 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
80 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
  • 41
1 vote
0 answers
101 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
204 views

Minting 3D files onto opensea

I am new and I am building an NFT collection on Open Sea for my personal project. I have watched a couple of videos from Alchemy, the ERC721 smart contract video outlined how to upload and host files ...
TheBaby's user avatar
  • 11
1 vote
1 answer
756 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
189 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
31 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
216 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
144 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
228 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
1 answer
385 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
333 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
147 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
0 votes
0 answers
14 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
10 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
12 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
22 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
17 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
15 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
24 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
50 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
0 answers
78 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
13 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
0 votes
1 answer
48 views

CORS policy error when trying to render image from pinata ipfs

pinata.js file const FormData = require("form-data"); export const uploadJSONToIPFS = async (JSONBody) => { const url = `https://api.pinata.cloud/pinning/pinJSONToIPFS`; //making ...
soumyadeep.eth's user avatar
0 votes
1 answer
21 views

how to receive values from openzeppelin royaltyInfo function

trying to implement like this uint[2] memory royalty = royaltyInfo(_tokenId, price); payable(royalty[0]).transfer(royalty[1]); but getting error TypeError: Different number of components on the left ...
soumyadeep.eth's user avatar
0 votes
0 answers
37 views

Wrong simulated univ3 swaps using Alchemy alchemy_simulateExecution API

we are using your API endpoint alchemy_simulateExecution , but for some reason we seem to receive wrong values here. for example check this tx: ...
Atrox's user avatar
  • 11
0 votes
0 answers
40 views

Error: call revert exception (method="getTotWaves()", errorArgs=null, errorName=null, errorSignature=null, reason=null, code=CALL_EXCEPTION,)

when i click "Wave at me" button i encounter with this call revert error!. here is the App.js import React, { useEffect, useState } from "react"; import { ethers } from "...
Dinesh Ravishankar's user avatar
0 votes
1 answer
28 views

Type Error: Member "userAddress" not found or not visible after argument-dependent lookup in struct wavePortal.Payment storage ref[] storage ref

THE CODE: //SPDX-License-Identifier: MIT pragma solidity >= 0.8.0 < 0.9.0; import "hardhat/console.sol"; contract wavePortal { struct Payment { address userAddress; ...
Dinesh Ravishankar's user avatar
0 votes
2 answers
134 views

How to check the balance of a wallet within a contract and assign balance to a variable?

I'm trying to require the number of contract NFTs in a wallet < declared uint256 variable in order to proceed with safemint function. I have the following code but I can't work out what is ...
0xCas's user avatar
  • 1
0 votes
1 answer
169 views

How to get NFT transfer value using Achemy API

We are using getAssetTransfer to get all the transfers from and to a wallet for a specific NFT contract, similar to this https://docs.alchemy.com/docs/how-to-get-the-transfer-history-of-an-nft. We are ...
Marios Kleanthous's user avatar
0 votes
1 answer
419 views

Alchemy provider API provider does not support signing

I am using AlchemyProvider with ether.js to deploy a smart contract using frontend data But I am not able to sign the provider i.e AlchemyProvider. Code const provider = new ethers.providers....
Yakshesh Gupta's user avatar
0 votes
1 answer
229 views

passing topics to the Alchemy eth_getLogs API call

I'm trying to use the Alchemy API to find specific events thrown by a set of contracts. One of the args that can be passed to the call is a list of topics (I'm using python, but my question is ...
ben's user avatar
  • 13
0 votes
1 answer
119 views

Alchemy api eth_getProof returns a wrong storage slot

I encountered a issue that eth_getProof returns wrong storage key and proof. This is a bash script which could reproduce the issue. And after some tests, I found increasing the interval between thoes ...
Hk04e17 Ff17's user avatar
0 votes
0 answers
76 views

Ethers ContractFactory not working for polygon mainnet

I'm using ethers' ContractFactory to deploy a contract with Alchemy RPCs. async deployContract(contractObject: ContractObjectDto) { try { const chain = contractObject.chain.toLowerCase() as ...
Dimitri Borgers's user avatar
0 votes
1 answer
54 views

How to use airdrop filter in parameters of alchemy's getNFT api

hello ! I have a question while using the alchemy api. As shown in the picture above, it says tha can put "Airdrop" in the parameter "includeFilters[]" of the api. I'm running an ...
imelon2's user avatar
  • 331