Skip to main content
POST
Execute an x402 pay-per-request round

Headers

PAYMENT-SIGNATURE
string

Base64 x402 v2 payment payload. Omit on the first request to receive the 402 requirements.

Body

application/json

x402 execute request

Request body for POST /v1/x402/execute. It carries no timestamp and no payer, amount, signature or payment reference; payment is in PAYMENT-SIGNATURE.

signatures_required
integer
required

Requested quorum for this round. Must be at least protocol min_signers and at most the current node count.

Example:

3

registry_version
integer
required

Active on-chain registry version. Must match the current version.

Example:

42

apiConfig
object
required

Off-chain HTTP API configuration. Its canonical hash is the source ID.

encKeyBundle
object

End-to-end encryption envelope for private API configs. Omit for plaintext configs.

sourcePayments
string[]

Base64 x402 payloads for a paywalled API source, one per node in the round's eligible set. They pay the source, never Molpha.

x402Source
boolean

Declare a paywalled API source to be quoted in extensions.upstream before running the round.

Response

Signed aggregate; the payment is confirmed

Successful round response, shared by POST /v1/round/execute and POST /v1/x402/execute. The attestation payload and Schnorr signature are what verifiers consume.

status
string
Example:

"completed"

data
object