Untitled

Anonymous
javascript
04/08/2022 3:10 PM
392 B
16
Indexable
 const getAllTransactions = async (web3) => {
      if (web3) {
        try {
          const txList = await contract.methods.getAllTransactions().call()
       
          console.log(txList)
        } catch (error) {
          console.log("No Transactions");
        }
      }
    }
    
    
Editor is loading...