Part of the XH5 Life Token experiment is giving back to the Stellar community and supporting other projects on the network. One amazing project that recently caught my eye was Lumenthropy, whose mission is to encourage nonprofit organizations to accept lumen donations and to inspire people that hold lumens to donate to worthy causes. However, I wanted to donate my own personal XH5 token as a proof of concept that personal tokens can be a viable asset. That they have value. But to accept any asset Lumenthropy would first have to add a trustline. And this seemed like it was outside of their stated mission to encourage nonprofit organizations to accept lumen donations.
How do you donate an asset to Lumenthropy if it isn’t Stellar Lumens?
The answer is a Path Payment Strict Send operation. And while the operation is easy enough to perform in Stellar Laboratory, I think with a little coding someone could build a user friendly transfer gateway for Lumenthropy that would take a lot of work out of the donors end.
Until then, this is how you donate any Stellar asset to Lumenthropy so that they receive Stellar lumens to fund their charities.
Open Stellar Laboratory and choose the Transaction Builder.
Insert your account address in the Source Account field.
Once you do that a purple button will pop up saying, “Fetch next sequence number for account,” which will include the first ten characters of your wallet address. Click that to automatically fill in the Transaction Sequence Number field.
Scroll down to Operation Type and choose Path Payment Strict Send from the drop-down menu.
In the Destination field that appears, add the address for Lumenthropy donations: GBAY3ATQZNL2N3KCKPKH33WKGGM5V42AUCLTYZDLYY65QL2ACRLG2BN7
Below that, next to Sending Asset, choose the asset you would like to send. For instance, sending XH5 means choosing the Alphanumeric 4 option, entering the Asset Code, which is XH5, and the Issuer Account ID, GA6N7EVPWJL4266JTJN52TRIRPDAKMUJWFZ5Q2RN4Z23KXCKPUTURFBF, in the fields below that.
The Issuer Account ID will vary depending on the asset you have chosen to send. It is the account that created the token and can be found in most wallets under information about that asset.
Next, add how much of your chosen asset you would like to send as a donation in the Send Amount field. My first XH5 donation to Lumenthropy was 1,000 XH5.
Intermediate Path is something that is optional and is only required if there is no direct order book pathway between the asset you have chosen to send and the asset Lumenthropy will receive. Since they accept all donations in Stellar lumens this option can most likely be removed.
Next to Destination Asset choose Native so that Lumenthropy will receive Stellar Lumens, the native currency of the Stellar network.
The Minimum Destination Amount is the minimum amount of lumens the Lumenthropy account can receive.
If the purchase orders available in the network will not provide at least the amount you specify then the transaction will fail. This simply means that there isn’t sufficient interest in the asset you are trying to send to meet the lumen requirements you’d hoped to donate. I chose to set a low 5 XLM minimum, knowing that the donation was worth far more than that, but unsure as to how much liquidity there was in the XH5 market.
We’re still very early in the Life Token Experiment.
Setting it low will not affect the number of lumens received by Lumenthropy as this depends on the amount of liquidity available for your particular asset.
Then it’s a simple matter of signing the transaction and sending it to the network.
Your chosen asset, in this case, XH5, will leave your wallet, be routed through the existing order books where it is converted to lumens, which will then be deposited in Lumenthropy’s Stellar wallet.
Easy like Parcheesi.
My hope is that someone smarter than me develops a wallet interface for projects like Lumenthropy which allow a user to easily choose both the source and destination asset.
Until then, the above method allows the Stellar community to donate any asset of their choice to Lumenthropy.
Find out more about the XH5 Life Token Experiment