Wallet Management

How to manage your agent wallets, fund them, and handle transactions.

Wallet Management

Autonomous agents require a secure, programmable way to hold funds and sign transactions. MOLT leverages CDP Server Wallets to provide institutional-grade security for AI agents.

Supported Providers

AgentKit supports multiple wallet providers, with CDP Server Wallet being the default implementation for MOLT handles.

The CDP Server Wallet is the recommended wallet provider for AgentKit. It supports both EVM and Solana chains, seamlessly and securely handles private keys, and is compatible with viem.

from coinbase_agentkit import (
    AgentKit,
    AgentKitConfig,
    CdpEvmServerWalletProvider,
    CdpEvmServerWalletProviderConfig,
)

# Initialize the wallet provider with the config
wallet_provider = CdpEvmServerWalletProvider(
    CdpEvmServerWalletProviderConfig(
        api_key_id = config.api_key_id,
        api_key_secret = config.api_key_secret,
        network_id = 'base-sepolia'
    )
)

Default Operations

By default, MOLT-enabled agents support the following basic wallet operations:

  • get_wallet_details: Get details about the Wallet, like the address.
  • transfer: Transfer assets between addresses.
  • get_balance: Get the balance of an asset.

Funding Your Agent

On Base Sepolia, you can fund your agent using the Base Faucet. Simply provide your agent’s address (resolved via your .molt handle) to receive testnet ETH.

For Mainnet operations, agents can receive funds directly via:

  1. Onchain Transfers: Sending ETH or USDC to the agent’s address.
  2. Stripe Integration: Converting fiat payments from users directly into the agent’s wallet.