ethereum Questions
3
I'm following a tutorial on Solidity and Python (for reference https://www.youtube.com/watch?v=M576WGiDBdQ&t=5447s).
I'm at the stage where Python and Brownie have been installed and running th...
Halliehallman asked 11/11, 2021 at 11:50
1
I have the following function
enum OptionType {Invalid, Put, Call}
function create(
uint256 period,
uint256 amount,
uint256 strike,
OptionType optionType
) {
....
}
When I try to delegatec...
4
I am using the ethers.js documentation: https://docs.ethers.io/ethers.js/html/cookbook-providers.html .
I am getting the error when setting up the provider -: Uncaught ReferenceError: web3 is not d...
Vanburen asked 21/3, 2020 at 7:56
3
Solved
I'm dealing with a strange issue with the safeTransferETH helper function in Uniswap V2's router contract.
I'm trying to swap tokens held by the contract to Uniswap for Ether, using the swapExactTo...
Clackmannan asked 21/12, 2021 at 20:48
7
I am trying to deploy a contract on Goerli, but I constantly get the error Error HH100: Network goerli doesn't exist
Here is my hardhat.config.ts
require("dotenv").config();
import { task...
Artificiality asked 16/2, 2022 at 19:0
4
Solved
I was trying to get keys of a mapping to star name and address of particular contract (not exactly) in solidity contract
mapping(string=>address) nameOfAccounts;
What i am expecting is a method...
Chopper asked 1/1, 2021 at 12:28
3
Solved
I am working with web3-react and I cannot figure out how to keep the connection to the MetaMask wallet persistent upon browser refreshes.
This is the code:
// define the injectedConnectors
const i...
Estelaestele asked 12/7, 2021 at 10:15
3
What would be the address if I want to swap tokens from ETH?
ISwapRouter.ExactOutputSingleParams memory params =
ISwapRouter.ExactOutputSingleParams({
tokenIn: TOKEN_IN_ADDRESS,
tokenOut: TOKEN_...
6
I understand bitcoin uses blockchain technology to maintain a decentralised ledger of all transactions. I have also read many posts eluding to future applications of blockchain technology, no...
Hagan asked 25/7, 2016 at 1:54
14
I installed truffle through npm with the following:
sudo npm install -g truffle
but when I run truffle list on the console it just gives me
bash: truffle: command not found
Ereshkigal asked 1/7, 2016 at 14:58
2
Solved
I'm trying to interact with geth, and I need to create a new deposit address (and be able to control it). How can I implement this with web3.js?
1
Solved
I would like to connect Remix - Ethereum IDE (https://remix.ethereum.org) to localhost.
I followed the instructions https://remix-ide.readthedocs.io/en/latest/remixd.html#update-to-the-latest...
Sukhum asked 20/4, 2023 at 17:53
5
Solved
I am trying to send ETH from one account to another but the conversion from ETH to WEI keeps giving me headaches. In this case, I am trying to send 0.11 ETH but in the confirmation window, I get 31...
Liechtenstein asked 2/2, 2022 at 12:17
6
i want to do a transaction in ethereum from account A but the transaction fee should be paid from account B.
is it possible in ethereum?
Eccentricity asked 30/6, 2018 at 7:39
9
I am new to deploying smart contracts with hardhat and am following a tutorial at https://dev.to/dabit3/the-complete-guide-to-full-stack-ethereum-development-3j13. However, after running npx hardha...
7
I am getting error with both latest solc (0.5.2 version) and 0.4.25 too while I am writing Simple contract
I have tried following steps
uninstalled Solc: npm uninstall solc
Installed targeted v...
Steradian asked 27/12, 2018 at 7:36
5
Error: Truffle is currently using solc 0.5.16, but one or more of your contracts specify “pragma solidity ^0.8.0”
Here is a photo of the error - https://gyazo.com/2f5ea2f50cc1d4ef5eea2f21d0e04fe7
A...
Reconvert asked 21/6, 2021 at 15:1
3
Solved
I am trying to pull a list of token contracts held by a wallet address, similar to how bscscan does, except programmatically. bscscan.com/apis does not have an endpoint, and web3js seems to only re...
Voyage asked 22/6, 2021 at 14:27
2
Solved
I try to deploy my masterchef contract. I have 2 arguments to specify in the constructor (the token address and the actual block number in secondes). I use hardhat for doing this and I actually try...
Alper asked 26/12, 2021 at 18:49
4
Solved
I'm trying to fetch the price of ETH from KyberSwap, using Ethers.js, but I'm receiving the following error:
Error: unknown account #0 (operation="getAddress", code=UNSUPPORTED_OPERATION,...
2
Solved
I'm trying to access the ethers provider like this in Nextjs 13.0.1:
import { ethers } from "ethers";
export const signMessage = () => {
const provider = new ethers.providers.Web3P...
Commitment asked 5/2, 2023 at 11:6
6
I can't understand what the problem is. When I am run the app I am getting this error:
Unhandled Runtime Error
Error: invalid address or ENS name (argument="name", value=5.050201689117535...
4
Solved
Web3.js web3 into the window object.
Browser Wallets like MetaMask inject ethereum into the window object.
In typescript right now to mitigate compile errors I'm casting as follows (window as any)....
Ashok asked 30/12, 2020 at 9:48
6
Solved
I am using MetaMask for sending transactions to contract in my DApp. I need help in How to Disconnect MetaMask account from my DApp when the user clicks on logout button.
Front-end: ReactJS
Back-en...
2
Solved
I am trying to connect to the metamask from my dapp. following the docs: https://docs.metamask.io/guide/getting-started.html#connecting-to-metamask
but when I call eth_requestAccounts method it's o...
Centipoise asked 29/9, 2021 at 13:32
© 2022 - 2024 — McMap. All rights reserved.