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 to get the latest block number?

What's the easiest way to get the number of the latest block on the TON blockchain?

This question was imported from Telegram Chat: https://t.me/tondev/47900

Posted 11 months ago
Votes Newest


Yes, you can find the latest Blocknumber in a series of API suppliers.

Or using the follow of code from orbs network

// copy paste the following snippet into your dapp client code
// to initialize your favorite TON API library and make blockchain queries

import { getHttpEndpoint } from "@orbs-network/ton-access";
import { TonClient } from "ton";

// get the decentralized RPC endpoint
const endpoint = await getHttpEndpoint(); 

// initialize ton library
const client = new TonClient({ endpoint });
Posted 11 months ago
1 Answer
11 months ago
11 months ago