Skip to main content

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: NearReadKeyInput
    • account_id (str): NEAR account ID
    • public_key (str, optional): Filter by public key
    • network (str): mainnet or testnet

Returns

JSON string with:

  • account_id: The queried account
  • network: Network used
  • total_keys: Number of keys found
  • keys: Array of access key objects with public_key, permission_type, and optional contract_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)

Source distribution for langchain-near-read-key 1.0.0
File Size Uploaded
langchain_near_read_key-1.0.0.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for langchain-near-read-key 1.0.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page