Questions tagged [erc721]
123 questions
0
votes
0 answers
Submit New Contract to Opensea Not Working
I am trying to list a new Ethereum smart contract on Opensea. It worked fine on Rinkeby. Its now deployed on mainnet with 10 tokens minted, however when I try and submit it to Opensea here https://opensea.io/get-listed/step-two I get this error "We…

Chris
- 833
- 2
- 17
- 37
0
votes
1 answer
Alternatives to mapping in Solidity? or map data with another?
I know that the question may sound strange but... are there alternatives for mapping in Solidity?
Let me explain...
The thing is, I have to know who has the ERC721, it's like a dao, "you can't enter to a page if you don't have the Token", what my…

Bernardo Olisan
- 665
- 7
- 20
0
votes
1 answer
How to use erc20 custom token on multiple chains?
If erc20 tokens are deplopyed on ethereum and dapp is on polygon, we cannot use the following code
IERC20 token = IERC20(add);
So to use my tokens on polygon dapp as a payment, I can use bridging. If I send my tokens to polygon through bridging,…

Blockchain Kid
- 315
- 2
- 9
0
votes
1 answer
Is payble keyword neccessary even if I am not taking any ether/matic?
function sendGift(uint256 _mintAmount,address recipient) public payable {
uint256 supply = totalSupply();
require(!paused);
require(_mintAmount > 0);
require(_mintAmount <= maxMintAmount);
require(supply + _mintAmount<=…

Blockchain Kid
- 315
- 2
- 9
0
votes
0 answers
How to Pass NFT Trait Property Securely To Smart Contract
I have an NFT staking contract that issues rewards based on the property rarity of the NFT staked. The four property tiers are 1,2,3 and 4.
When a user clicks stakeNFT(tokenId, nftTier), I use the tokenId to pull the metadata json property from IPFS…

John Smith
- 75
- 2
- 9
0
votes
1 answer
how to verification address in solidity
Through web3 transactions, the private key is used to sign the initiated transaction to verify the transaction information and prove the owner of the address.
But in the transfer method in the smart contract erc721, I did not see the code related to…

dazan
- 13
- 2
0
votes
1 answer
Mint ERC721 token to specific account
How can I mint an NFT using ERC 721 directly to someone's wallet? I have done IPFS pinning for my NFT and am using truffle console to mint. I am able to mint the tokens but they are from my wallet only. I need it to be minted in the name of metamask…

Chandan Kumar
- 21
- 5
0
votes
1 answer
Why is my string showing me this error "Expected pragma, import directive or contract/interface/library/struct/enum definition."?
pragma solidity ^0.6.0;
import "./ERC721.sol";
string constant name = "MyToken";
string constant symbol = "MTKN";
contract Mytoken is ERC721(name, symbol) {
}
the error is "Expected pragma, import directive or contract/interface/library/struct/enum…
0
votes
1 answer
Transferring ownership of NFT(ERC721)
I'm trying to change the ownership of a requested ERC721(NFT) to another wallet.
I'm using the Mumbai Test Net and ethers.
To do it I need to create the general ERC721 contract using its abi but I can't find it.
In comparison, the ERC20's abi I…

Alon Ben Yaakov
- 139
- 1
- 11
0
votes
1 answer
Developing NFT contract and receiveing external transactions
I'm developing simple app for nft contracts.
Got stucked at receving external transactions.
Contract:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import…

Cawa
- 1,269
- 3
- 25
- 44
0
votes
2 answers
When sending ether to another contract it sends it to the contract?
I try to send ether from one address to another. But in the transaction the receiver seems to be the contract address.
My goal is to send from address 1 to address…

caarkii
- 15
- 5
0
votes
1 answer
ERC721A smart contract
I'm writing an ERC721A smart contract and getting a warning in the Remix IDE. There is the code:
function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) {
if (index >= balanceOf(owner)) revert…

Lyte
- 59
- 5
0
votes
1 answer
Ethers.js - "ERC721A: transfer from incorrect owner" MetaMask Error
My goal is to setApprovalForAll for a token contract before executing the safeTransferFrom function for each tokenId in the NFT collection. This way I will be able to transfer NFTs to another address without MetaMask asking for several…
user18683555
0
votes
1 answer
Definition of base has to precede definition of derived contract (ERC721 implementation)
The top SO or ETH Stack Exchange answers don't seem to apply to my case (I could be wrong of course)
I'm getting the error describer in the title in this file:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import…

uber
- 4,163
- 5
- 26
- 55
0
votes
2 answers
How can i set 2 max supply's in a ERC721
I have a problem. The problem is that i want a max mint supply for the whitelist sale and public sale. So for example;
In total i have 10.000 NFT's. There will be an whitelist sale and a public sale. For the whitelist sale i have 2.000 wallet…

JamesL
- 3
- 3