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
21 views

Code not executing after initializing new Ethers Interface

I'm trying to use Ethers to create an ABI interface that I can use to query block specific data with Alchemy. The document I'm referencing is https://docs.alchemy.com/docs/how-to-get-erc-20-token-...
Dylan Nguyen's user avatar
1 vote
1 answer
96 views

How can I decode the output of the first call and use it to send a transaction?

I am attempting to call view function “0x…” with argument of value “3…” to a specific address “0x…” and also send X wei to that address I am looking to acquire the hash of the successful tx. Tools/...
QuantumDomain's user avatar
1 vote
1 answer
24 views

How do I get all incoming transactions to an Ethereum address during a certain time period with a python script using Alchemy API?

I have an Alchemy API python script that checks the balance for an Ethereum address. You can set up the Alchemy API object like this: from alchemy import Alchemy, Network # create Alchemy object ...
ChristianOConnor's user avatar
0 votes
0 answers
11 views

My Arbitrum Alchemy node is randomly returning -3 for block number

Basically I'm getting an error from my RPC node provider (Alchemy) where sometimes, when I query for the block_number I get the response -3. I don't quite understand why or if this is a rate limit ...
Rodrigo Pinheiro's user avatar
0 votes
0 answers
10 views

Error: Cannot estimate gas; transaction may fail or may require manual gas limit (reason="execution reverted: You are not the owner of this token"

below is code function executeSale(uint256 tokenId) public payable { uint price = idToListedToken[tokenId].price; address seller = idToListedToken[tokenId].seller; require(msg....
user132696's user avatar
1 vote
1 answer
29 views

Sepolia - stalled on waitForDeployment

I use Hardhat and have some scripts to perform functions, such as deploy. I've been using Goerli but have been aware that it is being shuttered, and also i've found the transaction fee to be high and ...
HankCa's user avatar
  • 175
1 vote
0 answers
45 views

Transaction stuck and blocking any new transactions, but changing node provider solved it. Why?

Can someone please help me understand what just happened, so I and others can account for this in error handling? I was using web3.py to swap USDC for WMATIC through the UniswapV3 Router on Polygon ...
Skeppet's user avatar
  • 111
0 votes
1 answer
18 views

Not able to run a function of a smart contract (Create Community) from Express.js server

I am trying to create community from express server but getting an error. The get Community is running fine I am able to get the Community corresponding to that particular id. But when trying to send ...
Abhishek Bhagat's user avatar
0 votes
0 answers
37 views

How to sign a UserOperation using Java and Web3j in alchemy API

I am using Java and Web3j to create code to execute a UserOperation using Alchemy's API. In order to sign the UserOperation, the following code was created and signed, resulting in the following ...
Ken Yurino's user avatar
0 votes
0 answers
17 views

How to fetch blockchain events when using Alchemy Account kit

0 I have doing a blockchain Transaction using the ERC 4337 by leveraging the Alchemy's Account Kit and I am stuck on how exactly do I get the event or the return values of the transaction execution, ...
Nitish Patel's user avatar
0 votes
0 answers
19 views

Alchemy GetNFTsForOwner mint address is null

I'm using GetNFTsForOwner from Alchemy SDK and I expected to get minting information such as mintAddress and transactionHash to linked to my data on my database. But in my result the mint data is null....
Guege Pol's user avatar
0 votes
1 answer
101 views

Set ERC20 token allowance for Smart Wallet Account

I am trying to set USDT(ERC20) token allowance for SWA (smart wallet account) so that the account can interact with an external contract and send USDT to the contract. I am using Alchemy SDK to create ...
Kogelet's user avatar
  • 176
0 votes
1 answer
54 views

Error "could not detect network" when using WebSocket provider with Alchemy

I have a file with over 1 million+ ethereum addresses and private keys grouped together in a single file separated only using a ','. Example: 0x7256bCf73C2309893AA12d6b26A142AB3097560c,...
Nikhil Meena's user avatar
0 votes
0 answers
268 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
  • 19
0 votes
0 answers
1k 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
1 vote
1 answer
61 views

How to fix invalid sender error using alchemy-sdk?

Trying to send a transaction with Alchemy-sdk, but I keep getting invalid sender. What am I doing wrong or missing, code below: My provider is created using ethers.providers.JSONRPCProvider(...
Maniac_1979's user avatar
0 votes
1 answer
93 views

Why would my deploy.js return this? Error: factory runner does not support sending transactions (operation="sendTransaction"

I'm using Alchemy API with Hardhat and every time I run the deploy script I get the above error. I am also getting requests to my API every time I run this and the method is eth_accounts, in the ...
Meltxx's user avatar
  • 13
0 votes
1 answer
168 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
  • 13
2 votes
1 answer
58 views

RPC endpoint for production environments

Context For testing environments, I'm spinning up AWS instances with App-chain client nodes and using the AWS ALB to access the exposed RPC endpoint. It is protected by the security group rules, so ...
quantumdust's user avatar
0 votes
1 answer
137 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
1 vote
0 answers
304 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
0 votes
2 answers
77 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
  • 19
0 votes
1 answer
24 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
1 vote
0 answers
508 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
63 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
117 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
  • 161
0 votes
0 answers
34 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
27 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
78 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
1 vote
0 answers
186 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
0 votes
0 answers
157 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
20 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
187 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
46 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
1 answer
89 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
25 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
105 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
508 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
353 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
32 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
21 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
148 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
39 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
55 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
  • 21
1 vote
1 answer
1k 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
101 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
342 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
67 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
  • 13
2 votes
2 answers
142 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
196 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