Skip to content

Conversation

@TheMemeBanker
Copy link

Summary

Adds payment tools using the x402 HTTP protocol via Nory, enabling AI agents to make payments when encountering HTTP 402 Payment Required responses.

Tools Added:

  • get_payment_requirements: Get payment requirements for paid resources
  • verify_payment: Verify signed payment transactions before settlement
  • settle_payment: Settle payments on-chain (~400ms settlement)
  • lookup_transaction: Check transaction status and confirmations
  • health_check: Check service health and supported networks

Features:

  • Multi-chain support: Solana + 7 EVM chains (Base, Polygon, Arbitrum, Optimism, Avalanche, Sei, IoTeX)
  • Sub-400ms settlement times
  • Registered with tags: payment, x402, blockchain, web3
  • Follows MetaGPT's Pydantic BaseModel + async pattern

Links:

Test plan

  • Verify tool registration via @register_tool decorator
  • Test each async method with mock/real API responses
  • Verify integration with MetaGPT agent system

🤖 Generated with Claude Code

Adds payment tools using the x402 HTTP protocol via Nory:
- get_payment_requirements: Get payment requirements for paid resources
- verify_payment: Verify signed payment transactions
- settle_payment: Settle payments on-chain (~400ms)
- lookup_transaction: Check transaction status
- health_check: Check service health and supported networks

Features:
- Multi-chain: Solana + 7 EVM chains (Base, Polygon, Arbitrum, etc.)
- Sub-400ms settlement times
- Registered with tags: payment, x402, blockchain, web3

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@TheMemeBanker
Copy link
Author

Hi MetaGPT team! Following up on this PR. The x402 payment tools use the @register_tool decorator pattern and would enable MetaGPT agents to handle paid resources. Let me know if any adjustments are needed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant