You can configure environment variables for docker compose.
| variable name | description | format | extra information |
|---|---|---|---|
LTO_API_KEY |
API key to protect restricted functions (random secret) | string | This can be any string |
LTO_NETWORK |
Which network to attach the node to | MAINNET, TESTNET |
Default is set to MAINNET |
LTO_WALLET_SEED |
The seed of your wallet. Your wallet needs to have sufficient funds to anchor the transactions. | string | Can also be set as LTO_WALLET_SEED_BASE58, which will take a base58 value |
LTO_NODE_NAME |
Node name used in the handshake when connecting to other nodes | string |
| variable name | description | format | extra information |
|---|---|---|---|
ANCHOR_INDEXING |
Indexing of anchor transactions | none, trust, all |
Defaults to 'trust' |
ASSOCIATION_INDEXING |
Indexing of association transactions | none, trust, all |
Defaults to 'none' |
AUTH_TOKEN |
Authentication token | string | |
NODE_API_KEY |
Node API key | string | Same value as LTO_API_KEY of the public node |
The indexing configurations have the values of none, trust or all.
none: no transactions will be indexedtrust: only transactions from your node, or someone in your configured trust network will be indexed (see configuring a trust network)all: all transactions will be indexed
By default, the anchor node will only index anchor transactions of your own node.
Note
The indexer is configured to run as an anchoring service, but you can customize to your liking. You can see the GitHub page for more on how to configure the indexer.
By default, the latest tag is used for all docker images. You can use an alternative tag for the LTO public node by setting LTO_NODE_VERSION and LTO_INDEXER_VERSION for the LTO indexer.
Data is stored on-disk using LevelDB. You can store the data using Redis. Use the redis profile to start a Redis Graph instance and set the storage type variable:
export STORAGE_TYPE=redis
docker compose --profile redis up
Alternatively, you can run a Redis instance outside of the docker compose cluster and connect to that with the REDIS_URL environment variable. Redis Graph is needed to index associations as a graph.
docker-compose up
Docker compose is configured to run the node on a local machine on port 80. You can set the PORT environment` variable to use a different port.
Use lto-anchor-node.ecs.yaml to run the index node using AWS Cloudformation.
If you wish to start testing with our testnet. Please create a wallet on: https://wallet.testnet.lto.network
Request testnet tokens via the LTO Tech Lab Telegram group.
To view all the transactions on the testnet you can check out our explorer on: https://explorer.testnet.lto.network
For mainnet you will have to buy tokens. You can then use these tokens by sending them to the wallet you will link to your node.
The wallet can be found here: https://wallet.lto.network
The explorer can be found here: https://explorer.lto.network
