@trezor/connect
Version:
High-level javascript interface for Trezor hardware wallet.
26 lines • 1.13 kB
TypeScript
import type { BlockchainLinkParams, BlockchainLinkResponse } from '@trezor/blockchain-link';
import type { FeeInfo, FeeLevel } from '../fees';
import type { CommonParamsWithCoin, Response } from '../params';
export interface BlockchainEstimateFee {
request?: BlockchainLinkParams<'estimateFee'> & {
feeLevels?: undefined;
};
}
export interface BlockchainEstimateFeeLevel {
request: BlockchainLinkParams<'estimateFee'> & {
feeLevels: 'preloaded' | 'smart';
};
}
interface EstimatedFee extends Omit<FeeInfo, 'dustLimit'> {
dustLimit?: number;
}
export interface BlockchainEstimatedFee extends EstimatedFee {
levels: BlockchainLinkResponse<'estimateFee'>;
}
export interface BlockchainEstimatedFeeLevel extends EstimatedFee {
levels: FeeLevel[];
}
export declare function blockchainEstimateFee(params: CommonParamsWithCoin & BlockchainEstimateFee): Response<BlockchainEstimatedFee>;
export declare function blockchainEstimateFee(params: CommonParamsWithCoin & BlockchainEstimateFeeLevel): Response<BlockchainEstimatedFeeLevel>;
export {};
//# sourceMappingURL=blockchainEstimateFee.d.ts.map