Deposit and mint
Initialize the SDK
Initiate the deposit
import { TBTC } from "@keep-network/tbtc-v2.ts"
// Initialized SDK.
const sdk: TBTC
// Set the P2WPKH/P2PKH Bitcoin recovery address. It can be used to recover
// deposited BTC in case something exceptional happens.
const bitcoinRecoveryAddress: string = "..."
// Initiate the deposit.
const deposit = await sdk.deposits.initiateDeposit(bitcoinRecoveryAddress)
// Take the Bitcoin deposit address. BTC must be sent here.
const bitcoinDepositAddress = await deposit.getBitcoinAddress()Make the Bitcoin deposit transaction
Initiate minting
Last updated
Was this helpful?