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-0.9.0.tar.gz (11.7 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-0.9.0-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file a2a_settlement-0.9.0.tar.gz.

File metadata

  • Download URL: a2a_settlement-0.9.0.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for a2a_settlement-0.9.0.tar.gz
Algorithm Hash digest
SHA256 4b15b08c5aef73964d3aa0da946c8b04ea3be9392482edd986c4c6dadd050fe9
MD5 8a41095f81b6ca3f53a2de51ca076756
BLAKE2b-256 d0e36dd4e17bef94789dfd23d844a30904ac4a3467b6f87e50369d5f61215561

See more details on using hashes here.

Provenance

The following attestation bundles were made for a2a_settlement-0.9.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-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: a2a_settlement-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 11.2 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-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fd27ea39b8d622684583bfa236af0d5f02f927158602f8a947421a75749f147b
MD5 8e69e64e52d40b17088345a4ddcb17e0
BLAKE2b-256 a6c3df8654eb9ce50b0a217e3bad87538d79ab83a290aa8e289470e860ff61f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for a2a_settlement-0.9.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