Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cor 33565 #135

Closed
wants to merge 7 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions fireblocks_sdk/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -2100,6 +2100,29 @@ def get_max_bip44_index_used(self, vault_account_id, asset_id):

return self._get_request(url)

def get_paginated_addresses(self, vault_account_id, asset_id, limit=500, before=None, after=None):
"""Gets a paginated response of the addresses for a given vault account and asset

Args:
vault_account_id (str): The vault account Id
asset_id (str): the asset Id
limit(number, optional): limit of addresses per paging request
before (str, optional): curser for the previous paging
after (str, optional): curser for the next paging

"""
path = f"/v1/vault/accounts/{vault_account_id}/{asset_id}/addresses_paginated"
params = {}
if limit:
params["limit"] = limit
if before:
params["before"] = before
if after:
params["after"] = after
if params:
path = path + "?" + urllib.parse.urlencode(params)
return self._get_request(path)

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

Expand Down
Loading