agentconnect.utils.payment_helper module¶
Payment utility functions for AgentConnect.
This module provides helper functions for setting up payment capabilities in agents.
- verify_payment_environment()¶
Verify that all required environment variables for payments are set.
- Return type:
- Returns:
True if environment is properly configured, False otherwise
- validate_cdp_environment()¶
Validate that the Coinbase Developer Platform environment is properly configured.
- Returns:
bool, message: str)
- Return type:
Tuple of (valid
- get_wallet_metadata(agent_id, wallet_data_dir=None)¶
Get wallet metadata for an agent if it exists.
- backup_wallet_data(agent_id, data_dir=None, backup_dir=None)¶
Create a backup of wallet data for an agent.
- Parameters:
- Return type:
- Returns:
Path to the backup file if successful, None otherwise