A simple lite-server that can be used for block streaming and serving account states.
# Install.
git clone https://github.com/broxus/tycho-tonapi.git
cd tycho-tonapi
cargo install --path . --locked
# Generate and edit the default config.
tycho-tonapi run --init-config config.json
# Download the latest global config (e.g. for tycho testnet).
wget -O global-config.json https://testnet.tychoprotocol.com/global-config.json
# Start the node.
tycho-tonapi run \
--config config.json \
--global-config global-config.json \
--keys keys.jsonBy default the node will listen on the following addresses:
0.0.0.0:30000/UDPfor the node itself (.local_ipand.portfields in the config);127.0.0.1:10000/TCPfor prometheus exporter (.metrics.listen_addrfield in the config);127.0.0.1:50051/TCPfor the gRPC server (.grpc.listen_addrfield in the config).
We welcome contributions to the project! If you notice any issues or errors, feel free to open an issue or submit a pull request.
Licensed under MIT license (LICENSE or https://opensource.org/licenses/MIT).