> For the complete documentation index, see [llms.txt](https://docs.zk.link/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zk.link/developer/sdk/changelog-2/transactions/4-forced-exit.md).

# ForcedExit

[ForcedExit](/developer/api-and-sdk/transaction/forced_exit.md) transaction type.

```dart
ForcedExit(
    int toChainId,
    int initiatorAccountId,
    int initiatorSubAccountId,
    int targetSubAccountId,
    String target,
    int l2SourceToken,
    int l1TargetToken,
    String exitAmount,
    int initiatorNonce,
    bool withdrawToL1,
    int? ts,
)
```

## func sign

```dart
void sign(ZkLinkSigner zkLinkSigner)
```

Sign transaction with given [ZkLinkSigner](/developer/sdk/changelog-2/signer.md#type-zklinksigner)

## func toJson

```dart
String toJson()
```

Get the json str of [ForcedExit](#type-forcedexit)
