# Order States

### Funding

**WaitingForFundingTx** - The HTLC has been created and is waiting for an on-chain funding transaction.

**WaitingForFundingTxConfirmation** - An on-chain funding transaction has been broadcasted but has not been confirmed.

**WaitingForAdditionalFundingTxConfirmation** - An on-chain funding transaction has been confirmed but has not met the confirmation threshold required to complete the swap. Wait for more confirmations and the order will move to Funded.

**PartiallyFunded** - The transaction has been partially funded, meaning a transaction has been sent but the total amount of funds sent has not reached the quote amount. Another transaction must be sent so that the total amount of funding is equal to the amount given in the quote.

**Funded** - The HTLC has been funded to the correct amount. After quote provider pays the Lightning Invoice, they will receive the preimage to unlock the funds.

### **Refund**

**WaitingForRefundTx** - The swap was not completed successfully and HTLC's timelock has passed. A transaction can be sent to reclaim funds.

**AddressBlacklistedWaitingForRefundTx** - The transaction cannot be completed because the address is blacklisted. Send a refund transaction to reclaim funds.

**WaitingForRefundTxConfirmation** - A refund transaction has been broadcast to the network but has not confirmed yet.

**Refunded** - The refund transaction has been confirmed and the funds have been sent back to the user.

### Other States

**Complete** - The swap is complete. The invoice has been paid and the funds from the HTLC have been swept by the liquidity provider.

**FundWindowElapsed** - The window to fund the HTLC has elapsed. Request a new quote to start the swap process again.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://radarrelay.gitbook.io/redshift-api-documentation/getting-started/definitions/order-states.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
