Interface EstimateBridgeTransactionFromBRC20Input

interface EstimateBridgeTransactionFromBRC20Input {
    fromAddress: string;
    fromAddressScriptPubKey: Uint8Array;
    fromChain: `${string} (BroSDK ChainId)`;
    fromToken: `${string} (BroSDK TokenId)`;
    inputInscriptionUTXO: UTXOSpendable;
    networkFeeChangeAddress: string;
    networkFeeChangeAddressScriptPubKey: Uint8Array;
    networkFeeRate: bigint;
    reselectSpendableNetworkFeeUTXOs: ReselectSpendableUTXOsFn_Public;
    swapRoute?: SwapRoute_WithMinimumAmountsOut;
    toAddress: string;
    toAddressScriptPubKey?: Uint8Array<ArrayBufferLike>;
    toChain: `${string} (BroSDK ChainId)`;
    toToken: `${string} (BroSDK TokenId)`;
}

Properties

fromAddress: string
fromAddressScriptPubKey: Uint8Array
fromChain: `${string} (BroSDK ChainId)`
fromToken: `${string} (BroSDK TokenId)`
inputInscriptionUTXO: UTXOSpendable
networkFeeChangeAddress: string
networkFeeChangeAddressScriptPubKey: Uint8Array
networkFeeRate: bigint
reselectSpendableNetworkFeeUTXOs: ReselectSpendableUTXOsFn_Public
toAddress: string
toAddressScriptPubKey?: Uint8Array<ArrayBufferLike>

Required when toChain is one of bitcoin chains

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