April 2018
Intermediate to advanced
250 pages
5h 42m
English
We will regularly go back to the WebHook after discussing each component around it.
We already know how our blockchain and smart contracts work. They record mobile number registration, and maintain states of transfer transactions. In this section, we discuss how the WebHook function interacts with the blockchain. The following is the snippet from the WebHook function. The lookup method inside the function obtains the smart contract RegistrationRepository and then invokes findByTelNo() on the blockchain. The result is then available inside a transaction receipt. We check what kind of event is stored inside that receipt. If it is an RegistrationFound event, then this method returns a result object containing ...
Read now
Unlock full access