Peg-in (BTC Deposit)
Last updated
Last updated
Peg-in is a process allowing users to transfer BTC from the Bitcoin blockchain to the TON blockchain. As a result of this transfer, users receive an equivalent amount of tgBTC on the TON blockchain. These tokens can be utilized within the TON network. The diagram visually illustrates the sequential stages of this process, as described below.
Simple user scenario:
Deposit Address Generation: The process begins with the TON Teleport BTC system generating a unique Bitcoin network address where the user must send their BTC. This address is uniquely linked to the recipient’s address in the TON blockchain, ensuring that funds are credited to the correct account. Additionally, the deposit address is protected by a refund mechanism in case of a failed deposit.
BTC Transfer: The user sends the specified amount of BTC to the generated address. This transaction is then recorded on the Bitcoin blockchain.
Block Confirmation: The transaction must be included in a block by Bitcoin miners. The appearance time of the transaction block can vary, typically taking from a few minutes to several hours, depending on network congestion and fee size.
Synchronization and Confirmation in TON Teleport BTC: TON Teleport BTC continuously syncs with the Bitcoin network’s state. Once the block containing the user’s transaction is recorded, the system waits for the necessary number of confirmations (standardly 6 blocks) to protect against potential reorganization of the Bitcoin network.
Processing in TON Teleport BTC: After the block is confirmed, the user transmits their transaction data to the TON network. Smart contracts on the TON blockchain verify the transaction for correctness and inclusion in the confirmed block.
Minting of tgBTC: If the verification is successful, the system mints tgBTC equivalent to the amount of BTC sent. These tokens are credited to the user’s address in the TON network.
Token Usage: The minted tokens are available for use in various decentralized financial operations within the TON ecosystem.
The Peg-in process in TON Teleport BTC is fully automated and does not require third-party intervention. Users carry no risk of human error, censorship, or fraud. All operations are strictly controlled by smart contracts, ensuring that users can be confident that their transactions will always be processed, and tgBTC will be minted to their accounts without the risk of loss or blockages.