Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
How do I run my own HTTP API for TON?

I would like to run my own JSON-RPC HTTP API for my TON application. How do I run it so that it's similar to the TON center one?


This question was imported from Telegram Chat: https://t.me/tondev_eng/10201

Posted one year ago
Votes Newest


There are two ways. The first, currently experimental, allows you to run locally. Don't do this for production:

pip install ton-http-api
source ~/.bash_profile

The second is through Docker:

mkdir private
curl -sL https://ton-blockchain.github.io/global.config.json > private/mainnet.json
curl -sL https://ton-blockchain.github.io/testnet-global.config.json > private/testnet.json
docker-compose build
docker-compose up -d

You can see the entirety of the instructions on the TonCenter GitHub repository.

Posted one year ago
384 × 5 Administrator
1 Answer
one year ago
one year ago