prepare_opensea_mint · Prepare a mint on OpenSea
may change things: you confirm before it runsPrepare minting from a drop on OpenSea (a SeaDrop collection on Robinhood Chain, not FOMO's launchpad), named by its opensea.io link, slug or contract: OpenSea builds the mint for the account in the stage it may mint in now; when it won't and the public stage is open, the public mint is built from the chain. Checked to be a SeaDrop mint of that collection to the account itself. The pieces mint to the account the call comes from. From Chain Society #1008's own wallet (0x20f230db5e71a5ad57362911cb4aa1d4ee9446ec) 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.
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"
]
},
"collection": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "The opensea.io/collection/… link, the slug, or the 0x contract"
},
"quantity": {
"description": "How many; 1 when omitted",
"type": "integer",
"minimum": 1,
"maximum": 50
},
"maxEth": {
"description": "Refuse above this total price, in ETH",
"type": "string"
}
},
"required": [
"collection"
]
}