Category "ethereum"

HardHat and Rinkeby ProviderError: Must be authenticated Error

When I run npx hardhat console --network rinkeby accounts = await ethers.provider.listAccounts(); I get Uncaught ProviderError: Must be authenticated! with bel

Nethereum works well in unity editor, but not in android device

I'm using nethereum & unity with infura. (I'm developing an DApp.) I wrote some code for minting new NFT, and tested, and it worked very well. However, afte

deploy solidity contract with c#

I am developing an application on Ethereum blockchain. I use Solidity for contract and Nethereum c# library to connect to the contract. I am somehow new in Ethe

What's the difference between .deploy() vs. .deployed()

I am writing a script for a smart contract that I'll deploy using hardhat. I'm confused on the difference between .deploy() and .deployed(), what does each one

Trouble using python/brownie in WSL

I'm trying to complete the simple collectible NFT tutorial from this freeCodeCamp video. (I'm getting stuck on the script that starts exactly where the link is

Eth, how to call a deposit function from a smart contract

I am working on a project where I need to send ether from an user to a smart contract and from the smart contract to the user. The smart contract is code in Sol

How to find out if an Ethereum address is a contract?

An address in Solidity can be an account or a contract (or other things, such as a transaction). When I have a variable x, holding an address, how can I test if

Ethers.js event listeners - Expected behavior for many getLogs/chainId/blocknumber requests?

I'm building a minting site that requires me to check the number of NFTs minted and display that number in real time to the user. At first I was just making a r

Error when trying to deploy standard OpenZeppelin ERC777 contract to ganache-cli using the brownie framework

I am familiarizing myself with smart contract development using the brownie framework and solidity. To start of I was using the brownie console to deploy some s

Timed Advertisements Solidity Contract

Basically, I'm trying to make the smart contract be able to take exactly 0.05 eth ONLY when the cooldown timer is set to 0. The Dapp I'm creating is a first com

Why is a transaction consuming gas for a public view function?

I deployed the following smart contract on Ropsten ethereum test network and afterwards I tried making a transaction using @alch/alchemy-web3 npm package (Yes,

How is hardhat implicitly knowing deployer address?

I am new to using hardhat and I was trying to figure out how it is working. The documentation seems a little bit fuzzy as there are multiple layers of abstracti

Mobile DApp connecting to Wallet

I've been trying to create simple mobile app prototype (in Flutter) which would allow you to connect to a Wallet and obtains your address(es). I cannot get the

How do I get the balance of an account in Ethereum?

How can I programmatically discover how much ETH is in a given account on the Ethereum blockchain?

How to distinguish ERC20 and ERC721?

How can I differentiate between ERC20 and ERC721? without checking Etherscan

String concatenation in solidity?

How do I concatenate strings in solidity? var str = 'asdf' var b = str + 'sdf' seems not to work.. I looked up the documentation and there is not much mentione

Transaction reverted: function selector was not recognized and there's no fallback function

I am interacting with my own smart contract. It's a very simple one. // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract ERC20 { string public n

How to fix Invalid sender error when sending a signed transaction with ethereumjs-tx?

I am getting invalid sender when trying to send a signed transaction. Here is the error: Uncaught (in promise) Error: Returned error: invalid sender and this i

ENS: NameChanged() event not triggered

Intro I'm creating a dapp that uses ens. The ens should be automatically displayed for every wallet that owns it. For this I'm using the provider.lookupAddress(

What is a starting point/template to build a decentralised app for Ethereum [closed]

I am interested in building decentralized apps on ethereum and am wondering about the common libraries being used. For example, I've heard of