Skip to main content
  • Demos
  • BTC Demo
On this page This is the demo for the inbound and outbound transfer flow in the Int3face for BTC tokens. Requirements
  1. Int3face node
  2. Int3face observer (configured for the BTC regtest)
  3. BTC regtest node
We have everything deployed and ready in the Int3face testnet. Request Int3face team to get access to the testnet environment. Current Bitcoin vault address: bcrt1qjrcwv9848uvvcdzvyplmgms6dr62zp6qz5f5ch

Inbound Transfer

We will use our own BTC validator funds.
  1. We need an int3 address to send funds to
We can generate new address by int3faced keys add "$your_key_name". new_key We will use the address int31nx72wqe9js9n0tvk9c2w4zwgwv6kecp0n4zllt
  1. Lets verify that this address doesn’t have DOGE tokens in the Int3face
init_balance
  1. Select an UTXO to spend
list_unspent If you don’t see any UTXO available, mine a block to receive the rewards bitcoin-cli -generate 1, and run listunspent command again.
  1. Build raw transaction from the UTXO you selected
Vins
  • Take the txid and vout from the UTXO you’re going to spend
Vouts
  • Add the DOGE vault address and the amount to send
  • Add the change address to get remaining tokens back (to get address of your current node run bitcoin-cli listreceivedbyaddress 0 true)
  • Leave a small amount of tokens to pay the fee (0.1 should be enough)
  • Add data entry with the hex encoded recipient address
raw_transaction
  1. We can verify that the transaction is correct
decoded_raw_transaction
  1. Sign the transaction
signed_tx
  1. Broadcast signed transaction to the BTC
send_btc_transaction
  1. Generate a block to include our transaction in the chain
Now the transaction should be observed by the Observer and sent to the Int3face chain.
  1. Check your balance on the Int3face chain.
inbound_balance Now, we can see BTC tokens in our wallet.

Outbound Transfer

Lets send some of the tokens back from Int3face to BTC.
  1. Generate new BTC address
  1. Request an outbound transfer from the bridge module
outbound_transaction
  1. We can check our balance again to see that DOGE tokens in Int3face were burt
  1. Generate a block in BTC to include transaction from the vault
  1. Check DOGE balance of the address we created before
outbound_btc_balance Now, we can see BTC tokens in our wallet.