Skip to main content

arc-commerce-sdk

Python SDK for Agent Commerce Protocol — an ERC-8183 conditional sequencer on Arc.

Install

pip install arc-commerce-sdk

Quick Start — Pipeline (the primitive)

A pipeline is an ordered sequence of ERC-8183 jobs, atomically funded, conditionally halted.

from arc_commerce import ArcCommerce
import os

agent = ArcCommerce(private_key=os.environ["ARC_PRIVATE_KEY"])

pipeline_id = agent.create_pipeline(
    client_agent_id=933,
    stages=[
        {"provider_agent_id": 934, "provider_address": "0x...", "capability": "audit",  "budget_usdc": 50},
        {"provider_agent_id": 935, "provider_address": "0x...", "capability": "deploy", "budget_usdc": 30},
    ],
    currency="USDC",
    deadline_hours=24,
)

# Inspect status — stages advance only on approval
pipeline = agent.get_pipeline(pipeline_id)
print(f"Pipeline #{pipeline_id}: {pipeline.status.name}, {pipeline.total_budget_usdc} USDC")

# Approve a completed stage; rejection halts and refunds unstarted stages
agent.approve_stage(pipeline.stages[0].job_id)

Marketplace operations (parallel, optional)

The SDK also wraps the v2 marketplace contracts shipped in src/marketplace/. These are independent of the pipeline primitive — use them only if you want a single-job hire flow.

client = ArcCommerce()
services = client.find_services("smart_contract_audit")
for s in services:
    print(f"Agent #{s.agent_id}: {s.price_usdc} USDC")

API

Read Methods

  • find_services(capability) — find active services by capability name
  • get_service(id) — get service details
  • list_all_services() — list all services
  • get_agreement(id) — get agreement details
  • get_client_agreements(address) — agreements where address is client
  • get_provider_agreements(address) — agreements where address is provider
  • total_services() / total_agreements() / total_fees()

Write Methods (require private key)

  • list_service(agent_id, capability, price_usdc, metadata_uri) — list a service
  • create_agreement(provider, provider_agent_id, ...) — create escrowed agreement
  • confirm_completion(agreement_id) — release escrow
  • dispute(agreement_id) — dispute an agreement
  • hire(capability, amount_usdc, task_description) — find + hire in one call

Examples

See examples/ for LangChain integration and more.

Metadata

Release files for arc-commerce-sdk 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 arc-commerce-sdk 0.1.0
File Size Uploaded Provenance Actions
arc_commerce_sdk-0.1.0.tar.gz 36.1 kB Without provenance Details for arc_commerce_sdk-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for arc-commerce-sdk 0.1.0
File Interpreter ABI Platform Actions
arc_commerce_sdk-0.1.0-py3-none-any.whl Python 3 none any Details for arc_commerce_sdk-0.1.0-py3-none-any.whl

Total release size: 62.7 kB

Release files / arc_commerce_sdk-0.1.0.tar.gz

Download URL arc_commerce_sdk-0.1.0.tar.gz
Size 36.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5dcf6d67382ecd5aca4bc1335cd7937d46ab1d08e35cb6ac1675c686c9242cf6
BLAKE2b-256 checksum
How to use checksums
ef86496983d03d362f1295b8fda21e3da8a7ecfa6ab7323e17e1919b70c9df67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

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

Download URL arc_commerce_sdk-0.1.0-py3-none-any.whl
Size 26.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1d4451abf72aa784c80c735f4662fd38be6ccdf2ccb459dc48bae3afb58a47cd
BLAKE2b-256 checksum
How to use checksums
026fa01df464fdbb0ec24e4a313004e70c8089775b09da3ec6e1193ef65a4dfe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Security for arc-commerce-sdk 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