langchain-near-read-key
LangChain BaseTool to read access keys on NEAR Protocol.
Installation
pip install langchain-near-read-key
Usage
from langchain_near_read_key import NearReadKeyTool
tool = NearReadKeyTool()
# Read all keys for an account
result = tool.run({
"account_id": "alice.near",
"network": "mainnet"
})
print(result)
# Filter by public key
result = tool.run({
"account_id": "alice.near",
"public_key": "ed25519:ABC..."
})
Async Usage
import asyncio
from langchain_near_read_key import NearReadKeyTool
tool = NearReadKeyTool()
async def main():
result = await tool.arun({
"account_id": "alice.near",
})
print(result)
asyncio.run(main())
API
NearReadKeyTool
- name:
near_read_key - description: Read access keys for a NEAR account
- args_schema:
NearReadKeyInputaccount_id(str): NEAR account IDpublic_key(str, optional): Filter by public keynetwork(str):mainnetortestnet
Returns
JSON string with:
account_id: The queried accountnetwork: Network usedtotal_keys: Number of keys foundkeys: Array of access key objects withpublic_key,permission_type, and optionalcontract_id,method_names,allowance
Metadata
Release files for langchain-near-read-key 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_near_read_key-1.0.0.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| langchain_near_read_key-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.5 kB
Release files / langchain_near_read_key-1.0.0.tar.gz
| Download URL | langchain_near_read_key-1.0.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8bf8924802ca7250b0c1de5a1ff22b7c96d300e8e7c21231d7a60347e08eceeb
|
|
BLAKE2b-256 checksum How to use checksums |
a7823a627f082dca7367d4eaa7590803b083834b08f2e0a839a3bf2fc0421efb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / langchain_near_read_key-1.0.0-py3-none-any.whl
| Download URL | langchain_near_read_key-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9c6b6f8f511ef2cc24e7af19f0c707c0184e9775ea661df6ba2f3f2842daa312
|
|
BLAKE2b-256 checksum How to use checksums |
6a95406998d851624cb9ec7b64bbf7191e51ee0d6c28819d7f123194112f16c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|