# sm.pipeGraph.getContainerShapeToSpendFrom

Returns a chest which allows for spending of specific item with a given quantity.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.pipeGraph.getContainerShapeToSpendFrom( requester, item, quantities )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.pipeGraph.md#getcontainershapetospendfrom)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `requester` | [Shape](../Game-Script-Environment/Userdata/Shape.md) | The shape connected to the pipe graph who requests the information. |
| `item` | [Uuid](../Game-Script-Environment/Userdata/Uuid.md) | The uuid of the target item. |
| `quantities` | number | The target spending amount. |

**Returns:**

| Name | Type | Description |
| --- | --- | --- |
| `container` | [Shape](../Game-Script-Environment/Userdata/Shape.md) | The shape of the container which was the first one that allows spending. |
