Skip to main content

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


Download files

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

Source Distribution

a2a_settlement-1.0.0.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

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

a2a_settlement-1.0.0-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

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

Hashes for a2a_settlement-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f0f1ce54390bc586c2d67ff840d91d1d15776a553324e52744fc716840a72561
MD5 50506bd69a7a90beb63fb85c9289f3d7
BLAKE2b-256 ee84c86c25dabffaa1c584159d465f63d61ecfaa7e94cbf36b6c2f4c68389a6c

See more details on using hashes here.

Provenance

The following attestation bundles were made for a2a_settlement-1.0.0.tar.gz:

Publisher: publish-sdk.yml on a2a-settlement/a2a-settlement

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for a2a_settlement-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48527feb2dbfe8affd93bba39757596ee26a75a78c4021bee373f4a4f2a96e41
MD5 bbd7ca8c1476ca02f18f1305073e5d45
BLAKE2b-256 55a91018db3ee090819e02148bd21dc4ad793a1418585bf110da376c26fd8649

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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