Questions tagged [erc721]
123 questions
0
votes
0 answers
Error: DeclarationError: Undeclared identifier
I have a deployed contract. Now I want to make changes through the Remix, but there was some kind of error. please help me to solve this error. thanks.
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
import…

Gencho
- 1
0
votes
1 answer
Hedera - Token Service - Smart Contract ERC721 NFT - How do I get my contract to show in token associations?
I am trying to understand a bit more about the use of ERC721 contracts on Hedera and how they work with the Hedera Token Service (HTS).
If I use this contract ERC721Mock.sol, would the tokens I created show up in the Token Associations…

EmmBee
- 114
- 5
0
votes
1 answer
How to call tokenURI() function in ERC721 using Web3j library?
I need to view NFT-image with all metadata. I decide to call tokenURI() function like it, but it's ain't working
private fun getNFTMetadata() = viewModelScope.launch(Dispatchers.IO){
//tokenURI -- by token ID
val web3j: Web3j =…

Vando
- 11
- 2
0
votes
1 answer
Testing the safeMint function
I am trying to successfully write a unit test for my safeMint function below.
Here is my current test:
const assert = require("assert");
const { accounts } = require("@openzeppelin/test-environment");
const ComNFT =…

Golanger
- 11
- 2
0
votes
1 answer
Allow ERC20 token for minting ERC721 NFT
I'm new in Solidity and trying to allow purchasing using ETH and other token such as USDT but I keep getting this error no matter what I tried.
DeclarationError: Identifier already declared. --> contract-9b5b02c5de.sol:9:1:
|
9 | import…

MuthaFury
- 805
- 1
- 7
- 22
0
votes
0 answers
Displaying the tokenURI in a Web3 application
I am ultimately trying to display the nft that is being minted. I can record the transaction properly but now I am just trying to display the tokenURI. This is my smart contract.
contract EzAsPyNews is ERC721, ERC721Enumerable, Ownable {
…
0
votes
0 answers
How do I set the transaction to cost 1 ether?
The problem is that when I am clicking a button using the safeMint function, I do not know how to input a value for the cost to mint. So I am essentially minting with air. enter image description hereenter image description here
I have included a…
0
votes
0 answers
How to query an ERC721 Token Smart Contract from latest block transactions using go ethereum?
When I am showing data from latest block with transactions I need to check it is smart contact or not. Below the code I can check it is smart contact or not
address := common.HexToAddress("0x0536806df512d6cdde913cf95c9886f65b1d3462")
…

Saimun Hossain
- 56
- 9
0
votes
0 answers
Is there any way of load a json file with metadata from different elements in a smart contract?
I am trying to create a smart contract following the erc721 standard. I have a json file with different tokens metadata and I need to load this tokens in the smart contract.
The owner should be the user that load the file and this way I should be…

P00
- 11
- 4
0
votes
1 answer
Approval system for each minting in smart contract
I am new to blockchain application development and trying to create a smart contract in ERC 721. Currently, I implement a system with the help of a database where minting is only possible by the owner. In that case, I take the fee from the user and…

Muhammad Minhaj
- 109
- 1
- 7
0
votes
0 answers
Chainlink Data Feed - Code for placement of Data X Y axis in NFT
Please help point me in the right direction
In a 721a NFT, What is the correct CODE/CODE LINE that can be used for the correct placement on the X Y axis to correctly display Chainlink Data Feed
Thank you
I researched and cannot find the solution

Mikon
- 1
0
votes
1 answer
Dedicated mint event vs transfer event in erc721
For NFT minting - Standard says to emit transfer event with value of from as zero address. But i was wondering a dedicated event let's say mint sound more better and clear.
event Mint(address to, string tokenId)
Also it gives us advantage of one…

Ujjwal Kumar Gupta
- 2,308
- 1
- 21
- 32
0
votes
0 answers
ERC721 function that able to have "View NFT" in etherscan?
recently i notice there are function in etherscan can view NFT . May i know what are the requirements during draft ERC721 contract? which function are require in order to achieve…

brook18
- 179
- 2
- 5
- 12
0
votes
1 answer
How can I decode ETH Input Data from txHash?
I am trying to decode the ETH Input Data, but tried few online tools it doesn't work.
I understand it required an ABI for the decode, I used ERC721 project Moonbirds for the testing below.
It is the transaction I am trying to…

HKEF
- 1
- 1
0
votes
1 answer
Does Opensea.io updates "%xx have this trait" when new tokens are added to the collection?
There is one section on Opensea.io web page that shows the percentage of other tokens in the collection that has the same trait. Such as "%xx have this trait"
When the collection creator add new tokens to the collection, this percentage will…

Peng Xie
- 19
- 2