Skip to Content
Blockchain Development for Finance Projects
book

Blockchain Development for Finance Projects

by Ishan Roy
January 2020
Intermediate to advanced
530 pages
11h 11m
English
Packt Publishing
Content preview from Blockchain Development for Finance Projects

Writing the app methods and creating the App.js file

The App.js file will have the following methods defined under it:

  • constructor (): Initializes the state variables.
  • componentDidMount: Checks if the MetaMask web3 provider is available and fetches the user's Ethereum account.
  • A set of session setters that set the role and the option selected. These include the following:
    • BuyerSessionView
    • BankSessionCreate
    • BankSessionView
    • SellerSessionView
    • SellerSessionSettle
    • SellerSessionVSettle
  • A set of utility methods for navigation and operation, which include the following:
    • onInputChangeUpdateField: For capturing and storing the input fields data to the state.
    • closeTab: To close the current tab and go back to the landing page.
    • closeViewTab: To ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Advanced Blockchain Development

Advanced Blockchain Development

Imran Bashir, Narayan Prusty
Blockchain for Business

Blockchain for Business

S. S. Tyagi, Shaveta Bhatia

Publisher Resources

ISBN: 9781838829094Supplemental Content