pet.trezy.getWallet

trezy.pet

{
  "id": "pet.trezy.getWallet",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "properties": {
            "pets": {
              "type": "array",
              "items": {
                "ref": "#earner",
                "type": "ref"
              },
              "description": "What each pet has earned since the wallet's anchor, so a client can show the money arriving FROM the pets that made it rather than as a number that silently changes. Only pets that earned something appear. Shares are floored individually and capped in proportion when the total exceeds stageMoneyCap, so they may sum to a coin or two under `pending` — they are for showing, and `pending` is the figure to trust."
            },
            "error": {
              "type": "string"
            },
            "balance": {
              "type": "integer"
            },
            "pending": {
              "type": "integer"
            },
            "collected": {
              "type": "integer"
            },
            "lastUpdated": {
              "type": "string",
              "format": "datetime",
              "description": "THE ACCRUAL ANCHOR, NOT A WRITE TIME. Income is measured FROM this moment, so it is where the next payout starts rather than when this record was last saved. The two usually coincide, because a settle banks everything and moves the anchor to now — but a PARTIAL collect advances it only as far as the coins actually taken, leaving it EARLIER than the write that produced it. Reading it as \"when the wallet was last written\" has already cost this project one wrong diagnosis. It is deliberately NOT renamed: it sits inside the signed payload, so changing it would invalidate every wallet attestation ever issued and require rewriting records in players' repos. Absent from the record until the first collect, in which case this reports the moment accrual began instead."
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "did"
        ],
        "properties": {
          "did": {
            "type": "string",
            "format": "did"
          }
        }
      }
    },
    "earner": {
      "type": "object",
      "required": [
        "pet",
        "pending"
      ],
      "properties": {
        "pet": {
          "type": "string",
          "format": "at-uri",
          "description": "The pet that earned it."
        },
        "pending": {
          "type": "integer",
          "description": "Coins this pet has earned and not yet banked."
        }
      },
      "description": "One pet's share of what has accrued since the wallet's anchor."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}

Validate Record

Validate a record against pet.trezy.getWallet

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:ollch4g7tes2reb5eceiwuol
CID
bafyreih5p4r6gphe6f5lsrlucxtpuz72jklc72lbnyvgdnmts36wmmdtvu
Indexed At
2026-08-09 01:42 UTC
AT-URI
at://did:plc:ollch4g7tes2reb5eceiwuol/com.atproto.lexicon.schema/pet.trezy.getWallet

Lexicon Garden

@