# OnchainForGasSwapState

Defined in: [atomiq-sdk/src/swaps/trusted/onchain/OnchainForGasSwap.ts:32](https://github.com/atomiqlabs/atomiq-sdk/blob/786509324f7f09c427e9ccfe527d82e496f06af5/src/swaps/trusted/onchain/OnchainForGasSwap.ts#L32)

State enum for trusted on-chain gas swaps

## Enumeration Members

### EXPIRED

```
EXPIRED: -3;
```

Defined in: [atomiq-sdk/src/swaps/trusted/onchain/OnchainForGasSwap.ts:36](https://github.com/atomiqlabs/atomiq-sdk/blob/786509324f7f09c427e9ccfe527d82e496f06af5/src/swaps/trusted/onchain/OnchainForGasSwap.ts#L36)

The swap quote expired without user sending in the BTC

***

### FAILED

```
FAILED: -2;
```

Defined in: [atomiq-sdk/src/swaps/trusted/onchain/OnchainForGasSwap.ts:40](https://github.com/atomiqlabs/atomiq-sdk/blob/786509324f7f09c427e9ccfe527d82e496f06af5/src/swaps/trusted/onchain/OnchainForGasSwap.ts#L40)

The swap has failed after the intermediary already received the BTC on the source chain

***

### REFUNDED

```
REFUNDED: -1;
```

Defined in: [atomiq-sdk/src/swaps/trusted/onchain/OnchainForGasSwap.ts:44](https://github.com/atomiqlabs/atomiq-sdk/blob/786509324f7f09c427e9ccfe527d82e496f06af5/src/swaps/trusted/onchain/OnchainForGasSwap.ts#L44)

Swap was refunded and BTC returned to the user's refund address

***

### PR\_CREATED

```
PR_CREATED: 0;
```

Defined in: [atomiq-sdk/src/swaps/trusted/onchain/OnchainForGasSwap.ts:48](https://github.com/atomiqlabs/atomiq-sdk/blob/786509324f7f09c427e9ccfe527d82e496f06af5/src/swaps/trusted/onchain/OnchainForGasSwap.ts#L48)

Swap was created, send the BTC to the swap address

***

### FINISHED

```
FINISHED: 1;
```

Defined in: [atomiq-sdk/src/swaps/trusted/onchain/OnchainForGasSwap.ts:52](https://github.com/atomiqlabs/atomiq-sdk/blob/786509324f7f09c427e9ccfe527d82e496f06af5/src/swaps/trusted/onchain/OnchainForGasSwap.ts#L52)

The swap is finished after the intermediary sent funds on the destination chain

***

### REFUNDABLE

```
REFUNDABLE: 2;
```

Defined in: [atomiq-sdk/src/swaps/trusted/onchain/OnchainForGasSwap.ts:56](https://github.com/atomiqlabs/atomiq-sdk/blob/786509324f7f09c427e9ccfe527d82e496f06af5/src/swaps/trusted/onchain/OnchainForGasSwap.ts#L56)

Swap is refundable because the intermediary cannot honor the swap request on the destination chain
