Category "ethereum"

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

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