in Education by
I am new to react and solidity however I am doing one project for just learning but I am unable to understand how to create react front end of Solidity project. pragma solidity^0.5.0; pragma experimental ABIEncoderV2; contract I2Chain { event FileChained(string checksum, address indexed user, uint timestamp, uint fileSize, uint fileTimestamp, string fileType, string fileName); event FileShared(string checksum, address indexed user, address indexed recipient, uint attributes, uint tenure, uint timestamp); event FileRead(string checksum, address indexed user, uint timestamp); event FileDeleted(string checksum, address indexed user, uint timestamp); event PubKeyUpdate(address indexed user, string pubKey); mapping(address => string) public publicKeys; function PublishFile(string memory _checksum, uint _fileSize, uint _fileTimestamp, string memory _fileType, string memory _fileName) public { emit FileChained(_checksum, msg.sender, now, _fileSize,_fileTimestamp, _fileType, _fileName); } function ShareFile(string memory _checksum, address _recipient, uint _attributes, uint _tenure) public { emit FileShared(_checksum, msg.sender, _recipient, _attributes, _tenure, now); } function ReadFile(string memory _checksum) public { emit FileRead(_checksum, msg.sender, now); } function DeleteFile(string memory _checksum) public { emit FileDeleted(_checksum, msg.sender, now); } function setPublicKey(string memory _pubKey) public { publicKeys[msg.sender] = _pubKey; emit PubKeyUpdate(msg.sender, _pubKey); } function getPublicKey(address _user) view public returns(string memory) { return publicKeys[_user]; } } I have deployed the contract into truffle and generate the ABI of contract, however I didn't understand how to create the front-end with this ABI. Note:p When I deployed into remix IDE I am getting all function interface(please see the attachement enter image description here Please suggest and help me how can I create UI for this contracts all function so user can intact with my smart contract and blockchain? JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
If you're new to both, i think you should follow this tutorial where they use drizzel to connect the blockchain with the frontend. https://truffleframework.com/tutorials/getting-started-with-drizzle-and-react

Related questions

0 votes
    How are dApp different from a smart contract in Blockchain?...
asked Dec 26, 2020 in Technology by JackTerrance
0 votes
    ________ deployment option is recommended for the SAP front-end server in a productive system landscape. A. SAP Cloud ... B. Embedded deployment C. Hub deployment D. Standalone...
asked Mar 2, 2023 in Technology by JackTerrance
0 votes
    Why is it not a good idea to use SOAP for communicating with the front end? For example, a web ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 16, 2022 in Education by JackTerrance
0 votes
    Why is it not a good idea to use SOAP for communicating with the front end? For example, a web ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 16, 2022 in Education by JackTerrance
0 votes
    Why is it not a good idea to use SOAP for communicating with the front end? For example, a web ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 16, 2022 in Education by JackTerrance
0 votes
    I am developing a .NET core application with Identity login which provides a Bootstrap form In the /Identity ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 23, 2022 in Education by JackTerrance
0 votes
    I'm trying to modify the product page. I know what files I need to change, however I can't seem ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 22, 2022 in Education by JackTerrance
0 votes
    Which of the below can be used to debug front end of a web application? (a) Junit (b) Fitnesse (c) ... Technologies & Servlet of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Can anyone tell me what are Front End Development tools? Select the correct answer from above options...
asked Jan 18, 2022 in Education by JackTerrance
0 votes
    Can anyone tell me what is the difference between back end, front end, and full-stack developer? Select the correct answer from above options...
asked Jan 8, 2022 in Education by JackTerrance
0 votes
    Which of the below can be used to debug front end of a web application? (a) Junit (b) Fitnesse ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    What are the main use cases of Solidity in Blockchain?...
asked Dec 26, 2020 in Technology by JackTerrance
0 votes
    What is Solidity in Blockchain?...
asked Dec 26, 2020 in Technology by JackTerrance
0 votes
    As a preface: I want to do this as a learning exercise. I'm not trying to produce a commercially ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 26, 2022 in Education by JackTerrance
0 votes
    As a preface: I want to do this as a learning exercise. I'm not trying to produce a commercially ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 23, 2022 in Education by JackTerrance
...