> For the complete documentation index, see [llms.txt](https://techdocs.korprotocol.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://techdocs.korprotocol.io/sdk-reference/client_methods/dispute_client.md).

# Dispute Client

## DisputeClient

The `DisputesClient` can be used to raise, cancel, and resolve disputes.

### Methods

* raiseDispute
* cancelDispute
* resolveDispute
* checkDispute

### raiseDispute

Raises a dispute on a given IpId

| Method         | Type                                                              |
| -------------- | ----------------------------------------------------------------- |
| `raiseDispute` | `(request: raiseDisputeRequest) => Promise<raiseDisputeResponse>` |

* **Parameters**:
  * `request.ipId`: Ip Id for the disputed asset.
  * `request.evidenceLink`: External evidence link.
  * `request.tag`: Dispute type tag.
  * `request.tier`: Tier type of dispute.
  * `request.amount`: Amount required to pay for raising the dispute.
  * `request.chainId`: The identifier for the blockchain network in the request.
* **Returns**:
  * `response.txhash` - The transaction hash.
  * `response.disputeID` - Dispute Id.

### cancelDispute

Cancel a dispute on a given Ip Id.

| Method          | Type                                                                |
| --------------- | ------------------------------------------------------------------- |
| `cancelDispute` | `(request: cancelDisputeRequest) => Promise<cancelDisputeResponse>` |

* **Parameters**:
  * `request.disputeId`: Dispute Id.
  * `request.chainId`: The identifier for the blockchain network in the request.
* **Returns**:
  * `response.txhash` - The transaction hash.

### resolveDispute

Resolve a dispute on a given Ip Id

| Method           | Type                                                                  |
| ---------------- | --------------------------------------------------------------------- |
| `resolveDispute` | `(request: resolveDisputeRequest) => Promise<resolveDisputeResponse>` |

* **Parameters**:
  * `request.disputeId`: Dispute Id.
  * `request.chainId`: The identifier for the blockchain network in the request.
* **Returns**:
  * `response.txhash` - The transaction hash.

### checkDispute

Check dispute status on a given Ip Id

| Method         | Type                                                              |
| -------------- | ----------------------------------------------------------------- |
| `checkDispute` | `(request: checkDisputeRequest) => Promise<checkDisputeResponse>` |

* **Parameters**:
  * `request.disputeId`: Dispute Id.
  * `request.chainId`: The identifier for the blockchain network in the request.
* **Returns**:
  * `response.status` - Status of dispute on a given Ip Id.
