# Withdrawing Earnings on ETH/Base via splits

***With the integration of mainnet ETH and the Base L2, fxhash started using a solution call Splits to optimize the fund distribution. TLDR: To receive your project earnings, log into*** [***the splits app***](https://app.splits.org/) ***with the wallet that is supposed to receive the funds.***

## About [Splits.app](http://splits.app) & Withdrawing Funds on ETH

When publishing a project on mainnet ETH or the Base L2 network, funds received from the sale of the project’s editions do not directly/automatically get sent to your wallet, as you might be used to from releasing your projects on the Tezos side of fxhash - but rather get sent to a special contract that pools these funds from which they have to be manually withdrawn.

fxhash leverages [Splits.app](http://splits.app/) as an out-of-the-box solution to this end: Splits is a smart contract suite that provides all of the necessary functionality to optimize fund distribution on Ethereum based networks:

{% hint style="success" %}
**About the Split Contracts:** Split acts as an equity instrument by letting you define the percent of future value each recipient will earn. It's a payable smart contract that distributes all ETH & ERC20 tokens it receives among recipients according to pre-set ownership percentages.
{% endhint %}

<figure><img src="https://3455566235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPMgz5PcqIbAPWwLF7xWn%2Fuploads%2FaIhOxdAqr1744YtaXMAo%2FUntitled.png?alt=media&#x26;token=8c8c752b-5bec-4869-ba53-a7686e8fcd6b" alt=""><figcaption><p>If you’re curious to learn more about the technical details of these smart contracts work, you can explore the official <a href="https://docs.splits.org/core/split">Splits</a> docs here.</p></figcaption></figure>

If you have an fxhash project on ETH/Base, your fxhash profile should show you a button under your connected Eth wallet address, from which you can withdraw the received funds:

<figure><img src="https://3455566235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPMgz5PcqIbAPWwLF7xWn%2Fuploads%2FM3eWFShFbzNC5mlNvjGp%2FScreenshot_2024-07-24_at_11.54.14.png?alt=media&#x26;token=4fcae58e-876e-4588-91b2-1045d15adab2" alt=""><figcaption></figcaption></figure>

I should also show up in the your [Splits Dashboard](https://app.splits.org/) when you sync with the same wallet that you released the project under, where you can initiate the same withdrawal action.

## Splits for Collaborative Projects

Splits is also very convenient for collaborative projects, as it essentially streamlines the distribution of earnings between the involved parties - here’s an example for this, the project Week after Week, a collaboration between the WTBS team and the generative artist Alessandro Fiore:

<figure><img src="https://3455566235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPMgz5PcqIbAPWwLF7xWn%2Fuploads%2Fp1VlHEc7HqHu4wNvqgl6%2FScreenshot_2024-07-23_at_18.10.33.png?alt=media&#x26;token=db2dae3c-ea76-41fc-a7e4-3024e54cd26d" alt=""><figcaption></figcaption></figure>

Each collaborative fxhash project on Eth will have its own page/view over on the Splits app that visualizes how the funds are distributed among the recipients, and wether or not there currently are funds to be withdrawn.

The same is true for royalties generated from secondary sales of the minted editions, they are pooled under their own Split and can be viewed separately:

<figure><img src="https://3455566235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPMgz5PcqIbAPWwLF7xWn%2Fuploads%2Fq0Gn7F7kih5QzrZRNZni%2FScreenshot_2024-07-24_at_10.58.42.png?alt=media&#x26;token=09767d65-ac85-4ce0-84aa-b7ef0d217ab1" alt=""><figcaption></figcaption></figure>

Clicking on the “Distribute Balance” will then prompt if you want to send the pooled funds to the involved parties, and optionally if you want to also directly withdraw them:

<figure><img src="https://3455566235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPMgz5PcqIbAPWwLF7xWn%2Fuploads%2FOnnHvs0u62FUW9VaE9Nw%2FScreenshot_2024-07-24_at_10.59.17.png?alt=media&#x26;token=f1d73054-17d4-4eaf-b237-19c6a0827677" alt=""><figcaption></figcaption></figure>

Some noteworthy points about the Split contract here:

* **Withdrawal of the funds can be initiated by any party**. It can be either one of the involved creators, or even another third party \[is this accurate?]. Naturally, the funds will always only be sent to the addresses that are stored by the smart contract.
* **Splits are payable contracts.** This means that splits \*\*\*\*can received funds and tokens similar to how a regular wallet can receive assets. Withdrawing them is optional.

{% hint style="warning" %}
Always be cautious when handling unknown assets, the sale thereof might be malicious. Check the Safety and Security section of the docs for more info.
{% endhint %}

## Manually Withdrawing from Splits

In the case of an outage of some sort, it is also possible to withdraw the funds manually from the contract, which has to be effectuated from the [Etherscan.io](http://etherscan.io/) website (Etherscan is the primary blockchain explorer for ethereum).

**The steps for this on mainnet ETH are the following:**

1. Navigate to [Etherscan.io](http://etherscan.io/)
2. In the search bar paste one of the following fxhash minter contract addresses - depending on which sales method you have used:
   1. **dutch\_auction\_minter\_v1:** 0x1bC736a2b144096a4752534C557D7E6C311CcAF1
   2. **fixed\_price\_minter\_v1:** 0xB645cFfD9bFB93c2c181d5Be0D6a8C1d81C2aEf3
3. It will show you a dedicated page for the contract address, under which you should see a number of actions.

   <figure><img src="https://3455566235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPMgz5PcqIbAPWwLF7xWn%2Fuploads%2FeZIgVXL7B0s69l2qp6Qm%2FUntitled%201.png?alt=media&#x26;token=b45efc21-05a8-4bf4-92ec-8dfd19840091" alt=""><figcaption></figcaption></figure>
4. Click on the “Contract” button.
5. You should a new view that has an option called “Write Contract”

   <figure><img src="https://3455566235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPMgz5PcqIbAPWwLF7xWn%2Fuploads%2FPVCc6oodUOBxxdpnmqaP%2FUntitled%202.png?alt=media&#x26;token=218211a5-af84-4f40-86f3-eda7f8eb1cb9" alt=""><figcaption></figcaption></figure>
6. This will reveal a list of actions that you can perform - in this case we care about the very last one #12, titled “withdraw”

   <figure><img src="https://3455566235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPMgz5PcqIbAPWwLF7xWn%2Fuploads%2F3pBjMw5TuC3Ns3DQezz5%2FUntitled%203.png?alt=media&#x26;token=3ff2c293-f7be-46ea-82a6-9bc3054057b6" alt=""><figcaption></figcaption></figure>
7. Clicking on withdraw will then reveal a field into which you need to paste the token address of the project’s funds that you want to withdraw:

   <figure><img src="https://3455566235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPMgz5PcqIbAPWwLF7xWn%2Fuploads%2FNPJ9w54peS0NY3gt8hFe%2FScreenshot_2024-07-24_at_11.42.17.png?alt=media&#x26;token=c6e4c79f-310d-40cb-acf0-23721b965390" alt=""><figcaption></figcaption></figure>
8. You can find your token’s address over on its fxhash page - example:

   <figure><img src="https://3455566235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPMgz5PcqIbAPWwLF7xWn%2Fuploads%2FDWth15QDabpVMuMJj60n%2FUntitled%204.png?alt=media&#x26;token=23cc4ab6-6890-4884-a4a4-485ea9c176e1" alt=""><figcaption></figcaption></figure>
9. You also need to sync your wallet with [Etherscan.io](http://etherscan.io/) before you can effectuate the withdraw action - there’s a little button titled “Connect to Web3” that lets you do this:

   <figure><img src="https://3455566235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPMgz5PcqIbAPWwLF7xWn%2Fuploads%2Flv70LSqWlVAQX1QNz1uh%2FScreenshot_2024-07-24_at_11.46.03.png?alt=media&#x26;token=2f3f8163-8a6d-4421-b897-3c1e00823e3c" alt=""><figcaption></figcaption></figure>

   <figure><img src="https://3455566235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPMgz5PcqIbAPWwLF7xWn%2Fuploads%2FHL2o2GFgAoUVcIOaIkQ9%2FScreenshot_2024-07-24_at_11.46.11.png?alt=media&#x26;token=820b182d-afbd-42e8-87aa-4fd223a9fea4" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
For tokens on the Base L2 you need to do these same steps, but via the \[Basescan.io]\(<http://basescan.io/>) website rather than Etherscan.\
\
The contract addresses for the fxhash minters are different in this case:&#x20;

* **dutch\_auction\_minter\_v1**: 0x9667a1Cf26223c9de22207DD93cfEEc9237b8f4E
* **fixed\_price\_minter\_v1**: 0x4bDcaC532143d8d35ed759189EE22E3704580b9D
  {% endhint %}
