# dev.malpercio.cards.transfer

> Written by the current owner to hand a card to another DID. The recipient completes the transfer by writing a dev.malpercio.cards.item whose 'via' strongRefs this record. Repos are mutable, so an appview indexing the firehose resolves conflicting transfers of the same give (first seen wins).

- Kind: record
- Record key: tid
- Authority: cards.malpercio.dev
- Lexicon: 1
- Published by [cards.malpercio.dev](https://lexicon.garden/identity/did:plc:kmg2eqexpdefljft34crzesc), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:kmg2eqexpdefljft34crzesc/dev.malpercio.cards.transfer)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:kmg2eqexpdefljft34crzesc/dev.malpercio.cards.transfer/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:kmg2eqexpdefljft34crzesc/dev.malpercio.cards.transfer/analytics)

## Record (`dev.malpercio.cards.transfer`)

Type: record · key tid

### Properties

- `createdAt` (string · datetime, required)
- `expiresAt` (string · datetime): If the recipient hasn't accepted by then, the sender may delete this and keep the card.
- `give` (string · at-uri, required): Root give, denormalized so indexers can key conflicts without fetching the item.
- `item` (ref, required): The sender's dev.malpercio.cards.item being transferred.
  - Reference: `com.atproto.repo.strongRef`
- `note` (string)
  - Constraints: maxLength: 512
- `recipient` (string · did, required)
- `trade` (ref): Optional: the counterparty's transfer this is exchanged for. Both sides reference each other for a two-way trade.
  - Reference: `com.atproto.repo.strongRef`

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Written by the current owner to hand a card to another DID. The recipient completes the transfer by writing a dev.malpercio.cards.item whose 'via' strongRefs this record. Repos are mutable, so an appview indexing the firehose resolves conflicting transfers of the same give (first seen wins).",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "expiresAt": {
            "description": "If the recipient hasn't accepted by then, the sender may delete this and keep the card.",
            "format": "datetime",
            "type": "string"
          },
          "give": {
            "description": "Root give, denormalized so indexers can key conflicts without fetching the item.",
            "format": "at-uri",
            "type": "string"
          },
          "item": {
            "description": "The sender's dev.malpercio.cards.item being transferred.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "note": {
            "maxLength": 512,
            "type": "string"
          },
          "recipient": {
            "format": "did",
            "type": "string"
          },
          "trade": {
            "description": "Optional: the counterparty's transfer this is exchanged for. Both sides reference each other for a two-way trade.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          }
        },
        "required": [
          "item",
          "give",
          "recipient",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "dev.malpercio.cards.transfer",
  "lexicon": 1
}
```
