Skip to content

Example: x402 pre-send guard before EVM agent transaction broadcast #1167

@cakirasim

Description

@cakirasim

I published a small x402 package that fits the AgentKit transaction path as a pre-send guard:

The use case is narrow: before an autonomous EVM agent broadcasts a transaction, run one x402-paid preflight to inspect revert risk, fee context, and likely call outcome.

Suggested example shape:

agent chooses action -> transaction payload built -> Nishvault pre-send guard -> wallet send/broadcast

The package exposes:

  • nishvault-guard-tx
  • createViemPreflightGuard
  • createEthersPreflightGuard
  • createEip1193PreflightGuard
  • createAgentGuardStep

Would an example PR showing this as a pre-broadcast guard step be useful for the AgentKit examples/docs?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions