Axiom Stack Oracle tool for LangChain AI agents — autonomous M2M RWA data purchasing on Solana
Project description
axiom-langchain
Axiom Stack Oracle tool for LangChain AI agents — plug-and-play M2M Real World Asset data purchasing on Solana.
pip install axiom-langchain
Quick start
from axiom_langchain import AxiomValuationTool
from langchain.agents import create_agent
from langchain_openai import ChatOpenAI
tool = AxiomValuationTool()
agent = create_agent(model="openai:gpt-4o", tools=[tool])
result = agent.invoke({"messages": [
{"role": "user", "content": "What is the valuation for HAWTHORNE-001? Buy the data."}
]})
The tool autonomously:
- Transfers 0.01 SOL to the Axiom Treasury on Solana
- Confirms the transaction and captures the signature
- Calls
GET /api/v1/oracle/{asset_id}?tx_signature={sig} - Returns structured valuation data (consensus score, confidence, NOI, audit hash) to the LLM
Environment variables
| Variable | Default | Description |
|---|---|---|
RPC_URL |
http://127.0.0.1:8899 |
Solana RPC endpoint |
KEYPAIR_PATH |
~/.config/solana/id.json |
Agent wallet keypair |
AXIOM_TREASURY |
6QWBRGkjnBTJzP8gP6EkeTFiHLepNTfPJZ3JHvmWXXnY |
Treasury pubkey |
M2M_FEE_LAMPORTS |
10000000 |
Micro-payment in lamports (0.01 SOL) |
AXIOM_API_URL |
https://api.axiomstack.com |
Oracle API base URL (preferred) |
AXIOM_API_BASE |
(see AXIOM_API_URL) |
Legacy alias for the API base URL |
License
MIT
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
axiom_langchain-0.1.0.tar.gz
(7.3 kB
view details)
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 axiom_langchain-0.1.0.tar.gz.
File metadata
- Download URL: axiom_langchain-0.1.0.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efd4946bfbe0f7b812e3f6832324b443301a59556c3cf9318a938cde4c1f48a6
|
|
| MD5 |
73b3bb5b916631d2b529d41620f110d2
|
|
| BLAKE2b-256 |
6622600f8ca3553db9c7f072945ebdafd74df6f44aa0e969d6701f9cfe8a529d
|
File details
Details for the file axiom_langchain-0.1.0-py3-none-any.whl.
File metadata
- Download URL: axiom_langchain-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0a50baf12f9bde7aa33d7962c1463381ff5e7bd9965c1bdb3311fb9bd6fcdfc
|
|
| MD5 |
51444b92dfaef930d11b202f21507afe
|
|
| BLAKE2b-256 |
01d18d863929ec93b76a8fc9297d00ea7c75cf4bfa13614d9595834262b8f129
|