NoEstimateAvailableError
Usage
import { fetchFeeEstimate, NoEstimateAvailableError } from '@stacks/transactions';
try {
const fee = await fetchFeeEstimate(transaction);
} catch (error) {
if (error instanceof NoEstimateAvailableError) {
console.log('No fee estimate available — set the fee manually');
}
}Definition
class NoEstimateAvailableError extends Error {
constructor(message?: string);
}Notes
Last updated
Was this helpful?