File tree Expand file tree Collapse file tree
hummingbot_api_client/routers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,4 +37,42 @@ async def add_credential(
3737
3838 async def delete_credential (self , account_name : str , connector_name : str ) -> Dict [str , Any ]:
3939 """Delete connector credentials for an account."""
40- return await self ._post (f"/accounts/delete-credential/{ account_name } /{ connector_name } " )
40+ return await self ._post (f"/accounts/delete-credential/{ account_name } /{ connector_name } " )
41+
42+ # Gateway Wallet Management
43+ async def add_gateway_wallet (
44+ self ,
45+ chain : str ,
46+ private_key : str
47+ ) -> Dict [str , Any ]:
48+ """
49+ Add a wallet to Gateway. Gateway handles encryption and storage internally.
50+
51+ Args:
52+ chain: Blockchain chain (e.g., 'solana', 'ethereum')
53+ private_key: Private key for the wallet
54+
55+ Returns:
56+ Wallet information from Gateway including address
57+ """
58+ return await self ._post (
59+ "/gateway/add-wallet" ,
60+ json = {"chain" : chain , "private_key" : private_key }
61+ )
62+
63+ async def remove_gateway_wallet (
64+ self ,
65+ chain : str ,
66+ address : str
67+ ) -> Dict [str , Any ]:
68+ """
69+ Remove a wallet from Gateway.
70+
71+ Args:
72+ chain: Blockchain chain (e.g., 'solana', 'ethereum')
73+ address: Wallet address to remove
74+
75+ Returns:
76+ Success message
77+ """
78+ return await self ._delete (f"/gateway/{ chain } /{ address } " )
You can’t perform that action at this time.
0 commit comments