LangChain BaseTool to read access keys on NEAR Protocol
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file langchain_near_read_key-1.0.0.tar.gz.
File metadata
- Download URL: langchain_near_read_key-1.0.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8bf8924802ca7250b0c1de5a1ff22b7c96d300e8e7c21231d7a60347e08eceeb
|
|
| MD5 |
f082b20d24e605d9cf1b3fd2c8905d62
|
|
| BLAKE2b-256 |
a7823a627f082dca7367d4eaa7590803b083834b08f2e0a839a3bf2fc0421efb
|
File details
Details for the file langchain_near_read_key-1.0.0-py3-none-any.whl.
File metadata
- Download URL: langchain_near_read_key-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c6b6f8f511ef2cc24e7af19f0c707c0184e9775ea661df6ba2f3f2842daa312
|
|
| MD5 |
0b28fb3d59c941251eb2d6eba1688a39
|
|
| BLAKE2b-256 |
6a95406998d851624cb9ec7b64bbf7191e51ee0d6c28819d7f123194112f16c9
|