Skip to content

docs: add X402 payment-gated API example for Arc Testnet#120

Open
consumeobeydie wants to merge 2 commits into
circlefin:mainfrom
consumeobeydie:docs/x402-arc-agent-example
Open

docs: add X402 payment-gated API example for Arc Testnet#120
consumeobeydie wants to merge 2 commits into
circlefin:mainfrom
consumeobeydie:docs/x402-arc-agent-example

Conversation

@consumeobeydie

Copy link
Copy Markdown

Summary

This PR adds a practical X402 payment-gated API example to the Arc Testnet documentation.

What's included

  • Complete server implementation using x402-express middleware
  • AI agent implementation using x402-fetch with automatic USDC payments
  • Step-by-step setup instructions
  • Arc Testnet contract addresses reference
  • EIP-3009 payment flow explanation
  • Full working example repository link

Motivation

Developers need practical examples of how to build payment-gated APIs on Arc Testnet using the x402 protocol. This example demonstrates the complete flow from server setup to autonomous agent payments using Circle USDC.

Testing

This example has been tested and verified working on Arc Testnet:

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