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
10 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/...
3 votes
1 answer
567 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 ...
0 votes
0 answers
8 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?
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 ...
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) ...
0 votes
3 answers
104 views

Why use node providers? Is it necessary to use them for small project?

I want to start a small project and consider to run own node for it. The other day, I just found there are node providers like Alchemy, Infura, and so on. I just did their tutorials, and I think it is ...
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. ...
1 vote
1 answer
741 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 ...
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 ...
0 votes
2 answers
419 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 ...
0 votes
1 answer
2k views

How to decode the hex string of an eth_sendRawTransaction request in Alchemy?

I'm using an Alchemy rpc endpoint to facilitate all my MetaMask transactions. I sent a transaction a few hours ago and it's stuck in pending, and now every few seconds (or.. every time I open MetaMask ...
0 votes
2 answers
2k views

Hardhat compile/deploy error

I'm following this tutorial for creating and deploying a smart contract (https://docs.alchemy.com/alchemy/tutorials/how-to-create-an-nft), but instead of deploying it on the ropstein test network I ...
0 votes
1 answer
13 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 } = ...
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....
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 ...
0 votes
0 answers
58 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 ...
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 ...
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 ...
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 ...
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 ...
0 votes
1 answer
233 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 ...
1 vote
2 answers
735 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:...
0 votes
1 answer
1k views

goerli hardhat deploy and test hung

We have been trying to deploy contracts and run tests against them on the goerli network. For the past few days, the network seems unusable. Transactions doesn't come back. Contracts deployment ...
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: ...
1 vote
0 answers
39 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 ...
2 votes
1 answer
63 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 ...
0 votes
1 answer
309 views

Im trying to deploy contract on Polygon Mumbai but cant

I get this error when deploying my contract. It only takes 3,600,000 gas to deploy and mumbai gas limit is 20,000,000. deploying "DeqityFactory"exceeds block gas limit {"name":&...
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....
0 votes
3 answers
335 views

Deploy using alchemy or remix

Initially I interact with my smart contract using remix but when it comes to interact on my website. I face some issues so that I deploy my contract to alchemy. Two questions confuse me. can I regard ...
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....
1 vote
1 answer
381 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 ...
1 vote
2 answers
35 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....
0 votes
1 answer
351 views

Hardhat not able to fork the mainnet

I want to fork the polygon mainnet using hardhat but don't know why it's giving me this error: Error HH604: Error running JSON-RPC server: Invalid JSON-RPC response's result. Errors: Invalid value ...
1 vote
4 answers
818 views

Get all Nfts of a collection owned by a wallet using alchemy sdk

I am using alchemy sdk , can u please tell me how I can use getNftsForOwner() to get all the nfts owned by a wallet of a particular contract adddress? I need the exact syntax. Thank u
0 votes
1 answer
2k views

I get error saying "invalid contract address or ENS name" when I try to run Interact.js script from Alchemy's Hello world smart contract tutorial

I was following This tutorial from Alchemy to build a HelloWorld smart contract. After successfully deploying it to alchemy, when I wrote the 'Interact.js' script from the tutorial and tried to run it,...
0 votes
1 answer
1k views

error: Invalid JSON RPC response: "" when trying to transfer testnet token

I am trying to transfer testnet tokens using Node.js, Web3.js, Ethers, and Alchemy but I am receiving Invalid JSON RPC response: "" whenever I deploy my code to Railway. Is this an issue of ...
0 votes
3 answers
735 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 ...
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 ...
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 ...
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.
1 vote
1 answer
163 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 ...
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 -->", ...
0 votes
2 answers
129 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 ...
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(...
2 votes
1 answer
239 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?
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: '...
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 ...
0 votes
1 answer
192 views

eth_subscribe for logs on alchemy

I am trying to subscribe to log events on ETH mainnet using alchemy provider as explained here The subscription request returns successful response but I am not receiving any notifications at all Here ...
1 vote
3 answers
652 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 ...
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, ...