Lab 9 — TON Testnet¶
Goal¶
Set up a TON testnet wallet, send TON, transfer a Jetton, and perform a STON.fi testnet swap.
Tasks¶
Pre-stage — Wallet setup¶
- Install Tonkeeper browser extension.
- Create a wallet and write the seed phrase on paper.
- Enable testnet mode.
- Get test TON from
@testgiver_ton_bot. - Confirm balance in Tonkeeper.
Task 1 — TON transfer¶
- Exchange testnet addresses with a partner.
- Send
0.01 TONwith a short comment. - Open the transaction on
testnet.tonviewer.com.
Task 2 — Jetton transfer¶
- Import the test Jetton using the master address provided by the instructor.
- Transfer a small amount to your partner.
- Locate sender and recipient Jetton Wallet contracts in Tonviewer.
Task 3 — STON.fi swap¶
Write a script that performs a TON → Jetton swap on STON.fi testnet.
Required packages:
mkdir ston-swap && cd ston-swap
npm init -y
npm install @ston-fi/sdk @ton/ton @ton/crypto
Use testnet contracts only. Do not use the mainnet api.ston.fi / StonApiClient for this task.
Deliverables¶
- TON transfer Tonviewer link.
- Jetton transfer Tonviewer link.
- Jetton master address.
- Sender Jetton Wallet address.
- Recipient Jetton Wallet address.
- Swap script as a single
.tsor.jsfile. - Tonviewer link to the swap transaction trace.