langchain-near-verify-account
LangChain tool to verify NEAR Protocol accounts by querying the NEAR RPC.
Installation
pip install langchain-near-verify-account
Usage
Synchronous
from langchain_near_verify_account import NearVerifyAccountTool
tool = NearVerifyAccountTool()
result = tool.invoke({"account_id": "alice.near"})
print(result)
Asynchronous
from langchain_near_verify_account import NearVerifyAccountTool
tool = NearVerifyAccountTool()
result = await tool.ainvoke({"account_id": "alice.near"})
print(result)
In a LangChain Agent
from langchain.agents import create_tool_calling_agent, AgentExecutor
from langchain_openai import ChatOpenAI
from langchain_near_verify_account import NearVerifyAccountTool
llm = ChatOpenAI(model="gpt-4")
tools = [NearVerifyAccountTool()]
agent = create_tool_calling_agent(llm, tools, prompt)
executor = AgentExecutor(agent=agent, tools=tools)
result = executor.invoke({"input": "Verify the NEAR account alice.near"})
API
NearVerifyAccountTool
- name:
near_verify_account - description: Verify a NEAR account by account ID. Returns account details and verification status.
- Input:
account_id(str) — The NEAR account ID (e.g., 'alice.near') - Output: JSON string with account details (balance, locked, codeHash, storageUsage, blockHeight)
License
MIT
Metadata
Release files for langchain-near-verify-account 0.1.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_verify_account-0.1.0.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| langchain_near_verify_account-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.0 kB
Release files / langchain_near_verify_account-0.1.0.tar.gz
| Download URL | langchain_near_verify_account-0.1.0.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
780f5b9a30a943e131987b59e907959716b019b682b49b1ac9b0b17dd527e743
|
|
BLAKE2b-256 checksum How to use checksums |
59b798741986eff2d5ce518be5dae6c6f2989fd7a57dda934f197d52f3e7afe5
|
| 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_verify_account-0.1.0-py3-none-any.whl
| Download URL | langchain_near_verify_account-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5dd92829d00c99f2c53cc74abf9496be1fa3bdd3bdfeaab036dce7ec6d797c02
|
|
BLAKE2b-256 checksum How to use checksums |
7f7970c3af2d2697f61355630cc17542b08aa1c963d800e9feeb5d0cb8230f9e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|