Transactions

Send transactions on TON using OneKey

Learn how to send transactions on TON.


Send Transaction

Send TON using the send method with sendTransaction:

const result = await provider.send({
  method: 'sendTransaction',
  id: Date.now().toString(),
  params: [
    JSON.stringify({
      valid_until: Math.floor(Date.now() / 1000) + 600, // 10 min validity
      messages: [
        {
          address: '0:1234...', // Recipient address (raw format)
          amount: '1000000000', // Amount in nanotons (1 TON = 10^9 nanotons)
        }
      ]
    })
  ]
})

if ('result' in result) {
  console.log('Transaction BOC:', result.result)
} else {
  console.error('Transaction failed:', result.error.message)
}

Send Multiple Messages

TON supports up to 4 messages per transaction:


Send with Payload

Include a payload for smart contract interactions:


Send with StateInit

Deploy a contract or initialize state:


Send Transaction with SDK


Address Formats

TON uses different address formats:

Last updated

Was this helpful?