Support x402 v1 402s (requirements in the body, X-PAYMENT header)
@franciscorodr26 がすでに取り組んでいます。
2026年10月7日 から。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 56/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- payments
調査の方向性
Start by reading the x402 response parsing and payment-header handling, then inspect test/real-merchants.test.ts for the existing v2 fixtures and tests. Add tests for the captured v1 responses and verify opt-in parsing, strict rejection of unknown keys, v1 payment headers, and refusal of a wrong payee or higher price before signing; the issue does not name the implementation files.
索引モデルが issue の本文から書いたものです。
説明
Why
Some live merchants on Base still speak x402 v1: the requirements come only in the JSON body (x402Version: 1, network: "base", maxAmountRequired) and they expect an X-PAYMENT header back. Seen on 2026-10-07: Neynar, SLAMai (CryptoSlam) and Browserbase. Today the SDK refuses these 402s (no PAYMENT-REQUIRED header).
What
- Opt-in v1 compatibility (
policy.acceptV1: true): parse the v1 body into the samePaymentRequirementsshape (mapbase→eip155:8453,maxAmountRequired→amount), then run exactly the same policy checks. - Send the payment as v1
X-PAYMENTfor those merchants; read the receipt fromX-PAYMENT-RESPONSE(already supported). - Strict schemas as for v2; unknown keys rejected.
Acceptance
- Unit tests with the captured v1 402s (see
test/real-merchants.test.tsfor the v2 ones). - A v1 402 asking for a different payee or a higher price is refused before signing, same as v2.
- 主要言語
- TypeScript
- スター
- 0
- フォーク
- 0
- 平均マージ
- 3時間 51分
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DeepFirstHQ/deepfirstsearch のほかの issue
-
documentation good first issue
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
-
help wanted integration
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
-
enhancement good first issue
難易度 3/5 1〜2日 初心者へのやさしさ 69/100
-
documentation good first issue
難易度 3/5 1〜2日 初心者へのやさしさ 54/100
-
documentation enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
DeepFirstHQ/deepfirstsearch の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
lukilabs/beautiful-mermaid#160 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
rescript-lang/rescript-lang.org#1420 ·
メンテナーはふだん 2 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
chthollyphile/folia-major#520 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
databuddy-analytics/Databuddy#1106 ·
メンテナーはふだん 1 日以内に返信