Skip to main content

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: 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langchain_near_read_key-1.0.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langchain_near_read_key-1.0.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

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

Hashes for langchain_near_read_key-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8bf8924802ca7250b0c1de5a1ff22b7c96d300e8e7c21231d7a60347e08eceeb
MD5 f082b20d24e605d9cf1b3fd2c8905d62
BLAKE2b-256 a7823a627f082dca7367d4eaa7590803b083834b08f2e0a839a3bf2fc0421efb

See more details on using hashes here.

File details

Details for the file langchain_near_read_key-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_near_read_key-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9c6b6f8f511ef2cc24e7af19f0c707c0184e9775ea661df6ba2f3f2842daa312
MD5 0b28fb3d59c941251eb2d6eba1688a39
BLAKE2b-256 6a95406998d851624cb9ec7b64bbf7191e51ee0d6c28819d7f123194112f16c9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page