Skip to content

Commit

Permalink
addition on hidden accunts
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-fireblocks committed Apr 18, 2020
1 parent 8153273 commit f96d6ef
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions fireblocks_sdk/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,14 +243,30 @@ def cancel_transaction_by_id(self, txid):

return self._post_request(f"/v1/transactions/{txid}/cancel")

def create_vault_account(self, name):
def create_vault_account(self, name, hiddenOnUI = False):
"""Creates a new vault account.
Args:
name (str): A name for the new vault account
"""

return self._post_request("/v1/vault/accounts", {"name": name})
return self._post_request("/v1/vault/accounts", {"name": name, "hiddenOnUI": hiddenOnUI})

def hide_vault_account(self, vault_account_id):
"""Hides the vault account from being visible in the web console
Args:
vault_account_id (str): The vault account Id
"""
return self._post_request(f"/v1/vault/accounts/{vault_account_id}/hide")

def unhide_vault_account(self, vault_account_id):
"""Returns the vault account to being visible in the web console
Args:
vault_account_id (str): The vault account Id
"""
return self._post_request(f"/v1/vault/accounts/{vault_account_id}/unhide")

def create_vault_asset(self, vault_account_id, asset_id):
"""Creates a new asset within an existing vault account
Expand Down

0 comments on commit f96d6ef

Please sign in to comment.