# Mesh Presents: "An Aiken Library To Make Devs' day-to-day Lives Easier" | Today's contract: Payment Splitter

**URL:** <https://forum.cardano.org/t/mesh-presents-an-aiken-library-to-make-devs-day-to-day-lives-easier-todays-contract-payment-splitter/134011>\
**Category:** Smart Contracts\
**Tags:** mesh\
**Created:** [10 July 2024 22:15 UTC](https://forum.cardano.org/t/mesh-presents-an-aiken-library-to-make-devs-day-to-day-lives-easier-todays-contract-payment-splitter/134011 "2024-07-10T22:15:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sebastian\_Pabon](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/sebastian_pabon/32/86686_2.png) [@Sebastian\_Pabon](https://forum.cardano.org/u/Sebastian_Pabon)\
**Post date:** [10 July 2024 22:15 UTC](https://forum.cardano.org/t/mesh-presents-an-aiken-library-to-make-devs-day-to-day-lives-easier-todays-contract-payment-splitter/134011/1 "2024-07-10T22:15:08Z")

</div>

Use cases are named as such because observers can easily see them represented in the real world, providing solutions for their day-to-day lives.

There has been no more common use case in human societies of all times than to split a payment equally among several parties. The advantage of using the Aiken contract from the Mesh library is: It puts an end to arguments between people. The code makes the decisions.

 ![Payment Splitter contract](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/a/e/ae37fd14e211098f83c4015e568e70a55d5f44eb.jpeg)

👩🔬 Let’s experience the sense of peace that comes from fair distribution without discussions, brought to us by the Mesh team.

Your role: **two roles**.

- **First** : _Donor_
- **Next** : _Beneficiary_, together with 4 other arbitrary beneficiaries assigned for this demo.

 ![Contract Beneficiaries](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/8/c/8c2c098ad53e25bd370b3a48c1312e796cd2dff3.png)

Your donation as a _Donor_: 10 tAdas.

🍰Your share of the pie as a _Beneficiary_: 2 tAdas.

✅ **Step 1** : Go to [**https://meshjs.dev/smart-contracts/payment-splitter**](https://meshjs.dev/smart-contracts/payment-splitter)

✅ **Step 2** : Go to the “_Send Lovelace to Payment Splitter_” section.

✅ **Step 3** : Connect your preprod wallet funded with _test Adas_.

✅ **Step 4** : Click the “_Send Lovelace to Payment Splitter_” button.

> _ **🎯Challenge: copy the TxHash thrown in the “Result” field. Go to** _ [_ **https://preprod.cardanoscan.io** _](https://preprod.cardanoscan.io/) _ **and see how the money flows.** _

✅ **Step 5** : Now, go to the “_Trigger Payout_” section and click on the “_Trigger Payout_” button.

> _ **🎯Challenge: copy the TxHash thrown in the “Result” field. Go to** _ [_ **https://preprod.cardanoscan.io** _](https://preprod.cardanoscan.io/) _ **and see again how the money went among the 5 beneficiaries.** _

### And that’s it!

🔦Would you like to take a look at the source code of the contract? For sure! Go to [**https://github.com/MeshJS/mesh/tree/main/packages/contracts/src/payment-splitter**](https://github.com/MeshJS/mesh/tree/main/packages/contracts/src/payment-splitter)

🧑🍳Want to know what we are cooking for this _ **Catalyst Fund 12** _ and give us your ❤support to keep the 💡lights on? **Thanks in advance**. [**https://meshjs.dev/about/catalyst**](https://meshjs.dev/about/catalyst)

[![Mesh - Catalyst F12 proposals](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/9/a/9ad5ab51c72956f8bf98203b5c413131dfa77649.jpeg)](https://meshjs.dev/about/catalyst)

## Mesh: making life 🌤easier for developers.

[![Mesh Aiken Library](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/9/c/9c19b687efa64c44742213424abc09c0c2b4631b.jpeg)](https://meshjs.dev/smart-contracts/)
