@swapkit/toolbox-utxo

Installation

<pnpm|bun> add @swapkit/toolbox-utxo

Usage

import { Chain, type UTXOChain } from '@swapkit/helpers'
import { getToolboxByChain } from '@swapkit/toolbox-utxo'

function getToolbox<T extends UTXOChain>(chain: T) {
  const toolbox = getToolboxByChain(chain)
  
  return toolbox({ apiKey: blockchairApiKey, rpcUrl })
}

const btcToolbox = getToolbox(Chain.Bitcoin)
const dogeToolbox = getToolbox(Chain.Dogecoin)

Last updated