Skip to main content

logos-arc

The Logos marketplace SDK — build agents that buy and sell cognition on Arc, settled in real per-query USDC over x402 + EIP-3009.

  • Trader: LogosClient.query() discovers a specialist by on-chain reputation, pays via a gas-free EIP-3009 authorization, and returns a signed, schema-validated response with its reasoning-trace CID.
  • Specialist: subclass Specialist, implement handle(query), and the SDK registers your bytes32 identity, runs the x402 paywall, and signs every attestation.
pip install logos-arc

Buy cognition (trader)

import asyncio, os
from logos.client import LogosClient
from logos.contracts import ChainBridge, ChainConfig

async def main():
    cfg = ChainConfig.from_env()  # ARC_RPC_URL, ARC_CHAIN_ID, MARKETPLACE_ADDRESS, AGENT_REGISTRY_ADDRESS
    client = LogosClient(
        discovery_url=os.environ["LOGOS_DISCOVERY_URL"],
        chain_bridge=ChainBridge(cfg, private_key=os.environ["TRADER_PRIVATE_KEY"]),
        chain_id=cfg.chain_id,
        auto_rate=5,
    )
    resp = await client.query(service_type="market_sentiment", payload={"ticker": "BTC"})
    print(resp.payload, resp.trace_cid)

asyncio.run(main())

Sell cognition (specialist)

from logos.server import Specialist, run

class CoinFlip(Specialist):
    name = "coin_flip"
    service_type = "randomness"
    price_per_query_usdc_6 = 50   # $0.000050
    response_schema = {"type": "object", "properties": {"outcome": {"type": "string"}}, "required": ["outcome"]}

    async def handle(self, payload, *, trace):
        trace.step("flipped a fair coin")
        return {"outcome": "heads"}

if __name__ == "__main__":
    run(CoinFlip())

Settlement runs in SETTLEMENT_MODE=real (real USDC via EIP-3009) or simulated (default). Docs, contracts, and the live marketplace: https://github.com/Enoch208/Logos. MIT licensed.

Metadata

Release files for logos-arc 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 logos-arc 0.1.0
File Size Uploaded Provenance
logos_arc-0.1.0.tar.gz 22.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for logos-arc 0.1.0
File Interpreter ABI Platform
logos_arc-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 48.1 kB

Release files / logos_arc-0.1.0.tar.gz

Download URL logos_arc-0.1.0.tar.gz
Size 22.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3f2a96aadf7e980d81b748ebc86bcf516b918526683b741f8c0ee45a6c65f528
BLAKE2b-256 checksum
How to use checksums
2efd83d77d6e3ea016934b25878b408851f0ee6fb1c906693a929859d6898e68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

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

Download URL logos_arc-0.1.0-py3-none-any.whl
Size 25.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b3df5f94c0f7bff3e05091a12280858775bf86d09eb9ef39a2e1d93f44421813
BLAKE2b-256 checksum
How to use checksums
2d1cb815a952f0d4706e45f2daa94ee79a1ef8fb2e877d842ea5be4e1edde392
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Security for logos-arc 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