3 ms·
Where may I see the source code for the "Web3" TODO app? How complex is that source code? Are centralized APIs used in order to access the "decentralized" Eth
by factorialboy 5y ago
Where may I see the source code for the "Web3" TODO app?
How complex is that source code?
Are centralized APIs used in order to access the "decentralized" Ethereum blockchain?
- jstanley 5y ago> Are centralized APIs used in order to access the "decentralized" Ethereum blockchain? (I was looking at this stuff a few years ago, it may be different now). "web3" is an object provided to JavaScript by either the browser (e.g. Brave[0]) or a browser extension (e.g. MetaMask[1]). In the case of Brave it uses a local ethereum client to access the ethereum blockchain. In the case of MetaMask it uses MetaMask's centralised servers, but the API presented to the web page is the same in either case. Re the complexity of the TODO app: I don't know that a TODO app is particularly a good use case. But for comparison, I once wrote a toy Dapp that would handle escrow (i.e. person A makes a payment to person B, but it only goes through when person C allows it, alternatively person C can send it back to person A). It was maybe 20 lines of code for the smart contract and a similar amount for the user interface. [0] https://brave.com/ https://brave.com/ [1] https://metamask.io/ https://metamask.io/