opentonapi

package module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2023 License: MIT Imports: 0 Imported by: 0

README

Description

Opentonapi provides a REST-ish API to work with the TON Blockchain.

How to run

It is possible to use the environment variables listed below to configure opentonapi:

Env variable Default value Comment
PORT 8081 A port number used to accept incoming http connections
LOG_LEVEL INFO Log level
LITE_SERVERS - A comma-separated list of TON lite servers to work with. Each server has the following format: ip:port:public-key.
Ex: "127.0.0.1:14395:6PGkPQSbyFp12esf1NqmDOaLoFA8i9+Mp5+cAx5wtTU="
METRICS_PORT 9010 A port number used to expose /metrics endpoint with prometheus metrics
ACCOUNTS - A comma-separated list of accounts to watch for

Advanced features like traces, NFTs, Jettons, etc require you to configure a set of accounts to watch for:

ACCOUNTS="comma-separated-list-of-raw-account-addresses" make run 

Docker

docker run -d -p8081:8081 tonkeeper/opentonapi

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
api command
examples
golang/sse module
internal
g
pkg
api
app
oas
Code generated by ogen, DO NOT EDIT.
Code generated by ogen, DO NOT EDIT.
tonapi module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL