Consume an Item (ERC1155)
Use this method to consume an item directly from its owner wallet.
Only works if the item was created as consumable
Usage in your script
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
| String | Yes | The item's collection address |
| number | Yes | The item's tokenId |
| number | Yes | The amount of item to consume |
| String | Yes | The address you want to consume an item from |
Last updated