feat(agentkit): Add WalletPrintActionProvider for behavioral transaction risk scoring#1335
Open
Loai17 wants to merge 1 commit into
Open
feat(agentkit): Add WalletPrintActionProvider for behavioral transaction risk scoring#1335Loai17 wants to merge 1 commit into
Loai17 wants to merge 1 commit into
Conversation
…ion risk scoring Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
🟡 Heimdall Review Status
|
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
This PR adds a native
WalletPrintActionProviderfor WalletPrint — an open-source behavioral transaction risk scoring SDK for AI agent wallets.What it does
Before an agent signs a transaction, it can call
score_transactionto check whether the recipient, amount, asset, or timing looks unusual relative to that wallet's own behavioral history. The action returns a risk score (0–100), a band (low/medium/high), plain-English reason codes, and a recommended action (proceed/review/escalate).This action is advisory only — it never blocks a transaction. The agent decides what to do with the result.
Changes
src/action-providers/walletprint/walletprintActionProvider.ts—WalletPrintActionProviderclass withscore_transactionactionsrc/action-providers/walletprint/schemas.ts— Zod schema for transaction inputssrc/action-providers/walletprint/index.ts— re-exportssrc/action-providers/walletprint/README.md— usage docssrc/action-providers/walletprint/walletprintActionProvider.test.ts— 12 unit tests (all passing)src/action-providers/index.ts— wired into main exports.changeset/add-walletprint-action-provider.md— patch changesetSupported networks
Ethereum mainnet (chain ID 1) and Base (chain ID 8453).
Usage
Use
walletprint-dev-keyas the API key for sandbox testing.Links
Test plan
npx jest --testPathPattern=walletprint— 12/12 tests passwalletprintActionProvider({ apiKey: "walletprint-dev-key" })and callscore_transactionagainst the sandbox API