> For the complete documentation index, see [llms.txt](https://docs.altura.com/altura-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.altura.com/altura-documentation/js-sdk-reference/developer-wallet-methods/consume-an-item-erc1155.md).

# Consume an Item (ERC1155)

Use this method to consume an item directly from its owner wallet.

{% hint style="info" %}
Only works if the item was created as consumable
{% endhint %}

### Usage in your script

{% tabs %}
{% tab title="JavaScript" %}

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

const txHash = response.txHash;
```

{% endtab %}

{% tab title="TypeScript" %}

```typescript
const response: { txHash: string } = altura.consumeItem(
  COLLECTION_ADDRESS,
  TOKEN_ID,
  AMOUNT,
  FROM_ADDRESS
);

const txHash = response.txHash;
```

{% endtab %}
{% endtabs %}

### **Parameters**

<table><thead><tr><th width="193.33333333333331">Parameter</th><th width="137">Type</th><th width="109">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>collection_addr</code></td><td><strong>String</strong></td><td><strong>Yes</strong></td><td>The item's collection address</td></tr><tr><td><code>token_id</code></td><td><strong>number</strong></td><td><strong>Yes</strong></td><td>The item's tokenId</td></tr><tr><td><code>amount</code></td><td><strong>number</strong></td><td><strong>Yes</strong></td><td>The amount of item to consume</td></tr><tr><td><code>from_addr</code></td><td><strong>String</strong></td><td><strong>Yes</strong></td><td>The address you want to consume an item from</td></tr></tbody></table>
