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
2 answers
15 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
9 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 ...
  • 11
0 votes
0 answers
9 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 ...
1 vote
1 answer
123 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.
0 votes
2 answers
136 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
42 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 ...
0 votes
0 answers
10 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 -->", ...
3 votes
1 answer
216 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(...
  • 310
2 votes
1 answer
54 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?
  • 310
1 vote
1 answer
31 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: '...
  • 11
0 votes
1 answer
52 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 ...
1 vote
1 answer
33 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, ...
0 votes
3 answers
48 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 ...
0 votes
1 answer
45 views

Decode eth_call transaction

How to read "data params" and "value result" from eth_call method on Alchemy explorer ? thanks.
  • 21
0 votes
0 answers
27 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 "...
0 votes
1 answer
25 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; ...
0 votes
2 answers
82 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 ...
  • 1
1 vote
0 answers
59 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": "...
0 votes
3 answers
440 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 ...
0 votes
1 answer
109 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 ...
0 votes
1 answer
251 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
1 answer
124 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 ...
  • 13
0 votes
1 answer
17 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 ...
0 votes
3 answers
434 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 ...
  • 1
1 vote
3 answers
405 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 ...
0 votes
1 answer
100 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 ...
0 votes
0 answers
57 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 ...
0 votes
1 answer
44 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 ...
  • 189
1 vote
1 answer
111 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 ...
  • 11
-1 votes
1 answer
436 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 ...
0 votes
1 answer
36 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 (...
0 votes
1 answer
27 views

Transactions in metamask fails via Alchemy

All transactions done in metamask fail. I've followed the docs https://docs.alchemy.com/docs/how-to-add-alchemy-rpc-endpoints-to-metamask and added Goerli. I tried to send USDC on Goerli and sadly, it'...
0 votes
1 answer
239 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 ...
  • 131
0 votes
0 answers
65 views

Obtain all smart contract addresses on Ethereum

I appreciate this question has been asked in various of formats over the last few years, but things in the Ethereum world move fast, so often answers get outdated quickly. Is there any 3rd party tool ...
0 votes
0 answers
69 views

Issues with Alchemy getContractMetadata endpoint

I have created a new ERC-1155 NFT collection for my project but for some reason Alchemy's getContractMetadata endpoint does not recognizes it at all. I'm filtering by contractAddress: ...
0 votes
0 answers
27 views

Alchemy NFT tutorial Help

The how to airdrop NFTs guide (https://docs.alchemy.com/docs/how-to-airdrop-nfts#step-3-write-the-smart-contract) does not specify how to add IPFS/metadata to the NFT like in the how to create an NFT ...
  • 1
0 votes
0 answers
26 views

Solidity Alchemy API getNFTsForcontract only return 100 results

async function main() { // Contract address const address = "0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D"; // Flag to omit metadata const omitMetadata = false; // Get all NFTs ...
  • 25
0 votes
1 answer
115 views

Alchemy Websocket Sub with Filter on Arbitrum Returns No Messages

The following sub with filter is not resulting in an error and no messages are received for newly mined txns: '{"jsonrpc": "2.0", "id": 1, "method": "...
  • 11
2 votes
0 answers
42 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 ...
  • 53
0 votes
1 answer
30 views

How can I query the NFTs associated with an account on a local test environment?

I wrote a smart contract which enables accounts to purchase NFTs. I now want to display the NFTs bought and associated with the connected account on a website. The Alchemy API seems to be a good ...
  • 151
4 votes
3 answers
748 views

Trying to understand the difference between trace_call and debug_traceCall methods

can someone help me understand the difference between trace_call and debug_traceCall? From what I've read, trace_call is to see the opcodes executed and the gas used for a transaction. debug_traceCall ...
4 votes
0 answers
255 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 ...
0 votes
1 answer
21 views

Minting NFT...do I need to specify something to perform proof-of-stake instead of proof of work?

That's a simple question, do I need to specify something to perform proof-of-stake minting instead of proof-of-work? The question came to my mind looking at this Legacy field of alchemy (Transaction ...
  • 113
0 votes
1 answer
230 views

Unable to mint an NFT with new contract,. Error: 'Returned error: execution reverted: Ownable: caller is not the owner'

I've returned on a project I worked before the merge of ETH Blockchain and the project was just a demo so I never tried it successfully. I've updated my contract and when I peform the var ...
  • 113
1 vote
0 answers
62 views

During minting of nft ndRestPayload.js:16 if (!url.includes("alchemy")) ^ TypeError: Cannot read properties of undefined (reading 'includes') [closed]

if (!url.includes("alchemy")) { ^ TypeError: Cannot read properties of undefined (reading 'includes') at Object.makeRestPayloadSender (F:\hardhat-nft\node_modules\@alch\...
0 votes
1 answer
950 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 ...
  • 111
0 votes
0 answers
47 views

Swift development with Alchemy SDK - sendTransaction - Connection failed

We use swift to develop a wallet app. Tried to use "sendTransaction" in Alchemy SDK to post the request. But got the following errors like: "2022-10-09 11:13:35.488947+0800 RequestDemo[...
0 votes
1 answer
266 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
1 answer
211 views

How to use the alchemy api on a local hardhat node?

I am working on a website in which I want to call on different NFTs connected to the currently selected MetaMask account. For testing I am running a local Hardhat node on which I have deployed my ...
  • 151
1 vote
4 answers
565 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