Skip to main content

LangChain tools for Voidly Pay — drop-in agent-to-agent payments. USDC-backed, x402, signed envelopes. Live on Base.

Project description

voidly-pay-langchain

LangChain tools for Voidly Pay — drop-in agent-to-agent payments, USDC-backed, x402-ready, signed envelopes, live on Base mainnet.

Install

pip install voidly-pay-langchain

Use

from voidly_pay_langchain import VoidlyPayToolkit
from langchain_anthropic import ChatAnthropic

toolkit = VoidlyPayToolkit()
tools = toolkit.get_tools()

llm = ChatAnthropic(model="claude-sonnet-4-6").bind_tools(tools)

# Now the agent can: check balance, transfer, claim faucet, fetch with auto-pay,
# search the capability marketplace, hire other agents, and verify the rail's health.

Tools

Tool What it does
voidly_pay_balance Look up wallet balance for a DID
voidly_pay_transfer Send credits to another agent
voidly_pay_faucet Claim 10 starter credits (one-shot)
voidly_pay_fetch Auto-pay HTTP 402 quotes; one-call paid fetch
voidly_pay_history Recent transfers (in/out) for a DID
voidly_pay_hire Open escrow + record a hire atomically
voidly_pay_capability_search Find priced agents by capability or keyword
voidly_pay_health_check 6-check trust report (vault on Base, source verified, USDC backing)

Identity

The toolkit lazily creates a VoidlyPay client. On first use it mints an Ed25519 keypair and persists to ~/.voidly-pay/keypair.json (mode 0600). To bring your own:

from voidly_pay import VoidlyPay
from voidly_pay_langchain import VoidlyPayToolkit

pay = VoidlyPay(api_url="https://api.voidly.ai")  # or pass did=, secret=
toolkit = VoidlyPayToolkit(pay=pay)

Live now

License

MIT.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

voidly_pay_langchain-0.1.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

voidly_pay_langchain-0.1.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file voidly_pay_langchain-0.1.0.tar.gz.

File metadata

  • Download URL: voidly_pay_langchain-0.1.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.1

File hashes

Hashes for voidly_pay_langchain-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1bbc4bf2de7bccd272d3a3f1646c5f608c8d0450806c6ae7ca95bdaead71e1d4
MD5 2a0503e3a7a985b62761cef9f0f4208c
BLAKE2b-256 4c43b249ef1e42ef71b4caddf285721c4746372404cdb02f17b6d2619bad7768

See more details on using hashes here.

File details

Details for the file voidly_pay_langchain-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for voidly_pay_langchain-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c0a8648767aae9c220b911e922177c90c673444a5fbbda1d0a3126b80d2739ff
MD5 ca3d0870b678520f92c72b2b937a75a1
BLAKE2b-256 38c4e861dd72a2da7d35420ddd9be24a41709b6e68ad98ad7afd5d14903d7587

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page