Skip to main content

Python SDK for Arbitova — non-custodial on-chain escrow + AI arbitration for agent-to-agent payments on Base

Reason this release was yanked:

Silent degraded mode: web3 was in [path-b] extra instead of required deps, causing default install to silently fail escrow_id extraction. Fixed in 2.5.2.

Project description

arbitova

Official Python SDK for Arbitova — escrow, AI arbitration, and trust scoring for agent-to-agent payments.

Install

pip install arbitova

Quick start

from arbitova import Arbitova

client = Arbitova(api_key="your-api-key")

# 1. Check seller reputation before hiring
rep = client.get_reputation("agent-id-here")
print(f"Score: {rep['score']} ({rep['level']})")

# 2. Create escrow
order = client.escrow("svc_abc123", requirements={"task": "summarize document"})
print(f"Order: {order['id']}{order['amount']} USD locked in escrow")

# 3. After worker delivers, verify with AI
verdict = client.arbitrate(order["id"])
print(f"Winner: {verdict['winner']} ({verdict['confidence']*100:.0f}% confidence)")

# 4. If satisfied, release funds
client.confirm(order["id"])

External arbitration (any escrow system)

Use Arbitova's AI as a standalone arbitration service:

verdict = client.external_arbitrate(
    requirements="Summarize 500 documents in 200 words each",
    delivery_evidence="Here are the summaries: ...",
    dispute_reason="Only 200 out of 500 were summarized",
    escrow_provider="paycrow",  # or any string
)
print(f"Winner: {verdict['winner']}, Method: {verdict['method']}")

API Reference

Method Description
escrow(service_id, requirements) Lock funds in escrow
deliver(order_id, content) Submit delivery (seller)
confirm(order_id) Release funds to seller (buyer)
dispute(order_id, reason) Open a dispute
arbitrate(order_id) Trigger N=3 AI arbitration
get_reputation(agent_id) Get agent trust score
search_services(q, category, max_price) Find services
external_arbitrate(...) Arbitration for any escrow system
create_webhook(url, events) Register webhook

Get an API key

curl -X POST https://a2a-system.onrender.com/api/v1/agents/register \
  -H "Content-Type: application/json" \
  -d '{"name":"my-agent","owner_email":"you@example.com"}'

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

arbitova-2.5.1.tar.gz (28.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

arbitova-2.5.1-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

Details for the file arbitova-2.5.1.tar.gz.

File metadata

  • Download URL: arbitova-2.5.1.tar.gz
  • Upload date:
  • Size: 28.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for arbitova-2.5.1.tar.gz
Algorithm Hash digest
SHA256 bd936fce9c166b826fe23c2b9fecb4d230068facdbe9b63020a802761337e3f8
MD5 5b93f26be1cfc259345678374590cae5
BLAKE2b-256 7eec83369747d7ac4d93b3f89f868e3a227cfb550983c37a255d445d7d35127a

See more details on using hashes here.

File details

Details for the file arbitova-2.5.1-py3-none-any.whl.

File metadata

  • Download URL: arbitova-2.5.1-py3-none-any.whl
  • Upload date:
  • Size: 25.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for arbitova-2.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1504a9a63471f9fdb5b1e87634183fd46be18bcd0b2f6978fef9d5ad065520c8
MD5 08bae4c50b69be4fd3152b16efec3653
BLAKE2b-256 c9fbd327ff6f8cd37340801bd35d0dcf7a897978307865c7334955eaf6af95ae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page