payment
Build an unsigned x402 funds-locking transaction for a payment. (+READ access required)
Builds an unsigned Cardano funds-locking transaction for an existing payment request. The seller calls this on behalf of the buyer (x402 protocol). No state is saved — the returned CBOR must be signed by the buyer and submitted to the network.
post/payment/x402
Request
- Base URL: ./../api/v1/ (relative, and the document was published on a file host, not at the API’s origin)
- URL: ./../api/v1/payment/x402
- Auth: API key in header token
Request body
Example request
{
"network": "Preprod",
"blockchainIdentifier": "blockchain_identifier",
"buyerAddress": "addr_test1qp..."
}Response
Unsigned transaction CBOR ready for buyer to sign and submit
Example response
{
"status": "Success",
"data": {
"unsignedTxCbor": "84a500818258...",
"collateralReturnLovelace": "1500000"
}
}