> For the complete documentation index, see [llms.txt](https://docs.vechain.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.vechain.org/developer-resources/index-with-graph-node/index-with-openzeppelin/configure-contracts.md).

# Configure Contracts

The VeBetterDAO contract addresses are available on [docs.vebetterdao.org/smart-contracts](https://docs.vebetterdao.org/smart-contracts):

* B3TR: `0x5ef79995FE8a89e0812330E4378eB2660ceDe699`
* VOT3: `0x76Ca782B59C74d088C7D2Cce2f211BC00836c602`

To prevent the indexer from scanning every block before the deployment, VeChainStats can be used to determine the contract creation, which will speed up indexing significantly:

* [B3TR on VeChainStats](https://vechainstats.com/account/0x5ef79995fe8a89e0812330e4378eb2660cede699/) was deployed in Block #18,868,849
* [VOT3 on VeChainStats](https://vechainstats.com/account/0x76Ca782B59C74d088C7D2Cce2f211BC00836c602/) was deployed in Block #18,868,851

Create a configuration file `vbd-tokens.json` with this information:

```json
{
  "output": "vebetterdao/tokens.",
  "chain": "mainnet",
  "datasources": [
    {
      "address": "0x5ef79995FE8a89e0812330E4378eB2660ceDe699",
      "startBlock": 18868849,
      "module": ["erc20"]
    },
    {
      "address": "0x76Ca782B59C74d088C7D2Cce2f211BC00836c602",
      "startBlock": 18868851,
      "module": ["erc20"]
    }
  ]
}
```

```shell
npx graph-compiler \
  --config vbd-tokens.json \
  --include node_modules/@openzeppelin/subgraphs/src/datasources \
  --export-schema \
  --export-subgraph
```

The subgraph schema and configuration will be generated in the `vebetterdao/` directory.

* `vebetterdao/tokens.subgraph.yaml` contains the subgraph instructions on what and how to index data.
* `vebetterdao/tokens.schema.graphql` contains the database schema on how to store and connect the data.

Inspect both files to learn more about the basics of writing your own subgraphs.


---

# 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.vechain.org/developer-resources/index-with-graph-node/index-with-openzeppelin/configure-contracts.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.
