Skip to content

Commit

Permalink
Merge pull request #85 from maayank/add-priority-fee
Browse files Browse the repository at this point in the history
Expose the priority fee parameter
  • Loading branch information
yarinvak authored Sep 6, 2022
2 parents 894c1f2 + 35cb7dc commit 776e2fb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion fireblocks_sdk/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ def create_transaction(self, asset_id=None, amount=None, source=None, destinatio
wait_for_status=False, tx_type=TRANSACTION_TRANSFER, note=None, network_fee=None,
customer_ref_id=None, replace_tx_by_hash=None, extra_parameters=None, destinations=None,
fee_level=None, fail_on_low_fee=None, max_fee=None, gas_limit=None, idempotency_key=None,
external_tx_id=None, treat_as_gross_amount=None, force_sweep=None):
external_tx_id=None, treat_as_gross_amount=None, force_sweep=None, priority_fee=None):
"""Creates a new transaction
Args:
Expand All @@ -822,6 +822,7 @@ def create_transaction(self, asset_id=None, amount=None, source=None, destinatio
external_tx_id (str, optional): A unique key for transaction provided externally
treat_as_gross_amount (bool, optional): Determine if amount should be treated as gross or net
force_sweep (bool, optional): Determine if transaction should be treated as a forced sweep
priority_fee (number, optional): The priority fee of Ethereum transaction according to EIP-1559
"""

if tx_type not in TRANSACTION_TYPES:
Expand Down Expand Up @@ -903,6 +904,9 @@ def create_transaction(self, asset_id=None, amount=None, source=None, destinatio
if force_sweep:
body["forceSweep"] = force_sweep

if priority_fee:
body["priorityFee"] = priority_fee

return self._post_request("/v1/transactions", body, idempotency_key)

def delete_contract_wallet(self, wallet_id):
Expand Down

0 comments on commit 776e2fb

Please sign in to comment.