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
17 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
10 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
11 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
51 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
0 answers
14 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
155 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
  • 9
0 votes
0 answers
633 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
37 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
72 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
  • 3
0 votes
1 answer
136 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
  • 3
2 votes
1 answer
39 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
0 answers
94 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
229 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
64 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
  • 9
0 votes
1 answer
22 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
0 votes
0 answers
249 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
49 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
97 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
  • 151
0 votes
0 answers
24 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
52 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
155 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
124 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
16 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
170 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
40 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
68 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
24 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
95 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
429 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
282 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
27 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
20 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
132 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
36 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
52 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
0 votes
1 answer
886 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
94 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
295 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
56 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
112 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
138 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
63 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
  • 75
1 vote
0 answers
86 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
176 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
2k 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
535 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
111 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
291 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
  • 380
2 votes
1 answer
964 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
  • 380