Skip to main content

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:

  1. Transfers 0.01 SOL to the Axiom Treasury on Solana
  2. Confirms the transaction and captures the signature
  3. Calls GET /api/v1/oracle/{asset_id}?tx_signature={sig}
  4. 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

Metadata

Release files for axiom-langchain 0.1.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 axiom-langchain 0.1.0
File Size Uploaded Provenance Actions
axiom_langchain-0.1.0.tar.gz 7.3 kB Without provenance Details for axiom_langchain-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for axiom-langchain 0.1.0
File Interpreter ABI Platform Actions
axiom_langchain-0.1.0-py3-none-any.whl Python 3 none any Details for axiom_langchain-0.1.0-py3-none-any.whl

Total release size: 14.6 kB

Release files / axiom_langchain-0.1.0.tar.gz

Download URL axiom_langchain-0.1.0.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
efd4946bfbe0f7b812e3f6832324b443301a59556c3cf9318a938cde4c1f48a6
BLAKE2b-256 checksum
How to use checksums
6622600f8ca3553db9c7f072945ebdafd74df6f44aa0e969d6701f9cfe8a529d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.11

Release files / axiom_langchain-0.1.0-py3-none-any.whl

Download URL axiom_langchain-0.1.0-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c0a50baf12f9bde7aa33d7962c1463381ff5e7bd9965c1bdb3311fb9bd6fcdfc
BLAKE2b-256 checksum
How to use checksums
01d18d863929ec93b76a8fc9297d00ea7c75cf4bfa13614d9595834262b8f129
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.11

Security for axiom-langchain 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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