# Welcome TonRandcast Docs

Welcome to the documentation for **TonRandcast**, a smart contract bridging events from the Optimism network to the TON blockchain. This documentation provides all the details you need to understand, deploy, and interact with the project effectively.

### What is TonRandcast?

**TonRandcast** is a cross-chain integration project designed to:

* Capture key events from the Optimism network.
* Mirror these results onto the TON blockchain via a relay.
* Enable users and developers to retrieve and utilize this mirrored data.

The contract is written in **Tact**, leveraging the TON blockchain's capabilities, and interacts with Optimism using a **Node.js relay**.

In the future, **TonRandcast** may also integrate with **Eigenlayer**, where ARPA is currently operating as an AVS (Actively Validated Service) and operator. This potential integration would further enhance cross-chain capabilities by enabling Eigenlayer's innovative restaking and service model to be included in the system.

### Key Features

* **Event Mirroring**: Listens to events like `RollDiceResult` and `DrawTicketsResult` on Optimism and records them on TON.
* **Data Accessibility**: Provides a simple interface to query mirrored data on the TON blockchain.
* **Cross-Chain Compatibility**: Enables seamless integration between Ethereum-compatible and TON blockchains.
* **Future-Ready**: Positioned to explore integration with Eigenlayer's ecosystem, enabling advanced restaking mechanisms and additional AVS functionalities.

### Who Should Use This Documentation?

This documentation is designed for:

* **Developers**: Interested in deploying and interacting with the `TonRandcast` contract.
* **Blockchain Enthusiasts**: Exploring cross-chain solutions.
* **Contributors**: Looking to extend or improve the project.

### How to Use This Documentation

* **Getting Started**: Learn about prerequisites and setup instructions.
* **Technical Details**: Dive into the contract, messages, and API references.
* **Examples**: View practical examples of using the `TonRandcast` contract.
* **Troubleshooting**: Find solutions to common issues.

### Let’s Begin!

Use the navigation menu to explore the sections. Start with Introduction to get an overview of the project, or head directly to Setup Instructions to start deploying the contract.

We’re excited to have you onboard. Let’s build the future of cross-chain technology together!

***


---

# Agent Instructions: 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://tonrandcast.gitbook.io/tonrandcast/welcome-tonrandcast-docs.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.
