All Questions
27 questions
2
votes
0
answers
246
views
Ethers.js: "contract runner does not support sending transactions" Error When Sending Ether in Contract Function
I'm encountering an error while trying to send Ether using Ethers.js in my decentralised Application. I have a Solidity function sendMoneyToCustomer that is marked as payable, but when I call it using ...
0
votes
1
answer
186
views
Errors when signing and sending transaction with Ethers
I get the error in the browser console when the function attempt to execute signTransaction, even though the transaction was successfully broadcasted to the blockchain. The loading variable never get ...
0
votes
0
answers
200
views
Code -32000 ("processing response error") when reading data from a polygon smart contract
I am just starting out with ethers.js and smart contracts in general. I am attempting to read the price between two tokens (MATIC => WETH) using the getAmountsOut() function on the sushiswap router ...
0
votes
0
answers
54
views
hardhat ignition with script working with testnet but failed with localhost node network
when i run with testnet i get this
(https://i.sstatic.net/7ozQi2Se.png)
but when i run with localhost node i get this
(https://i.sstatic.net/vkpQq4o7.png)
and this is my node console when i using ...
1
vote
1
answer
708
views
Uncaught (in promise) ContractFunctionExecutionError with no error message
I'm using Wagmi to submit a transaction to the blockchain, which is probably reverting but, if I run on any browser on my Windows pc, I don't get any error message logged more than the Error class:
...
-1
votes
1
answer
84
views
Issues with Ethers Utiility fuction
I built a smart contract and I am trying to test it.
It successfully deploys but not all function works(event emmitter trigger problems) , for example the issueCertificate fuction.
I had to write a ...
3
votes
0
answers
130
views
Connecting to a pancakeSwap smart contract, AbiError: `Parameter decoding error: Returned values aren't valid, did it run out of gas?`
I'm trying to connect to a smart contract on pancakeSwap, using web3.js; from the official documentation I know what methods I should use to connect to the contract.
I connect to my provider (...
1
vote
1
answer
172
views
Smart Contract Integration with Ether.js
I've been trying to link a smart contract with ethers.js in my project.
const Provider= new ethers.providers.JsonRpcProvider(
`https://goerli.infura.io/v3/`
const TokenContract = new ethers.Contract(...
0
votes
1
answer
434
views
Why does MetaMask only show the gas fee as the transaction when I'm testing my dApp?
I've been working on a presale dApp on the BSC testnet using solidity to deploy the contracts and obtain the ABIs, and using Preact/Ethers.js to build the interface.
I'm at the point where there are ...
0
votes
2
answers
1k
views
How to wait for the deployment transaction of the contract to be mined
**I want to deploy a smart contract and wait for the deployment transaction of the contract to be mined but i am running into some error **
**version used **
"dotenv": "^16.3.1",
...
-2
votes
1
answer
1k
views
TypeError: ethers.Wallet.fromEncryptedJsonSync is not a constructor
I'm trying to run this piece of code to deploy a smart contract in JS with ethers.js library:
const ethers = require("ethers");
const fs = require("fs-extra");
require("dotenv").config();
async ...
0
votes
1
answer
1k
views
Uniswap SwapRouter V3 Error: cannot estimate gas; transaction may fail or may require manual gas limit
I am trying to add liquidity to uniswap pool using SwapRouter but I get a gas error. I am working on hardhat fork.
const { ethers } = require('ethers');
const dotenv = require('dotenv').config();
...
1
vote
2
answers
1k
views
How can I get chain id explorer?
I am building a dApp with ethersjs and metamask and everything works fine however, I want to be able to get the chain explorer so users can check the details of their transaction.
At the moment, new ...
0
votes
1
answer
1k
views
Calling a smart contract function using metamask with ether.js
I'm completely new to both blockchain and JavaScript.
I'm trying to create a simple web page where people could generate a "wedding" smart contract that basically store their 2 names. For ...
0
votes
2
answers
2k
views
How do you convert a hex string to a Date?
I've got a hex string, 0x63a4b534, I'd like to convert to a human readable date. However, I'm not sure how to do that. I've tried:
new Date("0x63a4b534").toLocaleDateString()
to no avail.