Repository navigation
feat: add ToolVouch action provider (verified x402 tools, routing, Base token safety) - #1702
Open
TBTha-maker wants to merge 2 commits into
Open
TBTha-maker wants to merge 2 commits into
TBTha-maker wants to merge 2 commits into
Conversation
🟡 Heimdall Review Status
|
ToolVouch retired its custodial /api/route endpoint. route_x402_task now buys a $0.001 plan from /api/plan and pays the chosen API directly from the agent's wallet, refusing any payment above the planned price or to a different wallet, and fails over to the next planned API when an answer is empty or broken. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EXYC97VoCcmbzDToNggGjt
This branch has not been deployed
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.
Adds a ToolVouch action provider with three actions for agents on Base mainnet:
Payments are signed with the agent's wallet via @x402/fetch, using the same EVM signer pattern as the x402 provider. A client-side guard refuses anything that is not USDC on Base or that exceeds maxPaymentUsdc (default 0.05).
Includes unit tests (10 passing), a README and a changeset. Lint and prettier pass. Tested end to end on Base mainnet with a ViemWalletProvider: free search, a paid token check, and the payment cap refusing a call above the limit.