# at.turtleme.game.sell

> Published by [turtleme.at](https://lexicon.garden/identity/did:plc:f4h4tl43o4vx4hv2xps6siuz)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:f4h4tl43o4vx4hv2xps6siuz/at.turtleme.game.sell)
- [Documentation](https://lexicon.garden/lexicon/did:plc:f4h4tl43o4vx4hv2xps6siuz/at.turtleme.game.sell/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:f4h4tl43o4vx4hv2xps6siuz/at.turtleme.game.sell/examples)

## Definitions

### `at.turtleme.game.sell`

**Type**: `procedure`

Sell to the shop. What it pays falls as its shelf fills, and never goes under a tenth of what the item is worth. Selling more than is held sells what is held. Requires an atproto service auth token addressed to did:web:turtleme.at#turtle_game and naming this method, so a token issued for one call cannot be spent on another.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `item` | `string` | Yes | Which of the shop's lines. This counter takes fishing gear and fish, and nothing else. |
| `quantity` | `integer` | Yes | How many were offered. What is actually sold comes back in the outcome. |

#### Output

**Encoding**: `application/json`

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Sell to the shop. What it pays falls as its shelf fills, and never goes under a tenth of what the item is worth. Selling more than is held sells what is held. Requires an atproto service auth token addressed to did:web:turtleme.at#turtle_game and naming this method, so a token issued for one call cannot be spent on another.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "item": {
              "description": "Which of the shop's lines. This counter takes fishing gear and fish, and nothing else.",
              "maxLength": 64,
              "type": "string"
            },
            "quantity": {
              "description": "How many were offered. What is actually sold comes back in the outcome.",
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          "required": [
            "item",
            "quantity"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "ref": "at.turtleme.game.defs#state",
          "type": "ref"
        }
      },
      "type": "procedure"
    }
  },
  "id": "at.turtleme.game.sell",
  "lexicon": 1
}
```
