Interface EstimateBridgeTransactionFromBitcoinInput

interface EstimateBridgeTransactionFromBitcoinInput {
    amount: `${string} (BroSDK number)`;
    extraOutputs?: { address: BitcoinAddress; satsAmount: bigint }[];
    fromAddress: string;
    fromAddressScriptPubKey: Uint8Array;
    fromChain: `${string} (BroSDK ChainId)`;
    fromToken: `${string} (BroSDK TokenId)`;
    networkFeeRate: bigint;
    reselectSpendableUTXOs: ReselectSpendableUTXOsFn_Public;
    swapRoute?:
        | SwapRouteViaALEX_WithMinimumAmountsOut
        | SwapRouteViaEVMDexAggregator_WithMinimumAmountsOut;
    toAddress: string;
    toAddressScriptPubKey?: Uint8Array<ArrayBufferLike>;
    toChain: `${string} (BroSDK ChainId)`;
    toToken: `${string} (BroSDK TokenId)`;
}

Properties

amount: `${string} (BroSDK number)`
extraOutputs?: { address: BitcoinAddress; satsAmount: bigint }[]
fromAddress: string
fromAddressScriptPubKey: Uint8Array
fromChain: `${string} (BroSDK ChainId)`
fromToken: `${string} (BroSDK TokenId)`
networkFeeRate: bigint
reselectSpendableUTXOs: ReselectSpendableUTXOsFn_Public
toAddress: string
toAddressScriptPubKey?: Uint8Array<ArrayBufferLike>

Required when toChain is one of bitcoin chains

toChain: `${string} (BroSDK ChainId)`
toToken: `${string} (BroSDK TokenId)`