langchain-rustchain
LangChain tools for the RustChain Proof-of-Antiquity blockchain.
RustChain rewards vintage hardware with RTC tokens. This package gives LangChain agents the ability to query the network, find bounties, and earn autonomously.
Installation
pip install langchain-rustchain
Quick Start
from langchain_rustchain import (
RustChainBalanceTool,
RustChainBountyTool,
RustChainHealthTool,
RustChainEpochTool,
)
# Check network health
health = RustChainHealthTool()
print(health.invoke({}))
# {"version": "2.2.1-rip200", "uptime_s": 240983, "ok": true, ...}
# Search open bounties
bounties = RustChainBountyTool()
print(bounties.invoke({"limit": 5}))
# [{"number": 3074, "title": "LangChain integration", "reward": "25 RTC", ...}]
# Check wallet balance
balance = RustChainBalanceTool()
print(balance.invoke({"wallet_id": "dual-g4-125"}))
# Get current epoch
epoch = RustChainEpochTool()
print(epoch.invoke({}))
Create a Full Agent
from langchain_openai import ChatOpenAI
from langchain_rustchain import create_rustchain_agent
llm = ChatOpenAI(model="gpt-4o-mini")
agent = create_rustchain_agent(llm)
result = agent.invoke({
"input": "Find me the top 3 open bounties on RustChain"
})
print(result["output"])
Available Tools
| Tool | Description |
|---|---|
rustchain_health |
Check RustChain node health status (version, uptime, db status) |
rustchain_balance |
Query RTC token balance for any wallet |
rustchain_bounties |
Search open bounties on GitHub with RTC rewards |
rustchain_epoch |
Get current epoch info (number, miners, reward pot) |
License
MIT
Built for the RustChain Bounty Program
Metadata
Release files for langchain-rustchain 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 | Actions |
|---|---|---|---|---|
| langchain_rustchain-0.1.0.tar.gz | 3.8 kB | Without provenance | Details for langchain_rustchain-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| langchain_rustchain-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for langchain_rustchain-0.1.0-py3-none-any.whl |
Total release size: 8.3 kB
Release files / langchain_rustchain-0.1.0.tar.gz
| Download URL | langchain_rustchain-0.1.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
16dcb478c0f590a05464fc79a82f0cd1fd711e1cdd682265d9b93e81d1bb1c38
|
|
BLAKE2b-256 checksum How to use checksums |
dfe66d917fabf59387e5f176a8f016c74cfa532a820dd59cc229fd0d6277f247
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / langchain_rustchain-0.1.0-py3-none-any.whl
| Download URL | langchain_rustchain-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
074df07ad57fbc9c93b2221945eeb87117d480a6813857e0bbfb28006e617d7c
|
|
BLAKE2b-256 checksum How to use checksums |
d4673624c658fd322b5db7c6afeaa012446a7d5bc7a5e463b55dec0cf48c3792
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Security for langchain-rustchain 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.