Skip to content
Version 0.0.1 (Testnet)

Adding networks

Datai Networks currently supports a few networks. The starting guide contains only one network as an example, but you can add nearly any EVM network to your graph-node configuration.

To add a new network you need to add a config line to your graph-node/config configuration file. The configuration file is located in the graph-node directory and is named config.toml.

Suppose you’d like to add Base network to your local node to test a projection you’ve implemented. You can do so by adding the following line to your config.toml file:

graph-node/config/config.toml
...
[chains.base];
shard = "primary";
provider = [
{
label = "base",
url = "${BASE_PROVIDER}",
features = ["archive", "traces"],
},
];
...

Finally, you need to add the BASE_PROVIDER archive node url to your .env file.

BASE_PROVIDER=[your-base-archive-node-url]