Watching Bitcoin transactions using BTCRelay
Ethereum supports the transfer and verification of Ether by default. If the target users use Bitcoin more than Ethereum, then interoperability between Bitcoin and Ethereum becomes a problem. To solve this issue, Ethereum has a smart contract that stores and relays Bitcoin transactions so that Ethereum DApps can verify Bitcoin transactions.
In this recipe, you will learn to use BTCRelay, which acts as a bridge between the Bitcoin blockchain and Ethereum smart contracts.
Note
To discover new and popular DApps in the Ethereum network, you can use State of the DApps (https://www.stateofthedapps.com/), which is a DApp registry. You can also submit your own DApp to the registry.
Getting ready
You need to have an understanding of Ethereum and smart contracts to get more out of this recipe. Refer to the first three chapters of this book to get a basic understanding of Ethereum and building DApps.
How to do it…
- The service provides several APIs through its contract...