> For the complete documentation index, see [llms.txt](https://docs.cryptolegacy.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cryptolegacy.app/detailed-flows/detailed-contract-setup-flow.md).

# Detailed Contract Setup Flow

## **Create CryptoLegacy Contract**&#x20;

* **Beneficiaries**:
  * Beneficiaries provide their addresses and public encryption keys.
  * Add 5 beneficiaries (provide their addresses and public encryption keys).
  * Set a 1-month delay per beneficiary (of course, you can choose any period).
  * Distribute equal shares (20% each) over 10 years. You can customize any parameter.
* **Deployment**:
  * Pay DAO donation and deploy the contract via the Factory.
  * Guardians and Recovery plugins are automatically added.
* **Data Storage**:
  * Beneficiary addresses are stored as hashes.
  * Original addresses and encryption keys are saved locally in your browser.

## **Token Approval**

* You have:
  * 3 multisig wallets holding assets.
  * 4 regular wallet addresses.
* Approve all tokens from all wallets to the new CryptoLegacy contract.
* Wallet and ERC20 token addresses are automatically saved locally in your browser.

## **Backup Encryption**

* Your backup is automatically encrypted with your public encryption key.
* Send a transaction to store the encrypted backup within a smart contract event.

## **Beneficiary Data Encryption**

* Wallet and asset addresses are automatically encrypted for each beneficiary using their public encryption keys.
* Send a transaction to store the encrypted data within a smart contract event.

## **Beneficiary Access and Testing**

* Beneficiaries do **not** have direct access to encrypted messages.
* Request beneficiaries verify encryption by testing with a provided test message.

## **Update timeout on CryptoLegacy Contract**

* Each 6 months send transaction to update timeout.


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.cryptolegacy.app/detailed-flows/detailed-contract-setup-flow.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
