---
updatedAt: 2026-09-29T21:24:53.000Z
agentTools:
  projectIndex: https://docs.opensea.io/llms.txt
---

# Build creator fee enforcement transactions

Build the transactions that turn creator fee enforcement on or off for a collection, for the owner to sign and send. Turning it on sets OpenSea's transfer validator on the contract (the Creator earnings tab in Studio); turning it off removes it. Nothing changes until the transactions are mined. Only the collection owner can call this, and the contract must be owned onchain by that wallet. When enforcement is already in the requested state, transactions is empty and there is nothing to send. Check the result with GET /api/v2/collections/{slug}/creator_fee_enforcement.

On chains that use the Limit Break V5 validator, set allow_eip7702_transfers, allow_smart_wallet_transfers or both to also get the policy update that lets those wallets send the collection's NFTs directly. It is one separate transaction to the transfer validator, sent after the one that sets it. For a collection that is already enforced, it is the only transaction returned. It rewrites the collection's whole policy as read when it was built, so request it right before signing.

# 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": "Collection Endpoints",
      "description": "Collection endpoints to retrieve collection details, traits, and trending data"
    }
  ],
  "paths": {
    "/api/v2/collections/{slug}/creator_fee_enforcement": {
      "post": {
        "tags": [
          "Collection Endpoints"
        ],
        "summary": "Build creator fee enforcement transactions",
        "description": "Build the transactions that turn creator fee enforcement on or off for a collection, for the owner to sign and send. Turning it on sets OpenSea's transfer validator on the contract (the Creator earnings tab in Studio); turning it off removes it. Nothing changes until the transactions are mined. Only the collection owner can call this, and the contract must be owned onchain by that wallet. When enforcement is already in the requested state, transactions is empty and there is nothing to send. Check the result with GET /api/v2/collections/{slug}/creator_fee_enforcement.\n\nOn chains that use the Limit Break V5 validator, set allow_eip7702_transfers, allow_smart_wallet_transfers or both to also get the policy update that lets those wallets send the collection's NFTs directly. It is one separate transaction to the transfer validator, sent after the one that sets it. For a collection that is already enforced, it is the only transaction returned. It rewrites the collection's whole policy as read when it was built, so request it right before signing.",
        "operationId": "build_creator_fee_enforcement_transactions",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "description": "Collection slug",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "boredapeyachtclub"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetCreatorFeeEnforcementRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Transactions to sign",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionTransactionsResponse"
                }
              }
            }
          },
          "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:collections"
            ]
          }
        ],
        "x-opensea-auth-required": true,
        "x-opensea-auth-scopes": [
          "write:collections"
        ]
      }
    }
  },
  "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"
        ]
      },
      "CollectionTransactionResponse": {
        "type": "object",
        "description": "A ready-to-sign 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": "Transaction value in wei"
          }
        },
        "required": [
          "chain",
          "data",
          "from",
          "to",
          "value"
        ]
      },
      "CollectionTransactionsResponse": {
        "type": "object",
        "description": "Ready-to-sign transactions. Send them in order from the address in each one's from field.",
        "properties": {
          "transactions": {
            "type": "array",
            "description": "Transactions to send, in order. Empty when nothing needs to change onchain.",
            "items": {
              "$ref": "#/components/schemas/CollectionTransactionResponse"
            }
          }
        },
        "required": [
          "transactions"
        ]
      },
      "SetCreatorFeeEnforcementRequest": {
        "type": "object",
        "description": "Request body for turning creator fee enforcement on or off",
        "properties": {
          "allow_eip7702_transfers": {
            "type": "boolean",
            "default": false,
            "description": "true also returns the Limit Break V5 policy update that lets EIP-7702 wallets (OpenSea embedded wallets, MetaMask Smart Accounts) send this collection's NFTs directly, which the V5 transfer validator rejects by default. Marketplace sales still pay creator earnings, but a 7702 wallet's delegate code could be written to settle a trade as a direct send, which skips them. When enforcement is already on, transactions holds only this update, or is empty when there is none to make (another validator, or a policy that already allows these sends). Ignored when enabled is false."
          },
          "allow_smart_wallet_transfers": {
            "type": "boolean",
            "default": false,
            "description": "true also returns the Limit Break V5 policy update that lets smart contract wallets (Safe, Coinbase Smart Wallet and other contract accounts) send this collection's NFTs directly, which the V5 transfer validator rejects by default. This is a wider opening than allow_eip7702_transfers: any contract holding the NFTs can then send them, including NFT AMM pools, whose swaps do not pay creator earnings. With allow_eip7702_transfers, both options go in one transaction. When enforcement is already on, transactions holds only the update, or is empty when there is none to make. Ignored when enabled is false."
          },
          "enabled": {
            "type": "boolean",
            "description": "true sets OpenSea's transfer validator on the contract so creator fees are enforced. false removes the validator."
          }
        },
        "required": [
          "enabled"
        ]
      }
    },
    "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"
      ]
    }
  ]
}
```