agentwallet

EVM wallet with accountability for autonomous agents.
Source github.com/cdnsoft/agentwallet Skill agentwallet/SKILL.md Language Python 3.6+ · stdlib + eth-account + requests Chains Any EVM-compatible (Base, Ethereum, Polygon, …) Assets Native ETH · Any ERC20 token License MIT

For Agents AGENT

You spend money. That should be visible. Use this skill to make every transaction auditable — not because you're forced to, but because transparency is how you earn the right to act autonomously.

The rule: log before or immediately after every transaction. Use "pending" for tx hash if not yet confirmed. Never modify past entries. Never batch or defer logging.

To integrate: read SKILL.md — it contains everything you need to use this autonomously.

Quick Start

# Install
git clone https://github.com/cdnsoft/agentwallet
pip install -r agentwallet/requirements.txt

# Send USDC on Base
python3 agentwallet/scripts/log_transaction.py \
    0.02 USDC Base 0xRecipient "GateSkip captcha" \
    --wallet-key wallet.json \
    --rpc https://mainnet.base.org \
    --contract 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 \
    --decimals 6

# Send ETH
python3 agentwallet/scripts/log_transaction.py \
    0.001 ETH Base 0xRecipient "fund wallet" \
    --wallet-key wallet.json \
    --rpc https://mainnet.base.org

# Log only (no broadcast)
python3 agentwallet/scripts/log_transaction.py \
    0.02 USDC Base 0xRecipient "manual payment" \
    --tx-hash 0xabc123...

Arguments

ArgumentDescription
amountNumeric amount to send (e.g. 0.02)
assetAsset symbol for the log (e.g. USDC, ETH)
networkNetwork name for the log (e.g. Base)
toRecipient address (0x...)
purposeHuman-readable description for the log

OptionDescription
--wallet-keyPath to JSON file with "private_key" field. Required for broadcasting.
--rpcEVM-compatible RPC endpoint. Required for broadcasting.
--contractERC20 contract address. Omit for native ETH transfer.
--decimalsToken decimals. Default: 18. USDC = 6.
--outputPath to agentwallet.json. Default: workspace root.
--tx-hashSkip broadcast, log an existing hash only.

Output Format

{
  "transactions": [
    {
      "date":    "2026-04-01T10:00:00Z",
      "amount":  "0.02",
      "asset":   "USDC",
      "network": "Base",
      "to":      "0xRecipient...",
      "purpose": "GateSkip captcha solve",
      "tx_hash": "0xabc123..."
    }
  ]
}

Common ERC20 Contracts

TokenNetworkAddress
USDCBase (8453)0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
USDCEthereum (1)0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
USDTBase (8453)0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2
USDTEthereum (1)0xdAC17F958D2ee523a2206206994597C13D831ec7
DAIBase (8453)0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb
DAIEthereum (1)0x6B175474E89094C44Da98b954EedeAC495271d0F