at.turtleme.game.sell

turtleme.at

Documentation

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.

main 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

Encodingapplication/json
item string Required

Which of the shop's lines. This counter takes fishing gear and fish, and nothing else.

maxLength: 64 bytes
quantity integer Required

How many were offered. What is actually sold comes back in the outcome.

minimum: 1maximum: 1000

Output

Encodingapplication/json
Try It

Requests are sent directly from your browser. Some servers may block requests due to CORS.

Base URL for XRPC calls (e.g., https://bsky.social)
Enter valid JSON for the request body
View raw schema
{
  "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"
}

Lexicon Garden

@