Skip to content

Commit

Permalink
Merge pull request #107 from fireblocks/COR-27430
Browse files Browse the repository at this point in the history
added get_max_bip44_index_used
  • Loading branch information
yarinvak authored Apr 16, 2023
2 parents 1f46898 + 0f86e65 commit cd05361
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions fireblocks_sdk/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -1469,6 +1469,17 @@ def get_max_spendable_amount(self, vault_account_id, asset_id, manual_signing=Fa

return self._get_request(url)

def get_max_bip44_index_used(self, vault_account_id, asset_id):
"""Get maximum BIP44 index used in deriving addresses or in change addresses.
Args:
vault_account_id (str): The vault account Id.
asset_id (str): Asset id.
"""
url = f"/v1/vault/accounts/{vault_account_id}/{asset_id}/max_bip44_index_used"

return self._get_request(url)

def set_auto_fuel(self, vault_account_id, auto_fuel, idempotency_key=None):
"""Sets autoFuel to true/false for a vault account
Expand Down

0 comments on commit cd05361

Please sign in to comment.