# dev.malpercio.cards.transfer

> Published by [cards.malpercio.dev](https://lexicon.garden/identity/did:plc:kmg2eqexpdefljft34crzesc)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:kmg2eqexpdefljft34crzesc/dev.malpercio.cards.transfer)
- [Documentation](https://lexicon.garden/lexicon/did:plc:kmg2eqexpdefljft34crzesc/dev.malpercio.cards.transfer/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:kmg2eqexpdefljft34crzesc/dev.malpercio.cards.transfer/examples)

## Definitions

### `dev.malpercio.cards.transfer`

**Type**: `record`

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`

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

## Raw 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
}
```
