# Escrow & Dispute Contracts

[**TalentLayerEscrow.sol**](https://github.com/TalentLayer/talentlayer-id-contracts/blob/main/contracts/TalentLayerEscrow.sol) is the smart contract that handles escrow transactions for each service, it custody the money and allow hirer to release the money by milestone. Also, in case of a dispute it handle all the workflow and link with the configured arbitrator.&#x20;

It can used to:

* Validate a proposal for a given service and deposit the money
* Release money for the worker&#x20;
* Let the worker reimburse the hirer
* Raise a dispute
* As a platform, claim the fees earned

## Data Structure

![](https://1292612581-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxwTmt3MOuMIlBTH8NKY%2Fuploads%2FPcfyZyEDAiPWI1yObpNi%2Fimage.png?alt=media\&token=56ebf283-a978-4f95-99fa-8b0ecfa20d6e)

## Visualization: TalentLayerEscrow\.sol

<figure><img src="https://1292612581-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxwTmt3MOuMIlBTH8NKY%2Fuploads%2FY5TurwDcwtnaXTYNPYqF%2Fescrow.svg?alt=media&#x26;token=fb5acfba-7c38-439c-a0d9-9b0fe365e505" alt=""><figcaption></figcaption></figure>

## Visualization: TalentLayerArbitrator.sol

<figure><img src="https://1292612581-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxwTmt3MOuMIlBTH8NKY%2Fuploads%2FbNxsk1CpAMf7xHXjMtIp%2Farbitrator.svg?alt=media&#x26;token=58a25461-a328-4dae-a317-29ad65925990" alt=""><figcaption></figcaption></figure>

## Learn More

Learn more about our escrow and dispute system and how they function in workflows:&#x20;

{% content-ref url="../../../readme/basics/escrow-and-dispute" %}
[escrow-and-dispute](https://docs.talentlayer.org/readme/basics/escrow-and-dispute)
{% endcontent-ref %}
