Category "ethereum"

Problem authenticating via the OpenSea JDK

I am trying to authenticate my wallet against OpenSea using the SDK, but fail doing so. Here's my code snippet: const walletSubprovider = new MnemonicWalletSubp

How do I reset Hardhat's mainnet fork between tests?

I'm writing unit tests in Hardhat using Hardhat's mainnet fork, however it seems that the results from one test are affecting future tests and causing my assert

Web3 error when trying to call contract methods

I encounter the following error while trying to run a dapp made using React, Truffle & Ganache. I'm also using web3 version 1.7.1. The problem is that the c

Web3 code working in terminal but not my IDE

I am very new to web3 and relatively new to JavaScript. The following code returns undefined for the variable accounts. Here is my code: const Web3= require('we

Getting a smart contract, web3 python

How can I access smart contract calls with only the address of the contract? Correctly, I understand that the address will be enough, because with the help of i

insufficient funds for gas * price + value

I am attempting to broadcast a constructed transaction for rinkeby. Web3 seems to always return errors, sometimes for insufficient funds for gas * price +

How to close the console in the geth console

In Ethereum I opened the javascript console with "geth console" but I can not close it anymore. I have tried ctrl-c, but it does not work.

Got "gas" is missing error when trying to run a node.js script using web3.js to interact with smart contract function

I am trying to use Web3.js to claim a token from a Smart Contract. I am meeting the error return new Error('"gas" is missing');. const Web3 = require('Web3'); c

web3 sendTransaction select and send token different than native currency

I'm not much of a professional with web3 and trying to figure out how to create a transaction that is using a symbol/token/cryptocurrency or whatever you might

Can gas fees be paid from another account when transferring tokens using Web3?

bsc = 'https://bsc-dataseed.binance.org/' web3 = Web3(Web3.HTTPProvider(bsc)) # print(web3.isConnected()) account_1 = '0xXXXXXXXXXXXXXXX

I get CORS error when I try to access metadata stored on IPFS

I am trying to fetch the metadata I stored on NFT.storage using axios, but each time I get this error: Access to XMLHttpRequest at 'ipfs://bafyreib6hf354pwtnwx

Is there a way to handle creator earnings on several Market (Rarible/OpenSea/etc..)

I got an interrogation about creator earnings, is there a way actually to collect creator earnings if the user sell the NFT on several markets like Rarible and

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