> ## Documentation Index
> Fetch the complete documentation index at: https://docs.patchwork.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# IPatchworkMintable

> IPatchwork721 interface to add protocol-level mint support and enable mint fee accrual to the contract’s Scope.

> [!NOTE]
>
> import "@patchwork/contracts/PatchworkMintable/IPatchworkMintable.sol";
>
> **Inherits:**
> [`IPatchworkScoped`](https://docs.patchwork.dev/contracts/core/IPatchworkScoped)

## Functions

***

### mint

Mints a single token to a specified address.

```solidity theme={null}
function mint(address to, bytes calldata data) external payable returns (uint256 tokenId);
```

**Parameters**

| Name | Type | Description |
| - | - | - |
| `to` | `address` | The address to which the token will be minted. |
| `data` | `bytes` | Additional data to be passed to the minting process. |

**Returns**

| Name | Type | Description |
| - | - | - |
| `tokenId` | `uint256` | The ID of the minted token. |

### mintBatch

Mints multiple tokens to a specified address.

```solidity theme={null}
function mintBatch(address to, bytes calldata data, uint256 quantity)
    external
    payable
    returns (uint256[] memory tokenIds);
```

**Parameters**

| Name | Type | Description |
| - | - | - |
| `to` | `address` | The address to which the tokens will be minted. |
| `data` | `bytes` | Additional data to be passed to the minting process. |
| `quantity` | `uint256` | The number of tokens to mint. |

**Returns**

| Name | Type | Description |
| - | - | - |
| `tokenIds` | `uint256[]` | An array of the IDs of the minted tokens. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.