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

const response = altura.consumeItem(
  COLLECTION_ADDRESS,
  TOKEN_ID,
  AMOUNT,
  FROM_ADDRESS
);

const txHash = response.txHash;

Parameters

Last updated