dev.cocore.account.tokenGrant

cocore.dev

Documentation

main record

No description available.

Record Key tid Timestamp-based ID

Properties

amount integer Required

Tokens credited. Equal to the `tokenGrant` field of the policy in effect at issuance time.

minimum: 0
createdAt string datetime Required

An RFC 3339 formatted timestamp.

exchange string did Required

Exchange DID. MUST equal the repo this record is published in.

policy ref com.atproto.repo.strongRef Required

Strong-ref to the exchangePolicy in effect when the grant was issued. Auditors verify `amount` against the policy's `tokenGrant`.

recipient string did Required

The DID receiving the grant.

View raw schema
{
  "key": "tid",
  "record": {
    "properties": {
      "amount": {
        "description": "Tokens credited. Equal to the `tokenGrant` field of the policy in effect at issuance time.",
        "minimum": 0,
        "type": "integer"
      },
      "createdAt": {
        "format": "datetime",
        "type": "string"
      },
      "exchange": {
        "description": "Exchange DID. MUST equal the repo this record is published in.",
        "format": "did",
        "type": "string"
      },
      "policy": {
        "description": "Strong-ref to the exchangePolicy in effect when the grant was issued. Auditors verify `amount` against the policy's `tokenGrant`.",
        "ref": "com.atproto.repo.strongRef",
        "type": "ref"
      },
      "recipient": {
        "description": "The DID receiving the grant.",
        "format": "did",
        "type": "string"
      }
    },
    "required": [
      "exchange",
      "recipient",
      "amount",
      "policy",
      "createdAt"
    ],
    "type": "object"
  },
  "type": "record"
}

Lexicon Garden

@