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 connect to a website with TON?

Is there a way that I can use a TON wallet to log in to a website? Specifically, I am looking at the functionality that is already present on getgems.io.


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

Votes Newest

Answers


That website has a good example of how to connect to multiple types of TON wallets, unfortunately the frontend is not open source!

By login, I assume you mean connecting to the site, not necessarily having a backend account system like you would in Web2. That is a different question that can be answered in a different way.

What you're looking for is likely TON Connect! They provide ways to connect wallets to a frontend through their SDK. You can connect with one of their SDK packages:

import TonConnectUI from '@tonconnect/ui'

const tonConnectUI = new TonConnectUI({
    manifestUrl: 'https://<YOUR_APP_URL>/tonconnect-manifest.json',
    buttonRootId: '<YOUR_CONNECT_BUTTON_ANCHOR_ID>'
});

// Try to connect here
const connectedWallet = await tonConnectUI.connectWallet();

Learn more about how to use them with their SDK and documentation.

  
  
Posted one year ago
Jeremy
404 × 5 Administrator
5K Views
1 Answer
one year ago
one year ago
Tags