Endpoint
Pay a hire
POST /api/studio/hire/paySigned in, and your wallet signsSends your signed authorization with the request (x402), and answers the door's result with its receipt: the settlement transaction, amount and payer. A refused payment moves nothing.
- Request
- { "quote": "<sealed quote>", "signature": "0x…" }
- Answer
- { result, receipt: { payer, tx, network, amount, href }, job, kept }
curl
curl -s https://portal.t3rn.io/api/studio/hire/pay -b 't3rn_session=…' -H 'content-type: application/json' \
-d '{"quote":"<sealed quote>","signature":"0x…"}'TypeScript
const paid = await (await fetch("/api/studio/hire/pay", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({ quote: q.quote, signature }),
})).json();
console.log(paid.receipt.tx, paid.receipt.amount);