Build mint transaction data for a drop
Changed onReturns ready-to-sign transaction data for minting tokens from a drop. The caller is responsible for signing and submitting the transaction. No wallet authentication is required, only an API key. The minter address in the request body determines who will receive the tokens. The transaction is built for the stage whose window contains the current time, and the response names it in stage_uuid, stage_type, stage_start_time and stage_end_time.
Supports ERC-721 SeaDrop V1 drops only; an ERC-1155 drop returns 400.
Error bodies for the drop, stage and minter conditions below carry a stable code alongside errors. Branch on code, not on the message text.
A 422 means the drop is mintable but this mint is not: the minter is not on the active presale's allowlist (the message names the stage and when the public stage opens), the quantity is over the wallet's limit or the remaining supply (the message says how many remain), the minter cannot pay the price and gas, or the active stage has a price and the drop has no creator payout address, so every paid mint would revert until the creator sets one.
Request
- Base URLhttps://api.opensea.io
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The collection slug identifying the drop
Request body
Example request
{
"minter": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"quantity": 1
}Response
Ready-to-sign transaction data including target contract, calldata, and value
Example response
{
"stage_type": "public_sale",
"stage_uuid": "5f0c6f7e2b8a4c1d9e3f6a7b8c9d0e1f",
"value": "10000000000000000"
}Changes
- info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info