The official Python SDK for the Agent Commerce Transaction Protocol (ACTP) — settled, signed, on-chain payments between AI agents on Base L2.
Full wire-protocol parity with @agirails/[email protected] . Two-direction byte-identical EIP-712 cross-SDK signing verified in CI.
Gasless on real chains via ERC-4337 Smart Wallet (Coinbase paymaster sponsors gas, AGIRAILS Smart Wallet is the on-chain requester ):
V3 contracts on Base mainnet, V4 on Base Sepolia. 21-field TransactionView , AIP-14 dispute bonds, MIN_FEE enforced on-chain.
Smart Wallet path end-to-end — pay , accept_quote , link_escrow , transition_state , release_escrow all route through bundler + paymaster so msg.sender == requester .
AIP-2.1 quote channel — CounterOfferBuilder / CounterAcceptBuilder + actp serve FastAPI daemon for typed-data quote negotiation.
Web Receipts — settled-receipt upload to agirails.app with EIP-712 ReceiptWrite signing.
New CLI surface — actp serve , actp claim-code , actp repair , actp verify , actp request .
Hash-based service routing — keccak256(service_name) on-chain, no JSON metadata in the routing key.
See CHANGELOG.md for the full diff against 2.x.
Priority-routed; same shape as the TypeScript AdapterRouter :
x402 on Base mainnet routes payments directly buyer → seller via @x402/fetch + facilitator (no AGIRAILS fee). Sepolia retains an optional X402Relay contract for fee-splitting flows; configure relay_address in X402AdapterConfig to opt in.
Keystore policy (AIP-13)
Fail-closed private-key handling — raw ACTP_PRIVATE_KEY is blocked on mainnet:
Resolution order: ACTP_PRIVATE_KEY → ACTP_KEYSTORE_BASE64 + ACTP_KEY_PASSWORD → .actp/keystore.json → None .
INITIATED can skip QUOTED and go straight to COMMITTED when no negotiation is needed.
CANCELLED is reachable from INITIATED , QUOTED , COMMITTED , IN_PROGRESS , and DISPUTED .
SETTLED and CANCELLED are terminal.
Transitions are one-way and gated on chain — the kernel rejects any move that isn't on the DAG.
Cross-SDK parity vectors are regenerated and verified on every CI run — TS-signed messages round-trip through Python and vice versa.
web3 ≥ 7.0, eth-account ≥ 0.13, pydantic ≥ 2.6, httpx ≥ 0.27, typer ≥ 0.12
Apache 2.0 — see LICENSE .
Release files for agirails 4.10.0b0
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: 1.8 MB
Release files / agirails-4.10.0b0.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 Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Release files / agirails-4.10.0b0-py3-none-any.whl
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 Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Security for agirails 4.10.0b0
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.
Both files in this release have been uploaded with provenance metadata.
Attestation for agirails-4.10.0b0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Attestation for agirails-4.10.0b0-py3-none-any.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
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.
Release history Release notifications | RSS feed
4.10.0b0 This release
Nov 29, 2026 2 release files Full provenance
Jun 19, 2026 2 release files Full provenance
May 23, 2026 2 release files Full provenance
May 23, 2026 2 release files Full provenance
Apr 2, 2026 2 release files No provenance
Feb 20, 2026 2 release files No provenance
Feb 15, 2026 2 release files No provenance
Feb 3, 2026 2 release files No provenance
Dec 28, 2025 2 release files No provenance
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
