Web appOpen in Telegram

ThreadIs there sample code for transferring money here?

2 messages · –
大
Is there sample code for transferring money here?
  1. T
    Link
    click to show
    A regular TON transfer using the TON Connect JS SDKs can be executed with sample code that includes defining a transaction object with validUntil and messages fields, and then calling tonConnectUI.sendTransaction(transaction). The messages array specifies the recipient address and the amount in nanotons. Here's an example: import { useTonConnectUI } from '@tonconnect/ui-react'; export const Settings = () => { const [tonConnectUI] = useTonConnectUI(); const transaction = { validUntil: Math.floor(Date.now() / 1000) + 300, messages: [ { address: tonConnectUI.account.address, amount: '200000000' // 0.2 TON (in nanotons) }, { // Bounceable address address: 'EQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAM9c', amount: '100000000' }, { // Non-bounceable address address: 'UQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJKZ', amount: '100000000' } ] }; return ( <div> <button onClick={() => tonConnectUI.sendTransaction(transaction)}> Send transaction </button> </div> ); }; Source: TON transfer | The Open Network
TTON Java development chatTON Java development chat@ton4java · group · Tech
24members18messages in the index
Venue feed Open in Telegram

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog · Search · How we count