Error: invalid hexlify value (argument="value", value="PRIVATE_KEY", code=INVALID_ARGUMENT, version=bytes/5.7.0)
I encountered an error while building an application to send a token from one wallet to another using Ethers.js and Node.js. I am using…
I trying to build a web app that can interact with blockchain, I'm using brownie as solidity framework and reactjs. I installed useDapp to connect with my wallet. but in the first simple usage i got this error:
Compiled with problems:
ERROR in…
is anyway to use walletconnect with etherejs ?
the demos are nice but they are with wagmi
i cant port all project from etherjs to wagmi
i need this feature this button connect disconect and possibility to use only few networks/chainids
import {…
For example Token A costs 1.00$ on Uniswap and 1.05$ on Sushiswap.
So I can buy Token A on Uniswap and sell on Sushiswap for profit.
Let's suppose the next conditions:
Uniswap reserve pool = 100 ETH / 100000 USDC. 1 ETH = 1000 USDC
Sushiswap…
Having Issues while using the window.ethereum with NextJs new version, The window.ethereum was working fine with the NextJs 12 but when I upgraded to NextJs 13 having this error. Is there any alternative for this?
Code:-
const provider = new…
what i want to do is filter ERC721 mint transactions from mem pool
what i already known is :
subscrib pending:
txch := make(chan common.Hash, 1000)
_, err = gcli.SubscribePendingTransactions(context.Background(), txch)
or
…
I'm trying to programmatically swap USDC for MATIC with a JS script. I found this SushiSwap SDK on GitHub (https://github.com/sushiswap/sdk) however it appears to be archived and instructions for swapping non-ETH tokens don't seem to be clear. Can…
How can I get a list of all ENS names stored in a specific wallet using Ethers.js?
for example; I want to get all the ENS names in this address;
"0x8f635716982B836c4eB47e2F5c7B007Dde278F99"
thanks.
When I deploy a proxy contract and want to call a function on the proxy, I get a revert CALL_EXCEPTION.
Code to reproduce
Below the code how I deploy the Contract and load it as a fixture for tests. At this time, I can successfully query the…
I'm trying to create clones of my implementation contract (EIP-1167) using the OpenZeppelin Clones library, however I keep getting a VM Exception Error.
This is the 'Initialize' function of my Implementation contract:
contract Whoopy is…
On RSK public testnet, I create my RSK wallet with ethers like this:
const wallet = await ethers.Wallet.createRandom()
Then the address is: 0x68C06960f0Cd2bB0318673F157243Ad545AbbE2A
When I send an amount to it, and explore the transaction on RSK…
How can I implement a meta-transaction using ethers.js library or at least have another account paying a transaction, which was signed by different account?
Consider a transaction to transfer 100 ERC20-tokens using a ERC20-contract from 0xAccountA…
I m trying to save my private key in a keystore v3 json format but when I try to encrypt it using the following methods:
myNewAccount.encrypt('########')
rsk.accounts.encrypt('the-private-key', '########')
They both give the following…
So I'm reading data from a smart contract and trying to map through it to display on a frontend but it keeps returning an error
data is undefined
I'll post my code below, I'm really looking forward to some help
import React , { useState , useEffect…