prepare_mint · Prepare a mint
may change things: you confirm before it runsPrepare a mint on a FOMO launchpad drop, as its mint page would send it: the phase the account may mint in now (or the one asked for) with its price and allow proof, a free piece picked and held for the account for 90 seconds, its art from the store; a big piece's leading parts as upload steps first, then the mint carrying the rest. The piece mints to the account the call comes from. From Chain Society #852's own wallet (0x0a4812f980b21d17c8422983c71dddb758bd38fe) by default, the holder signing; from the signing wallet with from: 'wallet'. Returns the unsigned transaction(s) to sign and send in order, a simulation of the first as the signer (whether it lands, the gas), and whether the account can pay. Nothing is signed or sent here. A mint's calldata carries the art, so it can run to a few hundred KB.
Input schema
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"wallet": {
"description": "The wallet that signs and sends: a 0x address. Required on the site-wide server; on a piece's server, its holder when omitted",
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"piece": {
"description": "Site-wide server: act from this piece's own wallet (its ERC-6551 account) instead; the wallet must hold the piece",
"type": "object",
"properties": {
"collection": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"tokenId": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"collection",
"tokenId"
]
},
"from": {
"description": "A piece's server: 'piece' (the default) acts from the piece's own wallet, the holder signing; 'wallet' acts from the signing wallet itself",
"type": "string",
"enum": [
"piece",
"wallet"
]
},
"drop": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "The drop's contract (from mintable, mints or the drop page)"
},
"phase": {
"description": "Which phase, by index; the first open one the account may use when omitted",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"drop"
]
}