Skip to content

Add research-brief-x402 service - #433

Open
guerra2fernando wants to merge 2 commits into
coinbase:mainfrom
guerra2fernando:add-research-brief-x402-1795910755
Open

guerra2fernando wants to merge 2 commits into
coinbase:mainfrom
guerra2fernando:add-research-brief-x402-1795910755

Conversation

@guerra2fernando

Copy link
Copy Markdown

Adding Research Brief x402 API — a pay-per-call service that returns cited structured research briefs. Live at https://research-brief-x402.lengrowth.workers.dev. Price: 0.01 USDC via x402 on Base.

The challenge body uses `x402Version` (camelCase) consistently throughout
the spec examples and the TypeScript types. This commit adds a note in the
Quick Start section clarifying that clients should read `x402Version` (not
`version`) to determine protocol version, which prevents a common
parsing mistake when integrating custom facilitators.

Relates to community question about challenge parsing.
@cb-heimdall

Copy link
Copy Markdown

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/2
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
1 if authored by an app that is not allowlisted and lacks verified human attribution 0
Sum 2

@github-actions github-actions Bot added the unverified Pull request contains unverified commits label Nov 29, 2026
@github-actions

Copy link
Copy Markdown

Thanks for your contribution @guerra2fernando!
Note that we require commit signing, please rebase and verify your commits.

See here for instructions: https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification

The team will not review this PR before ALL commits have been verified and it will be closed after 1 week of inactivity.

Unverified commits:

  • 45ccfb9: unsigned
  • 57f5502: unsigned

@guerra2fernando

Copy link
Copy Markdown
Author

Live endpoint verified and ready for testing:

Research Brief x402 API — https://research-brief-x402.lengrowth.workers.dev/paid

  • GET /paid without ?tx= returns a valid x402 challenge (verified by x402_challenge_checker: x402Version: 1, network: "base", maxAmountRequired: 10000 = $0.01 USDC)
  • Accepts USDC on Base mainnet, payTo 0x6bf8ac13aaf4c928b75998cf06ce256e59936400
  • With valid ?tx= parameter: verifies on-chain receipt and returns a structured research brief (JSON with summary, key points, sources)
  • Price: $0.01/call — within the x402 market band ($0.005–$0.05)

Happy to adjust the service entry format if needed to match the directory schema.

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

Labels

unverified Pull request contains unverified commits

Development

Successfully merging this pull request may close these issues.

2 participants