Skip to content

feat: Add PayLobster action provider for agent-to-agent payments on Base#945

Open
itsGustav wants to merge 2 commits intocoinbase:mainfrom
itsGustav:feat/paylobster-action-provider
Open

feat: Add PayLobster action provider for agent-to-agent payments on Base#945
itsGustav wants to merge 2 commits intocoinbase:mainfrom
itsGustav:feat/paylobster-action-provider

Conversation

@itsGustav
Copy link

Overview

This PR adds a PayLobster action provider to AgentKit, enabling AI agents to interact with PayLobster's agent-to-agent payment infrastructure on Base L2.

What is PayLobster?

PayLobster is a decentralized payment infrastructure designed specifically for AI agents on Base. It provides:

  • On-chain agent identity and reputation systems
  • USDC-based escrow payments for trustless transactions
  • Credit scoring and limits for agents
  • Agent discovery and profile lookups

🔗 Links:

Actions Included (6 total)

All actions are live on Base Mainnet with real USDC:

  1. register_identity - Register an agent's on-chain identity
  2. create_escrow - Create USDC escrow payments
  3. release_escrow - Release escrowed funds to recipients
  4. check_reputation - Query agent reputation scores
  5. get_credit_score - Get credit scores and limits
  6. get_agent_profile - Look up agent profiles by address

Implementation Details

  • ✅ Uses @CreateAction decorator pattern (current standard)
  • ✅ Extends ActionProvider<EvmWalletProvider>
  • ✅ Uses viem for contract interactions
  • ✅ Comprehensive test coverage (100% of actions)
  • ✅ Network validation (Base Mainnet only - Chain ID 8453)
  • ✅ Proper error handling with JSON responses
  • ✅ Signed commits

Contract Addresses (Base Mainnet)

  • Identity: 0xA174ee274F870631B3c330a85EBCad74120BE662
  • Reputation: 0x02bb4132a86134684976E2a52E43D59D89E64b29
  • Credit: 0xD9241Ce8a721Ef5fcCAc5A11983addC526eC80E1
  • Escrow V3: 0x49EdEe04c78B7FeD5248A20706c7a6c540748806
  • USDC: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

Example Usage

import { paylobsterActionProvider } from '@coinbase/agentkit';
import { CdpWalletProvider } from '@coinbase/agentkit';

const wallet = new CdpWalletProvider();
const paylobster = paylobsterActionProvider();

// Register agent identity
await paylobster.registerIdentity(wallet, {
  name: 'AI Trading Bot',
  agentURI: 'ipfs://Qm...',
  capabilities: 'trading,analysis,escrow'
});

// Create escrow payment
await paylobster.createEscrow(wallet, {
  recipient: '0x...',
  amount: '100',
  description: 'Payment for AI services'
});

Testing

All 6 actions have comprehensive unit tests that mock the wallet provider and verify:

  • Correct contract calls with proper ABI encoding
  • Transaction hashing and receipt waiting
  • Proper error handling
  • Network validation (Base Mainnet only)

Files Added

typescript/agentkit/src/action-providers/paylobster/
├── paylobsterActionProvider.ts    # Main action provider class
├── schemas.ts                      # Zod schemas for all actions
├── constants.ts                    # Contract addresses and ABIs
├── paylobsterActionProvider.test.ts # Comprehensive tests
└── index.ts                        # Exports

Why This Matters

PayLobster enables a new category of agent-to-agent economic interactions:

  • Trustless payments: Agents can pay each other without intermediaries
  • Reputation building: Track agent reliability over time
  • Credit systems: Enable agent lending and borrowing
  • Identity verification: Verify agent authenticity on-chain

This is particularly useful for multi-agent systems where agents need to coordinate payments, build trust, and establish economic relationships.

Checklist

  • Uses @CreateAction decorator pattern
  • Extends ActionProvider<EvmWalletProvider>
  • Includes comprehensive tests
  • Follows existing code style
  • Only includes production-ready actions (no V4 stubs)
  • Signed commits
  • Live on Base Mainnet with real USDC

@cb-heimdall
Copy link

cb-heimdall commented Feb 11, 2026

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 1
Sum 2

@github-actions github-actions bot added action provider New action provider typescript labels Feb 11, 2026
Adds PayLobster action provider enabling AI agents to interact with
PayLobster's agent-to-agent payment infrastructure on Base L2.

Features:
- Register agent identity on-chain
- Create and release USDC escrow payments
- Check reputation scores
- Query credit scores and limits
- Retrieve agent profiles

All contracts are live on Base Mainnet (Chain ID: 8453) with real USDC.
Includes comprehensive test coverage for all 6 actions.

Signed-off-by: Gustav <gustav@Gustavs-Mac-mini.local>
@itsGustav itsGustav force-pushed the feat/paylobster-action-provider branch from 743d81a to 993eadb Compare February 12, 2026 01:05
- Credit: 0x4c22... (security-fixed Feb 15)
- Escrow V3: 0x703B... (security-fixed Feb 15)
- Added SpendingMandate contract address
- Fixed Escrow ABI: createEscrow → createAndFundEscrow(seller, amount, creditAmount, description)
- Added getEscrow and nextEscrowId to ABI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants

Comments