By: Jesse Abramowitz

Blockchain Developer

Welcome back to the third installation of our ongoing series! The purpose of this article series is to provide a comparison and share our experiences with each blockchain through their documentation etc.

I participated in a BlockGeeks podcast regarding the Universal Faucet as whole. Check it out below:

This podcast summarizes how our Team (a huge shoutout to them — Nayyir on the front-end/back-end, Tian with the designs, and Kush with architecting the entire solution) conceptualized, built the faucet and maneuvered around edge cases on the Tron Test Faucet.

Other than that let’s get right into it.

Blockchain

Tron

Tokens

TRX

Why this Blockchain?

They were having a big event and it seemed like a good way to get a lot of users.

Getting coins

I had noticed that their faucet only throttled on the front end by storing the amount of clicks in the state of the website. After you refreshed it would allow you to take tokens again. I ended up writing a script to automate this.

Sending a Transaction

This was very similar to web3, in fact they had a function that did everyaction with one function call.

const txn = await tronWeb.trx.sendTransaction(to, token.maxSupplyAllowed, wallet.privateKey);

Also, there documentation was pretty good. Which was nice as a whole that is something that has been lacking in the blockchain community.

We were able to use this because Tron does not have a nonce instead it has a timestamp to stop replay attacks. This means when dealing with Tron we do not have to breakdown the transaction and grab the nonce from our backend we can just use a timestamp.

Technical notes

N/A

Conclusion

As we go on, we’re finding that integration is coming much easier and more seamlessly. On the whole, TRON appears to have increased in popularity. Through the faucet, we were able to learn about TRON and its ecosystem.

Check out our Universal Faucet and let us know what you think! Leave a comment below or e-mail jabramowitz@gmail.com!