2

The Solidity Docs have a section describing the best way to document smart contracts. This special form is named the Ethereum Natural Language Specification Format (NatSpec). Solidity contracts can use a special form of comments to provide rich documentation for functions, return variables and more. This special form is named the Ethereum Natural Language ...


2

Maybe you are looking for something like OpenZeppelin contracts (implementations of tested libraries/contracts to build contracts).


2

Found a workaround for this, you can use window.ethereum.enable() and attach it to the web3.eth.defaultAccount variable, loadAccount : async () =>{ window.ethereum.enable().then((account) =>{ const defaultAccount = account[0] web3.eth.defaultAccount = defaultAccount }) } you can then access the Account ID by ...


1

First you need to write and deploy a simple storage smart-contract (with solidity and truffle), then you need to use the web3js library to connect to the blockchain and later to call your function in the smart-contract --> send a transaction to upload the hash of the file in your deployed smart contract The web3 library provide a function to calcuate the ...


Only top voted, non community-wiki answers of a minimum length are eligible