# RAIRsync

{% hint style="info" %}
All of the configurations for RAIRsync are located in the RAIRnode env setup. Basically don't touch this repo unless you want to modify or extend it to other providers.&#x20;
{% endhint %}

Configurations for RAIRsync are located in environment variables as well as hardcoded into the database. By running the database install script, you can auto configure a working system. By default we specify block numbers to start syncing at 4/30/2024.&#x20;

## ENVS

In RAIRnode these [2 environment variables](https://docs.rairprotocol.org/rairprotocol/codebase/rairdapp/rairnode/backend-variables-library#long-term-sync) specify the main syncing settings.

```yaml
sync_contract_repeat_every = {minutes}
```

Type - Int

Sets time intervals for the syncing of smart contracts. Only for data that changes onchain. Time between end of sync task and next time it starts.

```yaml
sync_contract_task_interval = {minutes}
```

Type - Int

Sets time intervals for the syncing of smart contracts. Only for data that changes onchain. Time between start of one sync and the next. Waits between blockch

## Database

Specify which block number to begin syncing at by blockchain. This feature is currently hardcoded into the MongoDB. If you'd like to add API support for it please submit a PR!


---

# 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://docs.rairprotocol.org/rairprotocol/codebase/rairdapp/rairsync.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.
