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 nameget_service(id)— get service detailslist_all_services()— list all servicesget_agreement(id)— get agreement detailsget_client_agreements(address)— agreements where address is clientget_provider_agreements(address)— agreements where address is providertotal_services()/total_agreements()/total_fees()
Write Methods (require private key)
list_service(agent_id, capability, price_usdc, metadata_uri)— list a servicecreate_agreement(provider, provider_agent_id, ...)— create escrowed agreementconfirm_completion(agreement_id)— release escrowdispute(agreement_id)— dispute an agreementhire(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)
| 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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| 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.