langchain-send21
send21 tools for LangChain. 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?)returnspay_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 anorder_ida retry returns the open link instead of creating a second one.send21_get_pay_link_status(payment_request_id)returnsOpen,Completed,CancelledorExpiredplus 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.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| langchain_send21-0.1.0.tar.gz | 4.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| langchain_send21-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.5 kB
Release files / langchain_send21-0.1.0.tar.gz
| Download URL | langchain_send21-0.1.0.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
edba4f64f137fe1fe119e138ac2d481c26139849f53614ee30ce46f2dd4e6d2f
|
|
BLAKE2b-256 checksum How to use checksums |
3b6e267bb00886a304fa48c74e69ae5dc56ad85b012a67524115e6068485dae8
|
| 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.0-py3-none-any.whl
| Download URL | langchain_send21-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a71dccbb38a9091c0152b29a3251e11bd89bf5c8fd7809e8e962a927fc821ba2
|
|
BLAKE2b-256 checksum How to use checksums |
02a638c61719ea924a227445e8c0b4d4df75075fa223bba6a8add45c01189c81
|
| 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.0
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.