A refund returns the escrowed asset to the order’s user. It does not reverse a completed input swap. For CTM routing, the escrowed asset can differ from the asset the user originally sold.

EVM

The result can be refundable, not-yet, filled, settled, refunded, or cannot-tell. Do not interpret cannot-tell as evidence that no fill exists. The helper’s filled result describes destination evidence, not a contract restriction on refunds. The EVM escrow can refund a filled order after its effective deadline if finalisation has not completed. Provide the wallet when live escrow checks are required. prepareEvmRefund constructs the plan without sending it. refundEvmOrder validates the order identity, escrow state, and effective deadline before requesting the transaction. The user pays the transaction fee.

Solana

refundSolanaOrder requests the unsigned refund transaction from Infinity Hub. The order’s user signs and broadcasts it. The helper must validate the chain, program, accounts, and signer before sending. unwrap: true can close the entire wrapped-SOL account. Existing wrapped SOL in that account is also unwrapped. Obtain user approval for this effect.

Recovery

Read the effective deadline instead of relying only on signed expires. An expired blockhash requires a fresh transaction, after reconciliation of any prior broadcast. See refund rules and watcher behavior.