Skip to content

v0.1.1 — x402 Tool

Latest

Choose a tag to compare

@axonfi axonfi released this 06 Mar 06:39
· 9 commits to main since this release

What's New

axon_x402 tool

Your LangChain agent can now handle HTTP 402 paywalled APIs:

from langchain_axon import AxonToolkit

toolkit = AxonToolkit(vault_address="0x...", chain_id=8453, bot_private_key="0x...")
tools = toolkit.get_tools()  # now includes axon_x402

The axon_x402 tool takes a PAYMENT-REQUIRED header value, funds the bot from the vault, signs a token authorization, and returns a PAYMENT-SIGNATURE header for retrying the request.

  • Supports EIP-3009 (USDC) and Permit2 (any ERC-20)
  • Full Axon pipeline applies (spending limits, AI scan, human review)
  • 7 tools total (was 6)

Previous versions

  • 0.1.0: Initial release — axon_pay, axon_balance, axon_swap, axon_execute, axon_poll, axon_vault_info