Category "ethereum"

When compiling my solana code , I am getting "TypeError: Named argument "username" does not match function declaration."

pragma solidity ^0.8.4; import "hardhat/console.sol"; contract Ewitter{ struct User{ address wallet; string name; string username;

Does approve take time to be confirmed, and how to deal with this in BSC?

Hi I am doing BSC DApp using web3 with react. I am very new to this field. I found after call approve, the transfer(or zapInToken in my case) will not be succes

Standard Common Practice Method in Solidity to perfrom any type of division?

I am trying to do the following calculation with solidity: 3,000 / 45,000,000 = 0.000067 with the following method: // SPDX-License-Identifier: MIT pragma solid

Is there any way to initiate a disconnect request to the Metamask wallet?

I'm building a decentralized application where users can connect their cryptocurrency wallet (Metamask) to my website. They can initiate a connection request by

How to get all tokens from Ethereum Chain

I want to know how to get a list of all existing erc20 tokens in the ethereum blockchain. Because I want to get a list of all coins what a users holds in his wa

Is it possible to connect someone else's MetaMask account?

I've been told that signing a message on a Dapp is the only way to prove that you actually own the account you are connecting with (i.e., simply connecting your

How can I implement a lazy-minting smart contract that doesn't actually mint NFTs?

This is my first experience writing a smart contract, so I am still trying to navigate how this all works. I have a smart contract on the Rinkeby test network t

Is possible to see output data when tracking a transaction from its address on Etherscan?

I wonder if it is possible to see "Output Data" on Etherscan for non-view transactions that returned values, I mean it is possible to see "Input Data" when fetc

ValidationError on smart contract function call for no apparent reason(web3py)?

I am trying to call Uniswap's Router's function swapExactTokensForETHSupportingFeeOnTransferTokens(). When I enter the values manually on etherscan, it goes thr

ERC1155 Sell/Buy NFT Solidity

My contract for ERC1155 marketplace to mint buy and sell the NFT. The nft is getting minted , However the NFT is not showing in market place and not able to pur

Web3 Python Gas Gwei not working: intrinsic gas too low

Why is the gas fee not working? If I remove the gas fee, the transaction works. But if I add a gas fee, the transaction fails and returns error: {'code': -32000

Non-Ethereum browser detected. You should consider trying MetaMask

Im having a simple UI where i need a metamask connect button but when i use this code i keep getting the "Non-Ethereum browser detected. You should consider try

sendSignedTransaction: Invalid sender error on Quorum

I am trying to call a method on a Smart Contract on a node app using an account that I create from a private key using web3 on a private quorum blockchain. I am

sendSignedTransaction: Invalid sender error on Quorum

I am trying to call a method on a Smart Contract on a node app using an account that I create from a private key using web3 on a private quorum blockchain. I am

TransactionError when using Brownie on Optimism - Tx dropped without known replacement

I have a Python script using Brownie that occasionally triggers a swap on Uniswap by sending a transaction to Optimism Network. It worked well for a few days (d

How to access the data from the previous block of Ethereum block chain through the block number?

I am new to block chain. Suddenly I got a question did we can able to access the previous block data from the Ethereum block chain by block number. For example

Truffle installation windows

I try to install truffle on windows with npm install -g truffle as administrator. I updated node.js npm and don't know what to do next. PS C:\Windows\system32&g

How to implement a transaction fee on every transaction which will get rewarded to holders of the token?

I have tried to make a ERC20 token that takes a transaction fee on every transaction (buy/sell/transfer) and this transaction fee gets distributed amongst the h

How to send ether from eoa to contract

I need to send ether from externally owned account to contract. All code I found so far looks like this contract Contract { mapping (address => uint) ba

How to get one value from struct of array in solidity?

I want to get the value that is inside of struct in Solidity, but I have no idea how to get it. pragma solidity >=0.4.21 <0.6.0; contract PlaceList {