> For the complete documentation index, see [llms.txt](https://docs.zkbob.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zkbob.com/implementation/transaction-overview/untitled-1.md).

# Memo Block

### Fields overview

The memo block contains detailed transaction data such as output notes, accounts, transaction fee, and other specific fields.

The memo block consists of the fields below. There are two optional fields in the memo block, dependent on transaction type: `native amount` and `receiver`. These values are only included in the withdrawal transaction's memo block.

![The memo block structure](/files/-MkLhwIx6uf8Y8qdxih0)

| Field name                | Size (bytes)            | Description                                                                                                                                                       |
| ------------------------- | ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| fee                       | 8                       | Asset amount transferred to the relayer.                                                                                                                          |
| native amount             | 8                       | Asset amount for withdrawal. This field is optional for withdrawal transactions only.                                                                             |
| receiver                  | 20                      | Destination address for withdrawal transaction (chain-specific).                                                                                                  |
| $$ItemsNum$$              | 4                       | Number of encrypted elements in the memo block. An element is an account or a note. Note has a fixed number of items currently: one output account and 127 notes. |
| $$Hash\_{account}(acc)$$  | 32                      | Output account hash (with updated balance).                                                                                                                       |
| $$Hash\_{note}(Note\_i)$$ | 32                      | Output note hash.                                                                                                                                                 |
| $$nonce$$                 | 24                      | XChaCha20 nonce. Used to decrypt $$Keys^\text{enc}$$by transaction sender.                                                                                        |
| $$Keys^\text{enc}$$       | 32 \* $$ItemsNum$$ + 16 | Encrypted keys to decrypt output account and notes. Only the transaction sender can decrypt these keys.                                                           |
| $$acc^\text{enc}$$        | 86                      | Encrypted output account with an updated balance.                                                                                                                 |
| $$A\_i$$                  | 32                      | Ephemeral public key for notes. Used to decrypt $$Note\_i^\text{enc}$$ by note owner (receiver).                                                                  |
| $$Note\_i^\text{enc}$$    | 76                      | Encrypted note. It can be decrypted with $$A\_i$$ by owner or by transaction sender through a $$Keys^\text{enc}$$ disclosure.                                     |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.zkbob.com/implementation/transaction-overview/untitled-1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
