---
updatedAt: 2026-09-25T23:33:12.000Z
agentTools:
  projectIndex: https://docs.opensea.io/llms.txt
---

# Build publish transaction data for a drop

Returns a ready-to-sign transaction that applies the drop's saved edits onchain: stages, supply, base URI, payout, and the OpenSea signer, fee recipient, and payers the drop needs. Every value is computed by OpenSea; do not build or change this calldata yourself, or signed presales stop validating.

Send the transaction from `from`, the contract's onchain owner. Only the collection owner can call this endpoint.

Only ERC-721 SeaDrop V1 drops are published. An ERC-1155 self-mint drop has no publish step and returns 400: each of its items goes onchain through the transaction POST /api/v2/drops/{slug}/items returns.

A 400 carries the reason the drop cannot be published, for example that it is disabled, its launch date is still pending, it has no saved edits to apply, or a stage has a price while neither the saved edits nor the contract has a creator payout address (every paid mint would revert). After a first publish, the drop is live once GET /api/v2/drops/{slug} returns it, which happens after the transaction is mined and indexed.

To reveal, run POST /api/v2/drops/{slug}/metadata/ipfs, wait for it to complete, then call this endpoint again to put the new base URI onchain.

The transaction does not set a provenance hash or change contractURI(). SeaDrop only accepts setProvenanceHash() before the first token is minted, so a drop that wants one must send that call from the owner itself before minting starts; after the first mint it reverts.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "OpenSea API",
    "description": "The API for OpenSea",
    "contact": {
      "name": "OpenSea",
      "url": "https://www.opensea.io",
      "email": "contact@opensea.io"
    },
    "version": "2.0.0"
  },
  "servers": [
    {
      "url": "https://api.opensea.io",
      "description": "OpenSea API server"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "tags": [
    {
      "name": "Drops Endpoints",
      "description": "Endpoints for discovering drops, checking mint eligibility, building mint transactions, and creating drops.\n\nCreating an ERC-721 SeaDrop V1 drop, in the usual order:\n\n1. POST /api/v2/drops/deploy with drop_type `seadrop_v1_erc721`, send the transaction, then poll GET /api/v2/drops/deploy/{chain}/{tx_hash}/receipt for the collection slug.\n2. POST /api/v2/drops/{slug} to save the stages, max supply, and payout address as a draft. Allowlists for `signed_presale` stages are uploaded first with POST /api/v2/drops/{slug}/allowlist.\n3. Items: POST /api/v2/drops/{slug}/items/media for upload contexts and upload each file, optionally upload a metadata manifest with POST /api/v2/drops/{slug}/items/manifest, then save them with POST /api/v2/drops/{slug}/items/media/save-batch. Pass one upload_batch_id on every upload request for the set of files, then save that batch by filename.\n4. Optionally, POST /api/v2/drops/{slug}/prereveal-item to set the placeholder that every token shows until the reveal.\n5. POST /api/v2/drops/{slug}/metadata/ipfs, polling GET /api/v2/drops/{slug}/metadata/ipfs/{workflow_execution_id} until it completes. This writes the real item metadata as the draft base URI.\n6. POST /api/v2/drops/{slug}/publish, sending the transaction from the contract owner. The drop goes live once it is mined and indexed.\n7. Minters use POST /api/v2/drops/{slug}/mint.\n\nStep 5 is the reveal. Run before the publish in step 6, the items are revealed as soon as the drop is live. To reveal later, publish without it, then run it and publish again when ready. POST /api/v2/drops/{slug}/unpublish returns a transaction that closes a live drop.\n\nAn ERC-1155 self-mint drop (drop_type `seadrop_v2_erc1155_self_mint`) skips steps 2 to 7. After deploying, get a media_token for each item's file from POST /api/v2/drops/{slug}/items/media and upload the file to the returned context. Each POST /api/v2/drops/{slug}/items with that token then returns a transaction that creates one token and mints its whole supply to the owner, and PUT /api/v2/drops/{slug}/items/{token_id} returns one that updates an existing token's metadata."
    }
  ],
  "paths": {
    "/api/v2/drops/{slug}/publish": {
      "post": {
        "tags": [
          "Drops Endpoints"
        ],
        "summary": "Build publish transaction data for a drop",
        "description": "Returns a ready-to-sign transaction that applies the drop's saved edits onchain: stages, supply, base URI, payout, and the OpenSea signer, fee recipient, and payers the drop needs. Every value is computed by OpenSea; do not build or change this calldata yourself, or signed presales stop validating.\n\nSend the transaction from `from`, the contract's onchain owner. Only the collection owner can call this endpoint.\n\nOnly ERC-721 SeaDrop V1 drops are published. An ERC-1155 self-mint drop has no publish step and returns 400: each of its items goes onchain through the transaction POST /api/v2/drops/{slug}/items returns.\n\nA 400 carries the reason the drop cannot be published, for example that it is disabled, its launch date is still pending, it has no saved edits to apply, or a stage has a price while neither the saved edits nor the contract has a creator payout address (every paid mint would revert). After a first publish, the drop is live once GET /api/v2/drops/{slug} returns it, which happens after the transaction is mined and indexed.\n\nTo reveal, run POST /api/v2/drops/{slug}/metadata/ipfs, wait for it to complete, then call this endpoint again to put the new base URI onchain.\n\nThe transaction does not set a provenance hash or change contractURI(). SeaDrop only accepts setProvenanceHash() before the first token is minted, so a drop that wants one must send that call from the owner itself before minting starts; after the first mint it reverts.",
        "operationId": "build_drop_publish_transaction",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "description": "Collection slug",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "cool-cats"
          }
        ],
        "responses": {
          "200": {
            "description": "Ready-to-sign publish transaction",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/DropTransactionResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "Conflict",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/V1ErrorWrapper"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "security": [
          {
            "ApiKeyAuth": [],
            "WalletAuth": [
              "write:drops"
            ]
          }
        ],
        "x-opensea-auth-required": true,
        "x-opensea-auth-scopes": [
          "write:drops"
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "V1ErrorWrapper": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Stable machine-readable error code, on the errors that have one. Branch on it rather than on the message text, which may change.",
            "example": "MINTER_NOT_ELIGIBLE"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "errors"
        ]
      },
      "DropTransactionResponse": {
        "type": "object",
        "description": "Ready-to-sign drop transaction",
        "properties": {
          "chain": {
            "type": "string",
            "description": "Chain identifier"
          },
          "data": {
            "type": "string",
            "description": "Encoded transaction data (hex)"
          },
          "from": {
            "type": "string",
            "description": "Address the transaction must be sent from: the contract's onchain owner. Sent from any other address it reverts."
          },
          "to": {
            "type": "string",
            "description": "Transaction target contract address"
          },
          "value": {
            "type": "string",
            "description": "Native currency to send with the transaction, in wei, as a decimal string (not hex)",
            "example": "0"
          }
        },
        "required": [
          "chain",
          "data",
          "from",
          "to",
          "value"
        ]
      }
    },
    "responses": {
      "BadRequest": {
        "description": "For error reasons, review the response data.",
        "content": {
          "*/*": {
            "schema": {
              "$ref": "#/components/schemas/V1ErrorWrapper"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Invalid or missing API key"
      },
      "Forbidden": {
        "description": "Wallet token lacks permission for this request",
        "content": {
          "*/*": {
            "schema": {
              "$ref": "#/components/schemas/V1ErrorWrapper"
            }
          }
        }
      },
      "NotFound": {
        "description": "Resource not found",
        "content": {
          "*/*": {
            "schema": {
              "$ref": "#/components/schemas/V1ErrorWrapper"
            }
          }
        }
      },
      "InternalError": {
        "description": "Internal server error. Please open a support ticket so OpenSea can investigate."
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "description": "API key required for authentication",
        "name": "x-api-key",
        "in": "header"
      },
      "WalletAuth": {
        "type": "openIdConnect",
        "description": "OpenSea wallet authorization. Run `opensea login` or use the OAuth 2.1 authorization-code flow with PKCE, then send the access token as `Authorization: Bearer <token>`.",
        "openIdConnectUrl": "https://auth.opensea.io/.well-known/openid-configuration"
      }
    }
  },
  "x-tagGroups": [
    {
      "name": "Data & Discovery",
      "tags": [
        "Chain Endpoints",
        "Account Endpoints",
        "Collection Endpoints",
        "NFT Endpoints",
        "Contract Endpoints",
        "Token Endpoints",
        "Search Endpoints",
        "Signal Endpoints"
      ]
    },
    {
      "name": "Marketplace & Trading",
      "tags": [
        "Listing Endpoints",
        "Offer Endpoints",
        "Order Endpoints",
        "Swap Endpoints",
        "Drops Endpoints"
      ]
    },
    {
      "name": "Analytics & Events",
      "tags": [
        "Analytics Endpoints"
      ]
    },
    {
      "name": "Tools [Beta]",
      "tags": [
        "Tool Endpoints [Beta]"
      ]
    },
    {
      "name": "Transactions",
      "tags": [
        "Transaction Endpoints"
      ]
    },
    {
      "name": "Authentication",
      "tags": [
        "Auth Endpoints"
      ]
    }
  ]
}
```