# FromBTCLNAutoSwapState

Defined in: [atomiq-sdk/src/swaps/escrow\_swaps/frombtc/ln\_auto/FromBTCLNAutoSwap.ts:58](https://github.com/atomiqlabs/atomiq-sdk/blob/786509324f7f09c427e9ccfe527d82e496f06af5/src/swaps/escrow_swaps/frombtc/ln_auto/FromBTCLNAutoSwap.ts#L58)

State enum for FromBTCLNAuto swaps

## Enumeration Members

### FAILED

```
FAILED: -4;
```

Defined in: [atomiq-sdk/src/swaps/escrow\_swaps/frombtc/ln\_auto/FromBTCLNAutoSwap.ts:62](https://github.com/atomiqlabs/atomiq-sdk/blob/786509324f7f09c427e9ccfe527d82e496f06af5/src/swaps/escrow_swaps/frombtc/ln_auto/FromBTCLNAutoSwap.ts#L62)

Swap has failed as the user didn't settle the HTLC on the destination before expiration

***

### QUOTE\_EXPIRED

```
QUOTE_EXPIRED: -3;
```

Defined in: [atomiq-sdk/src/swaps/escrow\_swaps/frombtc/ln\_auto/FromBTCLNAutoSwap.ts:66](https://github.com/atomiqlabs/atomiq-sdk/blob/786509324f7f09c427e9ccfe527d82e496f06af5/src/swaps/escrow_swaps/frombtc/ln_auto/FromBTCLNAutoSwap.ts#L66)

Swap has expired for good and there is no way how it can be executed anymore

***

### QUOTE\_SOFT\_EXPIRED

```
QUOTE_SOFT_EXPIRED: -2;
```

Defined in: [atomiq-sdk/src/swaps/escrow\_swaps/frombtc/ln\_auto/FromBTCLNAutoSwap.ts:71](https://github.com/atomiqlabs/atomiq-sdk/blob/786509324f7f09c427e9ccfe527d82e496f06af5/src/swaps/escrow_swaps/frombtc/ln_auto/FromBTCLNAutoSwap.ts#L71)

A swap is almost expired, and it should be presented to the user as expired, though there is still a chance that it will be processed

***

### EXPIRED

```
EXPIRED: -1;
```

Defined in: [atomiq-sdk/src/swaps/escrow\_swaps/frombtc/ln\_auto/FromBTCLNAutoSwap.ts:76](https://github.com/atomiqlabs/atomiq-sdk/blob/786509324f7f09c427e9ccfe527d82e496f06af5/src/swaps/escrow_swaps/frombtc/ln_auto/FromBTCLNAutoSwap.ts#L76)

Swap HTLC on the destination chain has expired, it is not safe anymore to settle (claim) the swap on the destination smart chain.

***

### PR\_CREATED

```
PR_CREATED: 0;
```

Defined in: [atomiq-sdk/src/swaps/escrow\_swaps/frombtc/ln\_auto/FromBTCLNAutoSwap.ts:83](https://github.com/atomiqlabs/atomiq-sdk/blob/786509324f7f09c427e9ccfe527d82e496f06af5/src/swaps/escrow_swaps/frombtc/ln_auto/FromBTCLNAutoSwap.ts#L83)

Swap quote was created, use [FromBTCLNAutoSwap.getAddress](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/FromBTCLNAutoSwap.md#getaddress) or [FromBTCLNAutoSwap.getHyperlink](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/FromBTCLNAutoSwap.md#gethyperlink) to get the bolt11 lightning network invoice to pay to initiate the swap, then use the [FromBTCLNAutoSwap.waitForPayment](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/FromBTCLNAutoSwap.md#waitforpayment) to wait till the lightning network payment is received by the intermediary (LP) and the destination HTLC escrow is created

***

### PR\_PAID

```
PR_PAID: 1;
```

Defined in: [atomiq-sdk/src/swaps/escrow\_swaps/frombtc/ln\_auto/FromBTCLNAutoSwap.ts:89](https://github.com/atomiqlabs/atomiq-sdk/blob/786509324f7f09c427e9ccfe527d82e496f06af5/src/swaps/escrow_swaps/frombtc/ln_auto/FromBTCLNAutoSwap.ts#L89)

Lightning network payment has been received by the intermediary (LP), but the destination chain HTLC escrow hasn't been created yet. Use [FromBTCLNAutoSwap.waitForPayment](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/FromBTCLNAutoSwap.md#waitforpayment) to continue waiting till the destination HTLC escrow is created.

***

### CLAIM\_COMMITED

```
CLAIM_COMMITED: 2;
```

Defined in: [atomiq-sdk/src/swaps/escrow\_swaps/frombtc/ln\_auto/FromBTCLNAutoSwap.ts:95](https://github.com/atomiqlabs/atomiq-sdk/blob/786509324f7f09c427e9ccfe527d82e496f06af5/src/swaps/escrow_swaps/frombtc/ln_auto/FromBTCLNAutoSwap.ts#L95)

Swap escrow HTLC has been created on the destination chain, wait for automatic settlement by the watchtowers using the [FromBTCLNAutoSwap.waitTillClaimed](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/FromBTCLNAutoSwap.md#waittillclaimed) function or settle manually using the [FromBTCLNAutoSwap.claim](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/FromBTCLNAutoSwap.md#claim) or [FromBTCLNAutoSwap.txsClaim](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/FromBTCLNAutoSwap.md#txsclaim) function.

***

### CLAIM\_CLAIMED

```
CLAIM_CLAIMED: 3;
```

Defined in: [atomiq-sdk/src/swaps/escrow\_swaps/frombtc/ln\_auto/FromBTCLNAutoSwap.ts:99](https://github.com/atomiqlabs/atomiq-sdk/blob/786509324f7f09c427e9ccfe527d82e496f06af5/src/swaps/escrow_swaps/frombtc/ln_auto/FromBTCLNAutoSwap.ts#L99)

Swap successfully settled and funds received on the destination chain
