diff --git a/fireblocks_sdk/sdk.py b/fireblocks_sdk/sdk.py index b0288f9..36cb68d 100644 --- a/fireblocks_sdk/sdk.py +++ b/fireblocks_sdk/sdk.py @@ -2880,11 +2880,14 @@ def get_linked_token(self, id: str): def get_linked_tokens_count(self): return self._get_request(f"/v1/tokenization/tokens/count") - def link_token(self, type: TokenLinkType, ref_id: str): + def link_token(self, type: TokenLinkType, ref_id: str, display_name: Optional[str] = None): body = { "type": type, - "refId": ref_id + "refId": ref_id, } + if display_name: + body["displayName"] = display_name + return self._post_request(f"/v1/tokenization/tokens/link", body) def unlink_token(self, id: str): diff --git a/fireblocks_sdk/tokenization_api_types.py b/fireblocks_sdk/tokenization_api_types.py index b6593aa..2baa0c8 100644 --- a/fireblocks_sdk/tokenization_api_types.py +++ b/fireblocks_sdk/tokenization_api_types.py @@ -67,12 +67,14 @@ def __init__( vault_account_id: str, create_params: Union[EVMTokenCreateParams, StellarRippleCreateParams], asset_id: Optional[str] = None, - blockchain_id: Optional[str] = None + blockchain_id: Optional[str] = None, + display_name: Optional[str] = None, ): self.vault_account_id = vault_account_id self.create_params = create_params self.asset_id = asset_id self.blockchain_id = blockchain_id + self.display_name = display_name class ContractDeployRequest(BaseDictClass):