@xlink-network/xlink-sdk
Version:
34 lines (31 loc) • 1.31 kB
TypeScript
import { ReselectSpendableUTXOsFn } from '../bitcoinUtils/prepareTransaction.js';
import { ChainId, TokenId, SDKNumber } from './types.js';
import { S as SDKGlobalContext } from '../types.internal-BwEnb5-y.js';
import '../bitcoinUtils/bitcoinHelpers.js';
import '@c4/btc-utils';
import '../bitcoinUtils/createTransaction.js';
import '@scure/btc-signer';
import '../utils/BigNumber.js';
import 'big.js';
import '../utils/typeHelpers.js';
import 'viem';
import '../evmUtils/evmContractAddresses.js';
import '../utils/types/knownIds.js';
interface EstimateBridgeTransactionFromBitcoinInput {
fromChain: ChainId;
toChain: ChainId;
fromToken: TokenId;
toToken: TokenId;
fromAddress: string;
fromAddressScriptPubKey: Uint8Array;
toAddress: string;
amount: SDKNumber;
networkFeeRate: bigint;
reselectSpendableUTXOs: ReselectSpendableUTXOsFn;
}
interface EstimateBridgeTransactionFromBitcoinOutput {
fee: SDKNumber;
estimatedVSize: SDKNumber;
}
declare function estimateBridgeTransactionFromBitcoin(ctx: SDKGlobalContext, info: EstimateBridgeTransactionFromBitcoinInput): Promise<EstimateBridgeTransactionFromBitcoinOutput>;
export { type EstimateBridgeTransactionFromBitcoinInput, type EstimateBridgeTransactionFromBitcoinOutput, estimateBridgeTransactionFromBitcoin };