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.
import”@patchwork/contracts/PatchworkMintable/IPatchworkMintable.sol”;
Inherits:
IPatchworkScoped
Functions
mint
Mints a single token to a specified address.
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.
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. |