On this page
One system. Composable layers.

A payment agent with explicit boundaries

The A2A transport exposes a JSON-RPC payment agent bound to one hosted environment. Its agent card declares served skills and enforced gateway scopes. The runtime never signs: a payment is a caller-signed EIP-1559 transaction that the runtime forwards, and verified receipts establish the monetary outcome.

Install the runtime

layerx environment use beta
layerx auth set --environment beta
layerx install a2a --environment beta --key operator
layerx a2a start
layerx a2a status

The identity session is read from stdin by auth set. Installation provisions a gateway key and stores its secret in credential storage. Payment mode grants activity:write and receipt:read. The --source-account and --asset flags are optional and may both be omitted; they are validated at install time but bind nothing at serve time, because the served runtime holds only its client, network ID, environment, and endpoint. The default listener is 127.0.0.1:9433.

Read-only and credential rotation

layerx install a2a --environment beta --read-only
layerx a2a stop
# Rotate the installed credentials.
layerx install a2a --environment beta --key operator --rotate

Read-only installation grants receipt:read. A separate installation-local Bearer protects incoming task requests. It lives in the owner-only authorization file; the hosted gateway credential remains in secure credential storage. Agent-card discovery is public on the loopback listener.

Discover the agent card

GET /.well-known/agent-card.json
# Compatibility discovery path:
GET /.well-known/agent.json

The card uses A2A protocol version 0.3.0 and preferred transport JSONRPC. It includes URL, software version, JSON input/output modes, skill descriptors, the layerxLocalBearer security scheme and an environment extension containing environment, deployment mode and scopes. Read this card before choosing a skill.

SkillInputsAuthority and evidence
receipt.getactivity_id, a 0x-prefixed 64-hex transaction hash.Requires receipt read scope; fetched via pax_sequencerReceipt. Verification requires independently pinned receipt keys; the gateway does not verify it for you.
activity.submitraw_transaction only: a caller-signed EIP-1559 transaction as 0x02… hex.Requires activity write scope; submitted unchanged via eth_sendRawTransaction. The runtime constructs and signs nothing.
faucet.requestDID and public key.Uses the approved beta allocation policy and the served deployment's permissions.
Prompt template with role, context and task fields

Send a structured task

POST / HTTP/1.1
Authorization: Bearer <installation-local-a2a-credential>
Content-Type: application/json

{"jsonrpc":"2.0","id":1,"method":"message/send","params":{
  "message":{
    "kind":"message","role":"user","messageId":"receipt-check-01",
    "contextId":"treasury-reconciliation",
    "parts":[{"kind":"data","data":{
      "skill":"receipt.get","arguments":{"activity_id":"0x<64-hex-transaction-hash>"}
    }}]
  }
}}

HTTP requests carry an explicit Content-Length and one JSON body. A data part contains skill and arguments; a text part may contain the same object serialized as JSON. The server admits only skills in its card. It generates task and artifact IDs and retains the submitted message in task history.

Payment arguments

{"skill":"activity.submit","arguments":{
  "raw_transaction":"0x02<caller-signed-eip1559-transaction-hex>"
}}

raw_transaction is the sole argument. There are no destination, amount, account-sequence, validity-window, fee-limit, or idempotency-key arguments: destination, amount, nonce, and fees are whatever the caller signed into the transaction. The returned hash must match the raw transaction, and the caller retains it for receipt lookup.

Task queue with one ready task and two waiting tasks

Track task state and protocol state

{"jsonrpc":"2.0","id":2,"method":"tasks/get","params":{"id":"<task-id>"}}
{"jsonrpc":"2.0","id":3,"method":"tasks/cancel","params":{"id":"<task-id>"}}
Task stateMeaningNext step
completedThe skill returned its result.Inspect the artifact and verify the monetary outcome evidence.
submittedGateway state is acknowledged or pending.Retain the existing transaction hash and reconcile its receipt.
unknownThe gateway outcome is uncertain.Look up the original transaction before submitting another write.
rejectedThe gateway refused the operation or skill execution failed.Read the task status message and resolve its cause.

The task artifact carries the skill result as a data part. A completed transport task does not independently establish final settlement. Submitted protocol activities cannot be canceled by this transport; terminal tasks also cannot be canceled. Preserve transaction hashes and receipt evidence outside the bounded runtime task ledger.

Capabilities, errors and policy

The card declares streaming, push notifications and transition-history capabilities as false for this JSON-RPC runtime. Use tasks/get and receipt reads. Unsupported streaming, resubscription, and push-configuration requests return -32004, as does tasks/cancel on a submitted or unknown task; canceling a terminal task returns -32002. Unknown methods or unserved skills return -32601; invalid arguments return -32602; missing tasks return -32001. Malformed JSON returns -32700, a request without a method returns -32600, and internal failures return -32603. Missing or incorrect incoming Bearer credentials return HTTP 401.

Use owner policy, capability scope and budget and approval controls to bound agent spending. MCP routes tool calls through an enrolled daemon binding; this A2A runtime forwards caller-signed transactions under its installed gateway credential. See API authority and commitment levels, identity and CLI workflows.

Paxeer X · System documentationBack to top ↑

Ask Paxeer X Docs

Answers from the documentation.

What would you like to know?

Ask a question, find a guide, or get help with your next step.

Enter to send · Shift+Enter for a new line