Escrow-based payment settlement for the A2A protocol
Project description
a2a-settlement
Escrow-based payment settlement for the A2A protocol.
A2A-SE holds funds in escrow during task execution and releases them on completion — or refunds them on failure. Zero modifications to A2A core. Currency-agnostic.
RequesterAgent <---- A2A ----> ProviderAgent
| |
+--------- HTTPS (A2A-SE) ------+
Exchange
escrow / release / refund
Install
pip install a2a-settlement
With Ed25519 identity helpers:
pip install a2a-settlement[identity]
Quick start
from a2a_settlement import SettlementExchangeClient
client = SettlementExchangeClient("https://your-exchange.example.com")
# Create an escrow
escrow = await client.create_escrow(
payer_id="agent-alice",
payee_id="agent-bob",
amount="10.00",
currency="USD",
task_id="task-123",
)
# Release funds on task completion
await client.release_escrow(escrow["escrow_id"])
Features
- Escrow lifecycle — create, release, refund, and dispute escrows
- AgentCard builder — generate A2A-SE extension blocks for agent cards
- Signed requests — Ed25519 request signing for authenticated API calls
- Task metadata — helpers for A2A message/task
metadata["a2a-se"] - Pricing models — fixed, per-message, and time-based pricing
Links
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file a2a_settlement-1.0.0.tar.gz.
File metadata
- Download URL: a2a_settlement-1.0.0.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0f1ce54390bc586c2d67ff840d91d1d15776a553324e52744fc716840a72561
|
|
| MD5 |
50506bd69a7a90beb63fb85c9289f3d7
|
|
| BLAKE2b-256 |
ee84c86c25dabffaa1c584159d465f63d61ecfaa7e94cbf36b6c2f4c68389a6c
|
Provenance
The following attestation bundles were made for a2a_settlement-1.0.0.tar.gz:
Publisher:
publish-sdk.yml on a2a-settlement/a2a-settlement
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
a2a_settlement-1.0.0.tar.gz -
Subject digest:
f0f1ce54390bc586c2d67ff840d91d1d15776a553324e52744fc716840a72561 - Sigstore transparency entry: 1060062550
- Sigstore integration time:
-
Permalink:
a2a-settlement/a2a-settlement@2c65ff1fee0a0fc141dac7d66b1680e6987529a9 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/a2a-settlement
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-sdk.yml@2c65ff1fee0a0fc141dac7d66b1680e6987529a9 -
Trigger Event:
release
-
Statement type:
File details
Details for the file a2a_settlement-1.0.0-py3-none-any.whl.
File metadata
- Download URL: a2a_settlement-1.0.0-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48527feb2dbfe8affd93bba39757596ee26a75a78c4021bee373f4a4f2a96e41
|
|
| MD5 |
bbd7ca8c1476ca02f18f1305073e5d45
|
|
| BLAKE2b-256 |
55a91018db3ee090819e02148bd21dc4ad793a1418585bf110da376c26fd8649
|
Provenance
The following attestation bundles were made for a2a_settlement-1.0.0-py3-none-any.whl:
Publisher:
publish-sdk.yml on a2a-settlement/a2a-settlement
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
a2a_settlement-1.0.0-py3-none-any.whl -
Subject digest:
48527feb2dbfe8affd93bba39757596ee26a75a78c4021bee373f4a4f2a96e41 - Sigstore transparency entry: 1060062609
- Sigstore integration time:
-
Permalink:
a2a-settlement/a2a-settlement@2c65ff1fee0a0fc141dac7d66b1680e6987529a9 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/a2a-settlement
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-sdk.yml@2c65ff1fee0a0fc141dac7d66b1680e6987529a9 -
Trigger Event:
release
-
Statement type: