LangChain Tool - NEAR State Reader
Build a LangChain tool for state reader on NEAR.
THE VIRAL LOOP: LangChain agent needs state reader → Uses NEAR tool → Agent operates on NEAR
Deliverables:
- LangChain BaseTool implementati
Install
pip install -r requirements.txt
Tools
NEARAccountTool— see near_tool.pyNEARViewFunctionTool— see near_tool.pyNEARStateReaderTool— see near_tool.pyNEARStorageValueTool— see near_tool.py
Usage
from near_tool import NEARAccountTool, NEARViewFunctionTool, NEARStateReaderTool, NEARStorageValueTool
tool = NEARAccountTool()
result = tool._run(account_id='example.near')
print(result)
Metadata
Release files for langchain-tool-near-state-reader 1.0.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 | |
|---|---|---|---|
| langchain_tool_near_state_reader-1.0.0.tar.gz | 3.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| langchain_tool_near_state_reader-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.1 kB
Release files / langchain_tool_near_state_reader-1.0.0.tar.gz
| Download URL | langchain_tool_near_state_reader-1.0.0.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
24b343238ea57c1895816d9d468484d3b8ff784c928ef632fa1f4c4cf52f4499
|
|
BLAKE2b-256 checksum How to use checksums |
c5b820bc379c3d0ac985a784700419e8cb19e58dc9f35118d3b08ae43f305987
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|
Release files / langchain_tool_near_state_reader-1.0.0-py3-none-any.whl
| Download URL | langchain_tool_near_state_reader-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bf152231b769bdf65afcb8aadbc09afdc83db020ced666e2278dd94bfa1cd8c8
|
|
BLAKE2b-256 checksum How to use checksums |
9d0de23963d3ab25a80f3b56fe76b58c72fb0d2ad91d4ff7e36bc278b37be918
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|