From fa769f60604ada9a55d49049fa7fdbaf19e8379a Mon Sep 17 00:00:00 2001 From: Nishant Ghodke <64554492+iamcrazycoder@users.noreply.github.com> Date: Fri, 13 Oct 2023 09:24:24 +0530 Subject: [PATCH] fix(sdk): bump taproot input size by 0.5B (#83) fix: bump taproot input size by 0.5B --- packages/sdk/src/fee/FeeEstimator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sdk/src/fee/FeeEstimator.ts b/packages/sdk/src/fee/FeeEstimator.ts index b15b697c..380aefcb 100644 --- a/packages/sdk/src/fee/FeeEstimator.ts +++ b/packages/sdk/src/fee/FeeEstimator.ts @@ -129,7 +129,7 @@ export default class FeeEstimator { private getBaseSizeByType(type: AddressFormats) { switch (type) { case "taproot": - return { input: 41.5, output: 43, txHeader: 10.5, witness: 66 } // witness size is different for non-default sigHash + return { input: 42, output: 43, txHeader: 10.5, witness: 66 } // witness size is different for non-default sigHash case "segwit": return { input: 41, output: 31, txHeader: 10.5, witness: 105 }