Category "ethereum"

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

Passing eventlisteners in promisses

Code process: Transaction is created with completeorders() function. Created transaction event listener activates and logs to console. Once the created transact

How to transfer a NFT from one account to another using ERC721?

I'm writing an NFT smart contract using the OpenZeppelin ERC721Full contract. I'm able to mint NFTs, but I want to have a button that enables them to be bought.

Why do openSea fetching data from IPFS all of a sudden?

This the validation json I got for my nft toke 34 HTTP 200 OK Allow: GET, OPTIONS Content-Type: application/json Vary: Accept { "valid": true, "token_u

How to implement smart contract to add eth address record to refer the specific ENS subdomain name in solidity

I have wrote the smart contract for creating ENS subdomain name. I need to pass the reference ETH address record for that created subdomain name. pragma sol

How to identify Who holds an NFT for how long?

I am developing an NFT collection using ERC721 token. But I would like to know how a particular nft is held by a particular customer? I am sensing there are two

create two nft collections from one smart contract (erc1155) in OpenSea

I want to list two collections on Opensea but instead of creating two smart contracts for that, I want to create only one (to save gas fees of uploading a contr

What is the Log Event emitted for ENS when the resolving address is updated

We're looking to build an indexer for all ENS records. Loading names is a simple task however determining the proper resolution address presumably requires read

How to add royalty fee to NFT collection

I am currently learning about NFTs and I reached the point where I deployed the contract and I can mint and everything going well. The only missing part is roya

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