|
| 1 | +--- |
| 2 | +title: IMintingTagManager |
| 3 | +description: FAssets IMintingTagManager interface reference. |
| 4 | +keywords: [fassets, minting-tags, xrp, bitcoin, dogecoin, flare-network] |
| 5 | +sidebar_position: 5 |
| 6 | +--- |
| 7 | + |
| 8 | +Reference for managing and interacting with FAssets `IMintingTagManager`. |
| 9 | + |
| 10 | +To get the minting tag manager address, use the [getMintingTagManager](/fassets/reference/IAssetManager#getmintingtagmanager) method on the [IAssetManager](/fassets/reference/IAssetManager) contract. |
| 11 | + |
| 12 | +## Functions |
| 13 | + |
| 14 | +### `reserve` |
| 15 | + |
| 16 | +Reserve a new minting tag by paying the reservation fee. |
| 17 | +The caller becomes the owner of the tag and the initial minting recipient. |
| 18 | + |
| 19 | +```solidity |
| 20 | +function reserve() external payable returns (uint256); |
| 21 | +``` |
| 22 | + |
| 23 | +#### Returns |
| 24 | + |
| 25 | +- The newly reserved minting tag ID. |
| 26 | + |
| 27 | +### `setMintingRecipient` |
| 28 | + |
| 29 | +Set the minting recipient for a tag. |
| 30 | +Only callable by the tag owner. |
| 31 | +The minting recipient is the address that receives minted FAssets when this tag is used. |
| 32 | + |
| 33 | +```solidity |
| 34 | +function setMintingRecipient(uint256 _mintingTag, address _recipient) external; |
| 35 | +``` |
| 36 | + |
| 37 | +#### Parameters |
| 38 | + |
| 39 | +- `_mintingTag`: The minting tag ID. |
| 40 | +- `_recipient`: The new minting recipient address (must not be the zero address). |
| 41 | + |
| 42 | +### `reservationFee` |
| 43 | + |
| 44 | +Return the fee (in native currency) required to reserve a new minting tag. |
| 45 | + |
| 46 | +```solidity |
| 47 | +function reservationFee() external view returns (uint256); |
| 48 | +``` |
| 49 | + |
| 50 | +### `reservedTagsForOwner` |
| 51 | + |
| 52 | +Return all minting tag IDs owned by the given address. |
| 53 | + |
| 54 | +```solidity |
| 55 | +function reservedTagsForOwner(address _owner) external view returns (uint256[] memory); |
| 56 | +``` |
| 57 | + |
| 58 | +#### Parameters |
| 59 | + |
| 60 | +- `_owner`: The address to query. |
| 61 | + |
| 62 | +#### Returns |
| 63 | + |
| 64 | +- An array of minting tag IDs owned by `_owner`. |
| 65 | + |
| 66 | +### `mintingRecipient` |
| 67 | + |
| 68 | +Return the minting recipient for a given tag. |
| 69 | + |
| 70 | +```solidity |
| 71 | +function mintingRecipient(uint256 _mintingTag) external view returns (address); |
| 72 | +``` |
| 73 | + |
| 74 | +#### Parameters |
| 75 | + |
| 76 | +- `_mintingTag`: The minting tag ID. |
| 77 | + |
| 78 | +#### Returns |
| 79 | + |
| 80 | +- The address that receives minted FAssets when this tag is used. |
| 81 | + |
| 82 | +### `allowedExecutor` |
| 83 | + |
| 84 | +Return the currently active allowed executor for a given tag. |
| 85 | +If no executor is set or the pending change has not activated yet, this returns the previous executor. |
| 86 | + |
| 87 | +```solidity |
| 88 | +function allowedExecutor(uint256 _mintingTag) external view returns (address); |
| 89 | +``` |
| 90 | + |
| 91 | +#### Parameters |
| 92 | + |
| 93 | +- `_mintingTag`: The minting tag ID. |
| 94 | + |
| 95 | +#### Returns |
| 96 | + |
| 97 | +- The address of the allowed executor, or `address(0)` if none is set. |
0 commit comments