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.

New send21 accounts only accept receiving addresses the owner approved: approve each receive_options address in send21 first (sign in, passkey or authenticator code). A 422 address_not_approved or 403 owner_not_confirmed comes back as a plain explanation the agent can relay, and nothing is created.

Develop

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

MIT

Metadata

Release files for langchain-send21 0.1.3

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.3
File Size Uploaded Provenance Actions
langchain_send21-0.1.3.tar.gz 5.2 kB Without provenance Details for langchain_send21-0.1.3.tar.gz

Built distribution (wheel)

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

Total release size: 10.4 kB

Release files / langchain_send21-0.1.3.tar.gz

Download URL langchain_send21-0.1.3.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
50962e63ce5985d480773c3d26c6b257f0722070c26011d5d0523dea799995fa
BLAKE2b-256 checksum
How to use checksums
ad2531b846541762cc3af587db00ed6b684e828e40bea6def3bc786081ea2cfd
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.3-py3-none-any.whl

Download URL langchain_send21-0.1.3-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fc96b73f1228c6177a16fc3df3a2d26006b884183f9c17daaa1e91c09f11d42f
BLAKE2b-256 checksum
How to use checksums
e5368d1bf3f79b4cbdb56080bc7663aeedcc612ac3516c6d2178e8a1b5fa3ae2
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.3

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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