<body onLoad="window.defaultStatus='Welcome!. You are in my weblog.';return true"><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar/9550158?origin\x3dhttps://www.txemaromero.com', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

Friday, August 21, 2020

A Java wrapper to get cryptocurrency values

The invention of Blockchain for Bitcoin [Nakamoto 08] first implemented in 2009 made it the first crypto-digital-currency to solve the double-spending problem without the need of a trusted authority or central server (traditionally, banking systems).

The double-spending problem is the potential flaw in a digital cash scheme in which the same single digital token can be spent more than once. Interest in Bitcoin and other cryptocurrencies (e.g, ETH from Ethereum) has risen considerably in recent years.

However, cryptocurrencies prices are highly volatile. The result code tracks some cryptocurrency (and token) values, e.g., ADA (Cardano), LINK (Chainlink), XLM (Stellar), MIOTA (IOTA), ZEC (Zcash), UNI (Uniswap) and MATIC (Polygon) using Java.



The application is configured with the .properties files called tokens.properties, cryptocurrencies.properties and change.properties

Reference:

[Nakamoto 08] S. Nakamoto. "Bitcoin: A Peer-to-Peer Electronic Cash System". 31 October 2008.
Available at:
https://bitcoin.org/bitcoin.pdf