Build deploy contract transaction data
Changed onReturns a ready-to-sign transaction that deploys a new drop contract. Sign and send it from sender, which the response repeats as from; that wallet owns the contract.
Deployable drop_type and token_type combinations:
- seadrop_v1_erc721 with erc721_clone or erc721_standard: an ERC-721 SeaDrop V1 drop, with stages, allowlists, reveal, and public minting. erc721_clone creates the contract through OpenSea's clone factory; erc721_standard deploys the full contract bytecode.
- seadrop_v2_erc1155_self_mint with erc1155_clone: an ERC-1155 self-mint drop, where the owner creates each token and mints its whole supply to themselves. It has no stages, publish step, or public mint.
Every other combination returns 400.
For the clone types, to is OpenSea's clone factory. For erc721_standard, to is null: it is a contract-creation transaction, so send it without a to field.
Next, poll GET /api/v2/drops/deploy/{chain}/{tx_hash}/receipt with the hash of the sent transaction until status is success. The receipt carries the contract address and, once the new collection is indexed, the collection_slug every other drop endpoint takes.
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.
Request body
Example request
{
"chain": "ethereum",
"contract_name": "My NFT Collection",
"contract_symbol": "MNFT",
"drop_type": "seadrop_v1_erc721",
"sender": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"token_type": "erc721_clone"
}Response
Ready-to-sign transaction data for contract deployment
Example response
{
"value": "0"
}Changes
- breaking
request property
was restricted to a list of enum values - breaking
request property
was restricted to a list of enum values - breaking
the response property
became nullable for the status - info
added the new
erc1155_cloneenum value to the request property - info
added the new
erc721_cloneenum value to the request property - info
added the new
erc721_standardenum value to the request property - info
added the new
seadrop_v1_erc721enum value to the request property - info
added the new
seadrop_v2_erc1155_self_mintenum value to the request property - 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 required property
to the response with the status
- breaking