Category "ethereum"

Hey Can someone explain something about this Smart contract to me - LP Staking Contract

hey so i was looking through github for a LP staking smart contract and i came across this // SPDX-License-Identifier: MIT pragma solidity 0.7.6; import "@open

ERROR Brownie Mainnet Fork Testing `brownie.exceptions.VirtualMachineError: revert` problem or other?

When I try to test below project, it gets below error. Any thoughts why test fails, am I missing something? I am following 16 hours Solidity course of 'freecode

How to connect to a deployed Polygon testnet contract?

I have a front-end / web3 application that connects to a deployed contract in the rinkeby ethereum networt. That is possible with the Web3 library, and creating

How can I get a list of NFTs that I have minted?

I am building Social Media for NFT. I would like to get a list of NFTs minted in the past by a particular user in Ethereum and Polygon Chain. It does not have t

ETH ENS Web3 - How to get Registrant

I've following code snippet to get the "Controller" (The owner of the domain) but I need to get the "Registrant" of provided ENS name const Web3 = require("web3

Solidity Error: member balance not found or not visible after argument-dependent lookup in contract

I'm getting this error in Solidity for the following code snippet: member balance not found or not visible after argument-dependent lookup in contract functio

ERROR: brownie.exceptions.RPCConnectionError: Able to launch RPC client, but unable to connect

The ganache-cli is unable to connect to the mainnet fork, as a result of which I can't run brownie test --networks mainnet-fork My test.py file looks like this:

UseDapp - useCall - How to get return value from Solidity function?

I am still quite new with react and solidity and don't know where to start. I can update a String and want to print it out after I changed it. But I want the St

Detect MetaMask logout (Ethereum)

I've looked at the documentation here https://metamask.github.io/metamask-docs/Main_Concepts/Getting_Started But I'm not sure how to detect a user logging out

How to get ens username using ensjs

On the ensjs README, I see this code snippet: import ENS, { getEnsAddress } from '@ensdomains/ensjs' const ens = new ENS({ provider, ensAddress: getEnsAddres

Newbie- API to get Ethereum's latest blocks

I am looking for an ethereum api to get the N latest blocks. I will use javascript (react) to make the requests. I have looked into https://etherscan.io/apis#b

how to get transaction history from blocks via web3?

I have a private chain now and I want to query the transaction histories.I know that web3 has provide those methods web3.eth.blockNumber/web3.eth.getBlockTransa

Is it possible to set up readable names to addresses using Infura?

In my application, I want to create readable names for eth addresses. Currently, I use my own node and it's easy to use: WEB3 = Web3(Web3.HTTPProvider(NODE_NAME