Transactions are one of the fundamental building blocks to the modern financial system. Every action, value transfer, or application change that occurs on the blockchain is facilitated by a transaction. That's why it's imperative to be able to easily obtain this data in an easy to understand format.
You can leverage the wealth of data available in our API for each use case. Build applications that watch for new transactions and execute actions based on a given criteria. Or perhaps as an investor you're looking for insight into the health of a network. As a wallet developer, you may be interested in updating balances or give users a view of their asset holdings over time. You could also be trying to trace value as it's transacted through the network, across multiple networks, to discover patterns or anomalies. All this is made possible with this simple and intuitive API.
In order to accomplish this we'll need a few things:
We'll walk through a few quick examples of what is possible.Historical/Real-time Transactions
To start, we'll get the transactions of an account/address over the past 7 days then watch for any new transaction that occurs.
That's great! We're able to see a historical view of all this account's transactions with details like value and data transferred. What if we wanted to see these values in USD or EUR? All we need to do is specify the currency or add a boolean to include pricing data with transactions.
Asset transfers such as ERC-20 tokens, also occur within transactions. If you have a transaction, it requires some extra logic to derive meaningful token transfer data. We’ve made it a lot easier by providing these digital asset transfers out of the box. You can choose to include token transfers when retrieving transactions.
With Amberdata’s API we give you the complete picture of what’s really going on within transactions.