ISPToken
Inherits: IERC1155
External imports
Functions
mint
mints the given erc1155 token id to the given address
function mint(address to, uint256 id, uint256 amount, bytes memory data) external;
Parameters
Name | Type | Description |
---|---|---|
to | address | the recipient of the token |
id | uint256 | the id of the ERC1155 token to be minted |
amount | uint256 | amount of tokens to be minted |
data | bytes | optional field to execute other methods after tokens are minted |
burn
burns the erc1155 tokens
function burn(address from, uint256 id, uint256 amount) external;
Parameters
Name | Type | Description |
---|---|---|
from | address | the address of the token owner |
id | uint256 | the id of the token to be burnt |
amount | uint256 | the amount of tokens to be burnt |