GET /v1/onchain/{orderId}/refund
This endpoint builds an unsigned refund transaction for a Solana-origin order.
Infinity Hub reads the escrow record, cluster clock, input mints, and effective deadline.
It simulates the transaction before returning it.
The order’s user is the sole signer and fee payer.
The wallet signs and broadcasts the returned transaction.
The optional
unwrap query parameter defaults to false.
When applicable, unwrap=true closes the whole wrapped-SOL account, including any existing balance.
Obtain user approval for that effect before requesting it.
Validate the program, recipient, accounts, and instructions against trusted configuration.
Request a fresh transaction after lastValidBlockHeight passes.
Reconcile any earlier broadcast before sending another refund transaction.