# 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!
