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
Answered
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?

https://toncenter.com/api/v2/#/


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

  
  
Posted 10 months ago
Votes Newest

Answers


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
ton-http-api

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
./configure.py
docker-compose build
docker-compose up -d

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

  
  
Posted 10 months ago
Jeremy
384 × 5 Administrator
5K Views
1 Answer
10 months ago
10 months ago
Tags