Skip to main content
  • Demos
  • TON demo
On this page

Requirements

  1. Access to Int3face node on int3-test-2
  2. TON testnet wallet
  3. TON-bridge repository
Current bridge address on TON is EQCgQY3KSzPEh-uAuERDX2rh5pea2B5TedRdoExsIU7m_IZ4

TON testnet wallet

  1. Create a wallet on TON testnet - https://wallet.ton.org/?testnet=true
  2. Request some tokens from the faucet - https://t.me/testgiver_ton_bot
  3. Save your wallet mnemonic

TON-bridge repository

This repository contains cli tool that allows to communicate with the bridge contract
  1. Install Node.js v18
  2. ts-node (install with npm install ts-node)
  3. Essential ton packages (install with npm install @ton/ton @ton/crypto @ton/core)
  4. Clone the repository git clone https://github.com/Int3facechain/ton-bridge.git

Inbound Transfer

You should have at least 1.2 TON in your wallet
  1. Create new wallet in Int3face or use existing wallet
We will use address int3104s3nrdvh2d33p53gyzy5sczcep2dkmagpvhrk
  1. Lets check current balance of our wallet
init_balance
  1. Go to the ton-bridge folder
  2. Set env variables with the TON wallet mnemonic and version
  1. Send deposit transaction to the TON bridge contract
  • Select depositInt3faceBridge
  • Select testnet
  • Select Mnemonic
  • Enter bridge address EQCgQY3KSzPEh-uAuERDX2rh5pea2B5TedRdoExsIU7m_IZ4
  • Enter Int3face destination address int3104s3nrdvh2d33p53gyzy5sczcep2dkmagpvhrk
  • Wait for deposit completion
deposit_completed Now the transaction should be observed by the Observer and sent to the Int3face chain.
  1. Check your balance on the Int3face
We should see that TON tokens were minted to our wallet.
updated_balance

Outbound Transfer

Lets send some TON tokens back to the TON chain. We will use EQBnAShkO0i9XeRgGwf84NhGbb3_onAZXnUYo5MzaBh07_z8 address as a recipient
  1. Execute outbound transfer request for the x/bridge
execute_outbound
  1. Lets check that our tx is successful in the Int3face
outbound_result
  1. We can verify the transfer in the TON explorer
recipient_balance We should see an incoming transfer there