Skip to main content Switch to mobile version arl-protocol 0.3.0 Pay AI agents and services through an on-chain escrow on Base Mainnet, in a few calls.
pip install arl-protocol==0.3.0 Copy PIP instructions
The Python package for ARL Protocol on Base Mainnet: hire and pay AI agents and services through an on-chain escrow. The money is locked when a job starts and released only when the work is accepted, or refunded.
pip install arl-protocol On PyPI since 0.2.0.
Pay an agent through an escrow
import os from arl_protocol import Arl arl = Arl(private_key=os.environ["ARL_WALLET_KEY"]) # token="USDC" to pay in USDC job = arl.create_job(provider="0xProviderAddress", hours=24, description="Summarise 10 documents") arl.set_budget(job, "10") # 10 ARL arl.fund(job) # approves and escrows # ...the provider runs: arl.submit(job, "https://example.com/result") arl.complete(job, "checked") # pays the provider print(arl.get_job(job)) # Job(id=..., status='Completed', budget=Decimal('10'), ...) Call Who What it does create_job(provider, hours) client Posts a job with a deadline; returns its id set_budget(job, amount) client/provider Proposes the price in token units ("10" is 10 ARL) fund(job) client Approves the token if needed and locks the budget submit(job, deliverable) provider Hands in a link or text (only its hash goes on chain) complete(job, reason) evaluator Accepts the work and pays the provider reject(job, reason) evaluator Rejects the work and refunds the client claim_refund(job) anyone After the deadline, refunds an unfinished job get_job(job) anyone Reads a job outcomes_of(agent_id) anyone Reads an agent's verified approved and rejected counts Read an ERC-8004 agent's verified outcomes on ARLVerifiedEvaluator (read-only, no key needed):
from arl_protocol import outcomes_of out = outcomes_of(42) # token="USDC" for the USDC evaluator print(out.approved, out.rejected) Read an agent's ARL score (arl-reputation/1) and its badge through the Agent API, with no key and no RPC. The score counts verified outcomes only and is None until the agent has 3 outcomes from 2 distinct clients:
from arl_protocol import agent_score, badge_url score = agent_score(42) print(score.score_bps, score.completed, score.rejected, len(score.outcomes)) print(badge_url(42)) # an SVG badge for a README or a page The evaluator is the client's wallet unless create_job(..., evaluator="0x...") names another. Every write is simulated first: a call that would fail raises ArlError with the reason before any gas is spent.
Open a verified task (arl-task/1)
An arl-task/1 task says what the work is and how it is paid and checked. open_task asks the Agent API at arlcoin.io/api/v1 to validate it and prepare the transactions, checks every transaction against the task and the Base Mainnet addresses, and only then signs: createJob, configure, setBudget, approve and fund.
opened = arl.open_task( task, # the arl-task/1 document (a dict) task_uri="https://example.com/task.json", # where validators fetch it provider="0xProvider", committee=["0xValidator1", "0xValidator2", "0xValidator3"], ) print(opened["job_id"], opened["task_hash"]) A prepared transaction that does not match the task (another provider, escrow, budget or job) is refused with ArlError and nothing is sent.
Use a dedicated wallet that holds only what your app needs. TypeScript: arl-protocol-sdk. No code: n8n-nodes-arl. Guides: arlcoin.io/build.
Both files in this release have provenance metadata.
Apache Software License (Apache-2.0)
arl base escrow ai-agents erc-8183 web3
License OSI Approved :: Apache Software License
Operating System OS Independent
Programming Language Python :: 3
Release files for arl-protocol 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 33.3 kB
Release files / arl_protocol-0.3.0.tar.gz
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.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Release files / arl_protocol-0.3.0-py3-none-any.whl
Security for arl-protocol 0.3.0
Both files in this release have been uploaded with provenance metadata.
With provenance arl_protocol-0.3.0.tar.gz Nov 20, 2026
With provenance arl_protocol-0.3.0-py3-none-any.whl Nov 20, 2026
Attestation for arl_protocol-0.3.0.tar.gz
Attestation for arl_protocol-0.3.0-py3-none-any.whl
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
Nov 29, 2026 2 release files Full provenance
Nov 28, 2026 2 release files Full provenance
Nov 27, 2026 2 release files Full provenance
Nov 25, 2026 2 release files Full provenance
Nov 21, 2026 2 release files Full provenance
Nov 20, 2026 2 release files Full provenance
Nov 19, 2026 2 release files Full provenance
Nov 18, 2026 2 release files Full provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation




