Skip to main content

langchain-send21

send21 tools for LangChain. Crypto pay links and API for people and AI agents. Let an agent prepare a pay link and check its status without holding keys.

send21 is non-custodial software that prepares payment instructions. It never holds keys or funds, never signs and never broadcasts. The scoped API key this package uses can create a pay link but cannot move money: the payer signs in their own wallet.

Not an official LangChain package. Questions: info@send21.io

Install

pip install langchain-send21
export SEND21_API_KEY=s21_...   # scopes: drafts:write, drafts:read (https://send21.io/api-keys)

Use

from langchain.agents import create_agent
from langchain_send21 import PayOption, Send21Toolkit

tools = Send21Toolkit(receive_options=[
    PayOption(currency="Usdc", network="Solana", address="<your-solana-address>"),
    PayOption(currency="Btc", network="Mainnet", address="name@wallet.com", method="Lightning"),
]).get_tools()

agent = create_agent("openai:gpt-5-mini", tools=tools)
agent.invoke({"messages": [{"role": "user", "content": "Create a pay link for 40 EUR for order inv-1042."}]})
  • send21_create_pay_link(fiat_amount, fiat_currency, order_id?, memo?, decline_note?) returns pay_link, payment_request_id, status, expires_at. Receiving addresses come from your code, never from the model. Each call uses a fresh idempotency key, and with an order_id a retry returns the open link instead of creating a second one.
  • send21_get_pay_link_status(payment_request_id) returns Open, Completed, Cancelled or Expired plus any "what changed" notes.

Supported pairs: BTC on Bitcoin and Lightning; USDC on Solana, Ethereum, Base, Arbitrum, Polygon; USDT on Solana and Ethereum; EURC on Solana, Ethereum, Base; SOL; ETH on Ethereum, Base, Arbitrum. Others are refused before any API call.

Already using MCP? langchain-mcp-adapters can load all 11 tools from https://send21.io/mcp directly.

Develop

pip install -e '.[test]' && pytest   # offline, mocked HTTP

MIT

Metadata

Release files for langchain-send21 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langchain-send21 0.1.2
File Size Uploaded Provenance
langchain_send21-0.1.2.tar.gz 4.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for langchain-send21 0.1.2
File Interpreter ABI Platform
langchain_send21-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 9.3 kB

Release files / langchain_send21-0.1.2.tar.gz

Download URL langchain_send21-0.1.2.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
79800346fac3bbcf0ac555156652e2c411917e1c4332cdd767fdb28d28b04231
BLAKE2b-256 checksum
How to use checksums
dede5623cb0f5516311ce4e1b4c1dfbca7b94ae1c718df210f4629658b7b9057
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / langchain_send21-0.1.2-py3-none-any.whl

Download URL langchain_send21-0.1.2-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
177d6a7bd0049492f2444fea68b2f0f17d7b765b8eafaa2260dc449c58ad3528
BLAKE2b-256 checksum
How to use checksums
452383bda1491bab326a03bfbe49ac7b00fb9102d931ff17c0546ac473177633
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for langchain-send21 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page