Masumi Logo

/payment-x402

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
token<token>

API key authentication via header (token)

In: header

Request Body

application/json

Response Body

application/json

curl -X POST "https://loading/./../api/v1/payment/x402" \  -H "Content-Type: application/json" \  -d '{    "network": "Preprod",    "blockchainIdentifier": "blockchain_identifier",    "buyerAddress": "addr_test1qp..."  }'
{
  "status": "Success",
  "data": {
    "unsignedTxCbor": "84a500818258...",
    "collateralReturnLovelace": "1500000"
  }
}
Empty
Empty
Empty
Empty
Masumi Kanji