# ToBTCSwapState

Defined in: [atomiq-sdk/src/swaps/escrow\_swaps/tobtc/IToBTCSwap.ts:60](https://github.com/atomiqlabs/atomiq-sdk/blob/786509324f7f09c427e9ccfe527d82e496f06af5/src/swaps/escrow_swaps/tobtc/IToBTCSwap.ts#L60)

State enum for escrow-based Smart chain -> Bitcoin (on-chain & lightning) swaps

## Enumeration Members

### REFUNDED

```
REFUNDED: -3;
```

Defined in: [atomiq-sdk/src/swaps/escrow\_swaps/tobtc/IToBTCSwap.ts:65](https://github.com/atomiqlabs/atomiq-sdk/blob/786509324f7f09c427e9ccfe527d82e496f06af5/src/swaps/escrow_swaps/tobtc/IToBTCSwap.ts#L65)

Intermediary (LP) was unable to process the swap and the funds were refunded on the source chain

***

### QUOTE\_EXPIRED

```
QUOTE_EXPIRED: -2;
```

Defined in: [atomiq-sdk/src/swaps/escrow\_swaps/tobtc/IToBTCSwap.ts:69](https://github.com/atomiqlabs/atomiq-sdk/blob/786509324f7f09c427e9ccfe527d82e496f06af5/src/swaps/escrow_swaps/tobtc/IToBTCSwap.ts#L69)

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

***

### QUOTE\_SOFT\_EXPIRED

```
QUOTE_SOFT_EXPIRED: -1;
```

Defined in: [atomiq-sdk/src/swaps/escrow\_swaps/tobtc/IToBTCSwap.ts:74](https://github.com/atomiqlabs/atomiq-sdk/blob/786509324f7f09c427e9ccfe527d82e496f06af5/src/swaps/escrow_swaps/tobtc/IToBTCSwap.ts#L74)

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

***

### CREATED

```
CREATED: 0;
```

Defined in: [atomiq-sdk/src/swaps/escrow\_swaps/tobtc/IToBTCSwap.ts:79](https://github.com/atomiqlabs/atomiq-sdk/blob/786509324f7f09c427e9ccfe527d82e496f06af5/src/swaps/escrow_swaps/tobtc/IToBTCSwap.ts#L79)

Swap was created, use the [IToBTCSwap.commit](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/IToBTCSwap.md#commit) or [IToBTCSwap.txsCommit](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/IToBTCSwap.md#txscommit) to initiate it by creating the swap escrow on the source chain

***

### COMMITED

```
COMMITED: 1;
```

Defined in: [atomiq-sdk/src/swaps/escrow\_swaps/tobtc/IToBTCSwap.ts:85](https://github.com/atomiqlabs/atomiq-sdk/blob/786509324f7f09c427e9ccfe527d82e496f06af5/src/swaps/escrow_swaps/tobtc/IToBTCSwap.ts#L85)

Swap escrow was initiated (committed) on the source chain, the intermediary (LP) will now process the swap. You can wait till that happens with the [IToBTCSwap.waitForPayment](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/IToBTCSwap.md#waitforpayment) function.

***

### SOFT\_CLAIMED

```
SOFT_CLAIMED: 2;
```

Defined in: [atomiq-sdk/src/swaps/escrow\_swaps/tobtc/IToBTCSwap.ts:90](https://github.com/atomiqlabs/atomiq-sdk/blob/786509324f7f09c427e9ccfe527d82e496f06af5/src/swaps/escrow_swaps/tobtc/IToBTCSwap.ts#L90)

The intermediary (LP) has processed the transaction and sent out the funds on the destination chain, but hasn't yet settled the escrow on the source chain.

***

### CLAIMED

```
CLAIMED: 3;
```

Defined in: [atomiq-sdk/src/swaps/escrow\_swaps/tobtc/IToBTCSwap.ts:94](https://github.com/atomiqlabs/atomiq-sdk/blob/786509324f7f09c427e9ccfe527d82e496f06af5/src/swaps/escrow_swaps/tobtc/IToBTCSwap.ts#L94)

Swap was successfully settled by the intermediary (LP) on the source chain

***

### REFUNDABLE

```
REFUNDABLE: 4;
```

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

Intermediary (LP) was unable to process the swap and the swap escrow on the source chain is refundable, call [IToBTCSwap.refund](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/IToBTCSwap.md#refund) or [IToBTCSwap.txsRefund](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/IToBTCSwap.md#txsrefund) to refund
