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

Lexicon Garden

@