Skip to content

Commit

Permalink
feat: Export Agentic Wallet Default Address ID (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
John-peterson-coinbase authored Nov 7, 2024
1 parent e738a2e commit 63eb7cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cdp-langchain/cdp_langchain/utils/cdp_agentkit_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ def export_wallet(self) -> dict[str, str]:
"""
wallet_data_dict = self.wallet.export_data().to_dict()

wallet_data_dict["default_address_id"] = self.wallet.default_address.address_id

return json.dumps(wallet_data_dict)

def uniswap_v3_create_pool_wrapper(self, token_a: str, token_b: str, fee: str) -> str:
Expand Down

0 comments on commit 63eb7cc

Please sign in to comment.