Quickstart
Installation
yarn add @keep-network/tbtc-v2.tsnpm i @keep-network/tbtc-v2.tsyarn add ethers@legacy-v5npm i ethers@legacy-v5The SDK depends on ethers v5. Proper support for newer ethers versions is
not guaranteed right now.Usage
// Import SDK entrypoint component.
import { TBTC } from "@keep-network/tbtc-v2.ts"
// Create an instance of ethers signer.
const signer = (...)
// Initialize the SDK for Ethereum only.
const sdk = await TBTC.initializeMainnet(signer)
// Access SDK features.
sdk.deposits.(...)
sdk.redemptions.(...)
// Access tBTC smart contracts directly.
sdk.tbtcContracts.(...)
// Access Bitcoin client directly.
sdk.bitcoinClient.(...)Crosschain
Last updated
Was this helpful?