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
Profile picture
Koala
Moderator
0 Questions, 14 Answers
  Active since 05 February 2023
  Last activity one year ago

Reputation

267 + 10 this November

Badges 2

Editor Enthusiast
3 Can TonKeeper connect to testnet?

Go to settings and click few times on tonkeeper logo, located in bottom, after that choose testnet instead of mainnet

one year ago
0 How to monitor a price of NFT?

Yes, you can use tonapi.io for that:

const nftAddress = 'EQBFSbR4087JZ3Em7HQ3FfPz5-_q6T1UGmQqQGAcPuiFdGJ-'
fetch(`https://tonapi.io/v1/nft/getItems?addresses=${nftAddress}`)
  .then((data) => {
    return data.json()
  })
  .then((res) => {
    const nft_item = res.nft_items[0]
    const price = nft_item.sale.price.value / 10 ** 9 // it is necessary to divide by 10^9, because the value initially given in nanoTON's
    console.log(`${price} ${nft_item.sal...
one year ago
3 How to raise a number to a power in FunC?

There is no such built-in function in func, which is why you have to implement it yourself. I would advise using binary exponentiation, because this solution can save gas for you

;; Unoptimized variant
int pow (int a, int n) {
    int i = 0;
    int value = a;
    while (i < n - 1) {
        a *= value;
        i += 1;
    }
    return a;
}

;; Optimized variant
(int) binpow (int n, int e) {
    if (e == 0) {
        return 1;
    }
    if (e == 1) {
        return...
one year ago
one year ago
1 What are the hardware/software requirements to develop for TON?

You don't need any "mandatory" equipment. In order to start developing for TON, it is enough to use https://github.com/ton-community/blueprint for your project. "Blueprint" will greatly simplify the building, testing of smart contracts and their deployment.

one year ago
one year ago
one year ago