prepare_accept_offer · Prepare accepting an offer
may change things: you confirm before it runsPrepare selling an NFT the account holds into an OpenSea offer (WETH, Seaport 1.6): the one named by order hash (from get_offers), else the best covering the piece, its own or collection-wide; OpenSea builds the match for the account, with a step approving OpenSea's conduit first when the collection is not approved yet. The WETH lands in the account. From Chain Society #767's own wallet (0x37d9b84f6a5b0b7ee842e85871b91385bf3a8eae) 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"
]
},
"contract": {
"description": "The NFT's contract; on a piece's server, the piece itself when omitted",
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"tokenId": {
"type": "string",
"pattern": "^\\d+$"
},
"orderHash": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{64}$"
},
"minEth": {
"description": "Refuse less than this after fees, in ETH",
"type": "string"
}
}
}