coinbase_agentkit.action_providers.wallet package¶
Submodules¶
coinbase_agentkit.action_providers.wallet.schemas module¶
Schemas for Wallet action provider.
- class coinbase_agentkit.action_providers.wallet.schemas.GetBalanceSchema(**data)¶
Bases:
BaseModel
Input schema for getting native currency balance.
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class coinbase_agentkit.action_providers.wallet.schemas.GetWalletDetailsSchema(**data)¶
Bases:
BaseModel
Input schema for getting wallet details.
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class coinbase_agentkit.action_providers.wallet.schemas.NativeTransferSchema(**data)¶
Bases:
BaseModel
Input schema for native asset transfer.
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
to:
str
¶
- classmethod validate_value(v)¶
Validate the transfer value.
- Return type:
str
-
value:
str
¶
coinbase_agentkit.action_providers.wallet.validators module¶
Validators for Wallet action provider schemas.
- coinbase_agentkit.action_providers.wallet.validators.positive_decimal_validator(value)¶
Validate positive decimal number format.
- Return type:
str
coinbase_agentkit.action_providers.wallet.wallet_action_provider module¶
Wallet action provider for basic wallet operations.
- class coinbase_agentkit.action_providers.wallet.wallet_action_provider.WalletActionProvider¶
Bases:
ActionProvider
[WalletProvider
]Provides actions for interacting with wallet functionality.
- get_balance(wallet_provider, args)¶
Get the native currency balance for the connected wallet.
- Parameters:
wallet_provider (WalletProvider) – The wallet provider to get the balance from.
args (dict[str, Any]) – The input arguments.
- Returns:
A message containing the wallet address and balance information.
- Return type:
str
- get_wallet_details(wallet_provider, args)¶
Get details about the connected wallet.
- Parameters:
wallet_provider (WalletProvider) – The wallet provider to get details from.
args (dict[str, Any]) – The input arguments.
- Returns:
A formatted string containing wallet details and network information.
- Return type:
str
- native_transfer(wallet_provider, args)¶
Transfer native tokens from the connected wallet to a destination address.
- Parameters:
wallet_provider (WalletProvider) – The wallet provider to transfer tokens from.
args (dict[str, Any]) – Arguments containing destination address and transfer amount.
- Returns:
A message containing the transfer details and transaction hash.
- Return type:
str
- coinbase_agentkit.action_providers.wallet.wallet_action_provider.wallet_action_provider()¶
Create a new WalletActionProvider instance.
- Returns:
A new wallet action provider instance.
- Return type:
Module contents¶
Wallet action provider for basic wallet operations.