Repository navigation
Conversation
Adds Pocket Network's Agentic Portal (Ethereum, Base, Arbitrum JSON-RPC at $0.005 a call in USDC on Base) to the reliability study, so the report covers the providers agents actually pay. - @heightproof/web3: createHeightproofRpcClient takes a fetchImpl, so calls to rpcUrl can go through a paying fetch. - scripts/study/paid.ts wraps an x402 client with two caps: x402 refuses any payment above $0.01, and the wrapper stops paying for the rest of the UTC day at STUDY_PAID_DAILY_BUDGET_USD. Only settled payments count. - Paid endpoints run only with STUDY_X402_PAYER_KEY set, every STUDY_PAID_EVERY_TICKS ticks (default 80, about every 20 minutes), and are never used as verification peers. Skipped ticks are not recorded as failures.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the RPC that AI agents actually pay for to the reliability study: Pocket Network's Agentic Portal sells Ethereum, Base and Arbitrum JSON-RPC over x402 at $0.005 a call (USDC on Base, quoted 1 Nov 2026). In x402scan's top services, blockchain RPC is the only paid data that can be cross-checked, so this is where Heightproof's verification applies.
@heightproof/web3:createHeightproofRpcClientaccepts afetchImplfor calls torpcUrl, so a priced endpoint can be called through a paying fetch.scripts/study/paid.ts: wraps an x402 client with two spending caps.STUDY_PAID_DAILY_BUDGET_USDis spent.STUDY_X402_PAYER_KEYis set.STUDY_PAID_EVERY_TICKSticks (default 80, about every 20 minutes) and are never used as verification peers, so nothing else spends money.studyservice.Cost at the defaults: about 72 rounds a day × ~6 calls × $0.005 ≈ $2.20 per chain, so about $6.50 a day for all three, with a hard cap of $8 a day.
OneSource was left out: it sells RPC through its own REST routes, not JSON-RPC.
Testing
fetchImplreplaces the global fetch forrpcUrl. Typecheck and lint are clean.PAYMENT_INVALID)