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 chat@ton4java · group · Tech