As of May 31, 2023, we have updated our Code of Conduct.

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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 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
10 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
14 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
21 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
43 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
60 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
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
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
46 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
36 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
1 answer
235 views

Problem in getting test ethers from sepolia faucet by alchemy

I am getting error "Sorry! To be fair to all developers, we only send 1 Sepolia ETH every 24 hours. Please try again after 24 hours from your original request." on sepolia and mumbai faucets ...
Siddhartha Sahu's user avatar
1 vote
0 answers
40 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
2 votes
1 answer
64 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
1 vote
1 answer
17 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
43 views

TypeError: Member "push" is not available in uint256[] memory outside of storage

// SPDX-License-Identifier: MIT pragma solidity 0.8.4; contract Contract { function filternEven(uint[] memory arr) external pure returns(uint[] memory a){ for(uint i=0;i<arr....
No Brain's user avatar
1 vote
2 answers
36 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
37 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
2 votes
1 answer
146 views

How to find total value in ETH of all NFTs owned by a user

I am aware that we could find all the NFTs owned by a user using alchemy’s NFTs API. However, I was wondering if there was a way to them compute the value of that particular users portfolio.
datasleuths8648's user avatar
1 vote
2 answers
738 views

Insufficient funds when trying to deploy smart contract at goerli test network with alchemy

When I run the command "npx hardhat run scripts/deploy.js --network goerli" it gives me the error Error: insufficient funds for intrinsic transaction cost. More specifically looks like this:...
User G Amsterdam's user avatar
1 vote
1 answer
170 views

reason: 'execution reverted: Not enough ether to purchase NFTs.', code: 'UNPREDICTABLE_GAS_LIMIT',

I am attempting to deploy a smart contract to the Sepolia testnet. I currently have ~1 Sepolia eth in my wallet. I am using Hardhat and Alchemy and I am following this tutorial Here is my code for ...
That_Coder's user avatar
1 vote
0 answers
41 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
4 votes
1 answer
239 views

If `provider` is essential in communicating with the blockchain, how is this following code working?

Here is the smart contract code: // SPDX-License-Identifier: MIT pragma solidity 0.8.19; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; interface Bucket { function drop(...
amit's user avatar
  • 360
2 votes
1 answer
244 views

Can someone explain me providers and the different types of it?

I can make providers using ether-hardhat, alchemy, and metamask. What is the difference between these?
amit's user avatar
  • 360
2 votes
1 answer
76 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
1 vote
1 answer
103 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
2 votes
1 answer
49 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
3 answers
100 views

Getting NFTs of an address in a specific collection

I am using Alchemy API to handle fetching NFTs and their metadata in my platform. It has valuable methods, such as retrieving all issued NFTs of a collection or all owned NFTs of an address within a ...
Sina Rahimi'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
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
131 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
1 vote
0 answers
98 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
0 votes
3 answers
743 views

Retrying after error: 429: Your app has exceeded its concurrent requests capacity - fetching NFTs

I was fetching NFTs from certain contract for connected wallet using alchemy-sdk, and it was working fine, NFTs were retrieved and displayed on the frontend app. But unfortunately this solution ...
BlackH3art's user avatar
0 votes
1 answer
166 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
412 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
224 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
18 views

Can we sell the physical goods using ERC721?

I'm new to this. can anyopne provide any feddback to the following things: I need to build the marketplace to sell physical goods. Can we sell the physical goods using ERC721? I need to update the ...
user113474's user avatar
1 vote
3 answers
621 views

When I try to deploy my smart contract to the goerli network, nothing happens

I finally got to test my smart contract for the first time on the Goerli network through alchemy. It worked twice as I check on Etherscan which is now gone, but when I run the command; 'npx hardhat ...
Slatt's user avatar
  • 11
1 vote
3 answers
653 views

Does Alchemy "getAssetTransfers" get all transactions or just all asset transfers?

I'm working with alchemy's SDK and it looks like the getAssetTransfers API endpoint will return any value transaction from an address. However, it also looks like it can return a list of all ...
Patrick Collins's user avatar
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
1 vote
1 answer
197 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 votes
1 answer
630 views

List of all transactions of a *specific* ERC20 token for a given wallet address using the alchemy-sdk? [duplicate]

For example, if I want to see all of the USDC transactions related to my wallet address, how can I fetch all of those transactions? USDC contract address: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 My ...
thatguyintech's user avatar
0 votes
1 answer
45 views

Unable to find WETH contract in mainnet fork

I have created a fork of the ethereum mainnet using Alchemy. When I try to fetch the WETH contract in the fork, it says no contract deployed at the given address (...
sramasub's user avatar