From d6a1835a10f13639eca7ba4957dfcc9b19cfc95c Mon Sep 17 00:00:00 2001 From: Yuval Niezni Date: Thu, 15 Aug 2024 12:17:29 +0300 Subject: [PATCH 1/2] add max tx fee param --- fireblocks_sdk/sdk.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fireblocks_sdk/sdk.py b/fireblocks_sdk/sdk.py index 99bc084..35e2655 100644 --- a/fireblocks_sdk/sdk.py +++ b/fireblocks_sdk/sdk.py @@ -1474,6 +1474,7 @@ def create_transaction( fee_level=None, fail_on_low_fee=None, max_fee=None, + max_tx_fee=None, gas_limit=None, idempotency_key=None, external_tx_id=None, @@ -1543,6 +1544,9 @@ def create_transaction( if max_fee: body["maxFee"] = max_fee + if max_tx_fee: + body["maxTxFee"] = max_tx_fee + if fail_on_low_fee: body["failOnLowFee"] = fail_on_low_fee From e4cf8cb627ba0005a154e032f6aca333ac0792d2 Mon Sep 17 00:00:00 2001 From: Yuval Niezni Date: Sun, 25 Aug 2024 12:43:16 +0300 Subject: [PATCH 2/2] rename to maxTotalFee --- fireblocks_sdk/sdk.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fireblocks_sdk/sdk.py b/fireblocks_sdk/sdk.py index 35e2655..e4d75db 100644 --- a/fireblocks_sdk/sdk.py +++ b/fireblocks_sdk/sdk.py @@ -1474,7 +1474,7 @@ def create_transaction( fee_level=None, fail_on_low_fee=None, max_fee=None, - max_tx_fee=None, + max_total_fee=None, gas_limit=None, idempotency_key=None, external_tx_id=None, @@ -1544,8 +1544,8 @@ def create_transaction( if max_fee: body["maxFee"] = max_fee - if max_tx_fee: - body["maxTxFee"] = max_tx_fee + if max_total_fee: + body["maxTotalFee"] = max_total_fee if fail_on_low_fee: body["failOnLowFee"] = fail_on_low_fee