Questions tagged [etherjs]
The etherjs tag has no usage guidance.
21
questions with no upvoted or accepted answers
2
votes
0
answers
290
views
How to listen for multiple smart contract events?
Using Web3.py I understand that I can create a new smart contract event filter with:
Contract.events.your_event_name.createFilter(fromBlock=block, toBlock=block, argument_filters={'arg1': 'value'}, ...
1
vote
0
answers
86
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 ...
1
vote
1
answer
236
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
0
answers
69
views
Getting wrong signature while using etherjs in react native
I'm trying to get the signature using etherjs in a react native project which should be compatible with ECDSA.sol,
When i try to get the signature with metamask it returns totally fine. but when i try ...
1
vote
0
answers
228
views
nextjs, etherjs, invalid address or ENS name
I'm using Nextjs.
on sample.jsx
console.log(address)// 0xd56A6DB7d844722627473C07f840c2604E622161
console.log(typeof(address)) // string
const ethers = require('ethers')
let url = "https:/...
1
vote
0
answers
519
views
getCreate2Address (create2) UNABLE to get correct contract address :(
UPDATE: I think the real question is what to use as Init code? The contract has no constructor. Can someone help on this?
Basically i am using openzeppelin Clones.sol contract to determine the ...
1
vote
1
answer
321
views
Contract Factory Deploy Function Variables
I noticed you can actually put 3 arg into the deploy functions
.deploy(0,0,0)
min 3 , what is the purpose of the 3 variables. I. can't seem to find it on the documentation
Documentation Reference : ...
0
votes
0
answers
22
views
Signature verification using ecsign and ecrecover
I am using web3.js library to sign a transaction and then verify it from the smart contract. The Signature generated on FrontEnd and as well as from the smart contract are not same..
This is the ...
0
votes
0
answers
27
views
Cannot read properties of undefined (reading 'getDefaultChain')
in this code when i want call the function from contract i get this error: Cannot read properties of undefined (reading 'getDefaultChain')
i use walletConnect V2 for connecting wallet and use etherjs ...
0
votes
2
answers
24
views
Js result into HTML
Hello hope everybody is good ?
I need some help please ..
I run my JS file and it return in my console with await function = 56
How can i parse the return (56) into my HTML in a <div ?
This is my ...
0
votes
0
answers
24
views
hardhat simple storage. Getting ProviderError: Must be authenticated!
**I am going through freecodecamp's course on fullstack web3 development. Can anyone help me with this error. Am not able to resolve this issue. **
Deploy.js code :
// imports
const { ethers, run, ...
0
votes
0
answers
28
views
code: 'UNPREDICTABLE_GAS_LIMIT, Error: cannot estimate gas
Error:
Code:
const ethers = require("ethers");
const fs = require("fs-extra");
require("dotenv").config();
async function main() {
console.log(process.env.PRIVATE_KEY);...
0
votes
1
answer
44
views
Help! Getting Error ' Cannot read properties of undefined (reading 'then')' How do I make a Contract Transaction using EtherJS v6
I tried making request to the contract using 'contract.otherFunction()' and they are working fine but just the 'placeBid' function where I have to use add value is giving the error 'Getting Error ' ...
0
votes
0
answers
59
views
Seeking Help with React Typescript App and Ether.js - Trouble with Tuple Arguments
I'm currently working on a React Typescript app that involves interacting with contracts on the blockchain using Ether.js. While making progress, I've encountered a hurdle that has me scratching my ...
0
votes
1
answer
103
views
Error: network does not support ENS (operation=“ENS”, network=“maticmum”, code=UNSUPPORTED_OPERATION, version=providers/5.5.3 Network doesnot support
Hello I wrote a smart contract for crowd funding Actually I have two contracts One is create a campaign for donate funds and second is created campigns for crowd-funding and store all the campaigns ...
0
votes
0
answers
131
views
Error: cannot override "to" (operation="overrides", overrides=["to"], code=UNSUPPORTED_OPERATION, version=contracts/5.6.2)
I'm facing this error while I'm trying to mint with sending transaction
const tx = {
from: accounts[0],
to: ContractAddress,
value:...
0
votes
1
answer
44
views
reactjs get contract call fees
Chain used: Poylgon/mainnet or mumbai
I am trying to get gas fees for a contract call.
I should be able to let user chose if : Medium or High
Same as metamask does it:
but this should be done on user ...
0
votes
1
answer
375
views
Signatures created in metamask with ledger is being rejected by ECDSA.recover
Some context.
The frontend right now is using wagmi under the hood, we are using the signMessageAsync method to generate a signature. Code is below
const { signMessageAsync } = useSignMessage()
...
0
votes
0
answers
184
views
why am i getting this big number error. I have tried everything but cannot figure it out
I am trying to run the scripts for uniswap V3. I am able to mint the positions and check the position but I cannot increase or decrease the liquidity by calling these functions. I get the following ...
0
votes
0
answers
187
views
ether.js ethers.utils.defaultAbiCoder.decode [ [Getter] ] result
ethers.utils.defaultAbiCoder.decode(['address'],'...
0
votes
2
answers
368
views
I am getting this error everytime i test my contract using hardhat
This is the error i am getting while testing my contract with hardhat pls help me to get this
PS E:\vs code files> npx hardhat test
npm WARN config global `--global`, `--local` are deprecated. Use `...