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.1.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.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: voidly_pay_langchain-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 2882bd7c2f31d6cfc14404db490f28614599ea398d5365018a513530f1fcb7f7
MD5 af08cbbfc5d8b85d0f7fb16307ab566b
BLAKE2b-256 ee7a5971da0bd5aae00dc6a88668273a59a6cc0f73146ea3a9c124efd3a7bdeb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for voidly_pay_langchain-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6a36a3544d2a8c21a576a706f0710e460e15ca25efd5837789748c344dde35c1
MD5 c11da1657f5dc7b90a98b7adeaf40336
BLAKE2b-256 77b276cbcf72299ced89cf4b3f163c43d14405d5ad43a8b17ef249c5bc7a40d8

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