Questions tagged [mint]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
274 views

ERC1155 passing user defined tokenURI on the mint process

Hi im trying to set a new tokenURI per mint. Users are submitting the meta on the front end and im trying to get it back from moralis to use in my contract… Is this even possible? I tried doing this ...
0 votes
0 answers
6 views

How do I manually mint the 6529 meme mints through etherscan?

Example of a successful transaction (for reference): https://etherscan.io/tx/0xdd7d2b251aaf58b6004cf0354dbad836ead44cbe913ba17468fff2f957e0b7e0 As of now, my understanding is that I go here.. https://...
0 votes
1 answer
249 views

Minting/Sending 0 Value ERC-20 Tokens in Response to Transaction in Another Contract

I currently have a working ERC-20 contract for a small group that I am in. I would like to make a new contract that mints or sends a 0 value token without liquidity similar to a rewards token that has ...
0 votes
0 answers
11 views

How we can store the data inside a struct while doing batch minting in smart contract

i am trying to store the data inside a struct , while batchminting struct batchMinterDetails { uint256[] tokenids; uint256[] amounts; uint256[] royaltyFee; address ...
-1 votes
1 answer
17 views

NFT with custom data structure

I want to mint nft with a custom structure : 1 ipfs link to a png image 1 ipfs link to a xml file 1 ipfs link to binary file 10 key/value pair How can i do that ? can i use erc721 or use other one ? ...
0 votes
2 answers
2k views

How to mint Dai to Goerli testnet wallet?

Trying to get lots of Dai (need like 300,000+) on Goerli to transfer to zksync alpha testnet. When I try to just directly mint to my wallet's address on etherscan using the contract web interface, ...
0 votes
2 answers
1k views

Difference between lazy minting in OpenSea and Rarible

Rarible allows us to publish gas-free NFTs through lazy minting while OpenSea requires an initial gas fee (for Ethereum), after which all subsequent NFTs are published for free. After paying the ...
0 votes
3 answers
946 views

Add a price for minting an NFT

I attempting to implement an NFT minter into my application, but want to set prices for minting an NFT. I'm using a smart contract template I found but haven't been able to figure out how to set ...
0 votes
1 answer
34 views

Trying to call a mint function to a deployed erc20 contract using ethers.js

I'm building a react app which currently is able to connect to a wallet and display some data from a few deployed contracts. Upon connection to a wallet, I want to mint 1000 units of a token which I ...
3 votes
2 answers
2k views

Why do crypto art NFT platforms set their minting token's max supply so low?

The screenshot shows details about the crypto art platform SuperRare's non-native token "SUPR" for minting NFTs. I guess this is the token that creators mint their art too. But it says only ...
8 votes
1 answer
2k views

ERC721 NFT minting to accept custom ERC20 token as payment

When creating the contract for minting NFTs using the erc-721 standard, I want to be able to accept payment from my own erc-20 token instead of 'ETH'. How can this be accomplished?
1 vote
1 answer
39 views

What is minting ERC20 in Uniswap v3 contract?

I have been deep-diving Uniswap V3 and I came across this code example: pragma solidity ^0.5.0; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/...
3 votes
2 answers
50 views

Best Practices for Burning an external ERC721 as part of the mint method of a new ERC721

I'm working on a contract that will tokens from a different contract get burned to mint a 'new token'. I am just looking for a bit of guidance to make sure I don't run into any pitfalls. The ...
0 votes
1 answer
33 views

Minting an ERC20 from another non-ERC20 contract

I am trying to build a contract that mints different LP tokens to represent positions in liquidity pools. My main contract creates instances of my lpToken contract (an ERC20) and stores them in a list ...
0 votes
1 answer
63 views

Unable to mint an NFT with new contract,. Error: 'Returned error: execution reverted: Ownable: caller is not the owner'

I've returned on a project I worked before the merge of ETH Blockchain and the project was just a demo so I never tried it successfully. I've updated my contract and when I peform the var ...
0 votes
2 answers
58 views

Trying to limit number of times an NFT can be minted by a user/address

I am attempting to write a contract that limits the number of times a user can mint my contract. I have done a bit of research on my own and found this question also asked and solved in this forum I ...
0 votes
3 answers
960 views

mint multiple NFTs in single transaction (ERC- 721,1155 & 20)

I'm developing an NFT Marketplace using the Moralis server. I'd like to know that is there any way to upload multiple nfts with different metadata in one single transaction? Can you please share the ...
0 votes
1 answer
810 views

Do ERC-20 ETH tokens gain value if minted tokens get more use?

So I am trying to understand ethereum better. If someone could help me by correcting me where I am wrong here. As I understand ERC-20 is the ETH token. When you buy ETH on Binance or Uphold or wherver,...
0 votes
1 answer
21 views

How to implement per-character token ID assignments?

I am working on an NFT collection of 10,000 images (1000 images per character). I want to allow users to pay a premium to mint a chosen character, and was thinking of storing a mapping of tokenIds to ...
1 vote
1 answer
884 views

How to pass arguments in useContractWrite wagmi

this is the mint function of my contract and I want to pass the quantity argument, please help me with that. my current code :- const { writeAsync: mint, error: mintError } = useContractWrite({ ......
0 votes
1 answer
12 views

Q&A: Is it possible to mint many tokens by single call?

This part of own Q&A serial of posts which shares knowledge gained during work on one project I was curios about options we have to mint a token. Is it possible to mint many tokens by single call?
0 votes
1 answer
4 views

Q&A: Is a token emission free?

This part of own Q&A serial of posts which shares knowledge gained during work on one project I have to answer question would be ethereum cost of project deployment and usage fit the product ...
2 votes
1 answer
38 views

ERC20 token via openzeppelin, mint() always stuck?

I've created a erc20 token using openzeppelin, and deployed to rinkeby testnet. When I call mint(), it always stuck, e.g: await contract.mint('0x............',ethers.utils.parseEther("0.5") ....
0 votes
0 answers
25 views

Mint function is not working correctly in safemooon contract

I have implemented the mint function in safe moon contract, but it is getting marked on the owner's address and not the other address which I have passed. function _mint(address account, uint256 ...
0 votes
2 answers
84 views

Deployed an ERC20 with Hardhat, trying to mint token but getting "TypeError: _mint is not a function"

A bit of messing around with Hardhat and ERC20 deployments. I've deployed a created and tried to mint tokens for an account using this small snippet of code: const ERC20 = await hre.ethers....
1 vote
1 answer
4k views

How do I add minting functions to my webpage?

I'm looking at adding a mint function on my website so that users can directly mint from my website straight to the contract such as this: https://campfirebear.club/mint is this just written in JS ? ...
2 votes
1 answer
523 views

Correct way to create a ERC1155 collection

I am working on creating a contract that implements ERC1155 tokens. I want to be able to init a collection with different tiers. So let's say 3 tiers, tier1 will have 15 supply, tier2 50 supply and ...
0 votes
0 answers
24 views

Gas price seems very high

I'm fairly new in the world of blockchain so it might be I'm missing something obvious. I'm minting a NFT but it keeps exceeding the gas price despite the limit of 100000000429720. I'm trying to mint ...
1 vote
3 answers
221 views

Is it possible to verify someone else's smart contract on Etherscan?

I just deployed an ERC20 token on the Rinkeby testnet. The token has some features like Minting and Burning. After verifying the code on Etherscan I am able to interact with the functions and generate ...
0 votes
1 answer
362 views

Token id 0 minted error

i was wondering if someone can help me here. I'm minting an nft by this smart contract, and the problem is that the tokenid count starts with id 0, and that is an error. It must start in id 1. Someone ...
1 vote
1 answer
529 views

(ERC721) Is my mint() function guaranteed to mint consecutive tokenIDs for each user who calls it?

It is great to see a supportive community that could potentially help me out. I hope my question (as a beginner blockchain dev) is not too basic. I have the following mint() function (users can call ...
0 votes
1 answer
71 views

Multiple TokenURI URL in one smart contract

I have a doubt wich is if its possible to have different mint functions pointing to different tokenURI. Lets say i have 2 mint functions and 2 variables called tokenURI1 and TokenURI2 just like this: ...
1 vote
1 answer
42 views

Is there a way to mint several ENS at the same time?

I'm looking to mint 2 ENS at the same time to avoid paying the fee twice. Is that something possible ? Have a wonderful day :D
0 votes
1 answer
44 views

Update Mint Price function of my Smart Contract on the Frontend

Good morning! My Smart Contract has a function to update the price once totalSupply reach 2000 tokens minted. I added a function in the front end but i think is not clean at all. Works well on my Dapp ...
3 votes
2 answers
1k views

How to mint 10000 NFT at single or minimum no of transactions on ethereum?

I have to mint 10000 NFTs. But calling mint function 10000 times is not a good idea I guess. Even I created a batchMint function that is calling mint function in loop and it is able to mint multiple ...
1 vote
0 answers
20 views

Set metadata for Ethereun new token minted after deployment ERC 1155

i set a new contract with eRC 1155 on ethereum with 3 categories of 3 tokens (Id 1,2,3) and deployed it in the blockchain. To have the possibility to mint new token i create a override function for ...
0 votes
1 answer
36 views

Is it possible to mint whitelist and public sale at the same time? Help please!

Is it possible to Mint a whitelist and a public sale at the same time? I need to do it for a project but I'm stuck. The project has 3,000 free nft for the whitelist, but at the same time it will be ...
0 votes
0 answers
24 views

Minting different NFT types

I'm writing a contract that will have 3 different NFT types available for purchase. Two of those will have a limited number available for purchase. // Info for each NFT struct NFTType { ...
0 votes
0 answers
5 views

How to assign my ERC Token to this contracts minted Token properly?

Hello Ive worked on a simple Vault(which inherits a ERC20 contract) that mints ERC20 shares up upon a deposit, but It doesnt assign the token name, symbol etc from the predefined ERC20 contract which ...
3 votes
2 answers
714 views

OpenSea to ERC 721 (NFTs)

I'm a mere mortal in the coding world (e.g. a complete noob). I'm an NFT artist that has an increasingly popular collection on OpenSea. The collections on OpenSea, however, uses a system called 'Lazy ...
0 votes
1 answer
139 views

What is the best way to interact with a smart contract from Django?

I developed a smart contract (ERC721) for minting NFTs. I want to mint an NFT on a Django server when some specific event occurs. I do know how to mint them using Brownie framework but I don't know ...
0 votes
1 answer
413 views

When minting there is a third box appearing called 'signature (bytes)' what do I enter here?

I just looked at a minting contract and in addition to the usual mint price and quantity, there is a third box "signature (bytes)". I have not seen this before. What am I supposed to put ...
0 votes
0 answers
52 views

NFT whitelist merkletree

I hope you are all well. I am trying to make a frontend for an NFT minting DAPP. I use this code for the mint function: async function mint() { if(typeof window.ethereum !== 'undefined') { ...
0 votes
2 answers
334 views

Token Contract Verified and Signed on Mainnet Does Not Show MINT Function

The Token Contract Address https://etherscan.io/address/0xa2e7a0d1cfeda4d3977277265e205f6092d02e3b was successfully tested on Ropsten (See Ropsten Contract Address ...
0 votes
1 answer
268 views

How to display a token collection on opensea before it is minted?

Is there a way to display non-minted "yet" tokens on Opensea with the required msg.value as a price set directly by the contract? So instead of me paying the gas of thousands of tokens, I ...
0 votes
2 answers
721 views

Reveal NFT image/metadata after mint

I would like to adapt my current contract to include a post mint image/metadata reveal feature. i.e. after an NFT is minted I would only then like the image/metadata to be revealed for that particular ...
0 votes
1 answer
799 views

How to mint NFT using ethers.js?

I'm a beginner in blockchain dev... I'm using the famous Hashlips ERC721 smart contract (available here: https://github.com/HashLips/hashlips_nft_contract/blob/main/contract/SimpleNft_flat.sol ). The ...
0 votes
1 answer
197 views

Autoburn NFT's after certain amount of time

how to create functionality to make NFT burn automatically when its expiry date is reached ? while minting i am storing 2 parameters minted date and number of months to expire , so i want it to burn ...
0 votes
1 answer
23 views

Why is my mint function adding an extra gwei to mints?

I have been testing out my NFT smart contract on Rinkeby to test out interaction on the front end. I have done many testnet mints with this same function, but the last two times that I have tried the ...
1 vote
1 answer
42 views

How to find original mint transactions for crypto punks?

looking at etherscan https://etherscan.io/token/0xb47e3cd837ddf8e4c57f05d70ab865de6e193bbb im unclear how to identify original mint transactions. Usually filtering from Null address works but looking ...