Is there a way I can fetch all the txns happened in contract address I'm interacting with on frontend?
Jan 1, 2023, 11:25 AM
  Yes, you need to use a multicall library or contract
 example is indexed finance multicall library which can support upto 10 calls per request
 check here https://github.com/indexed-finance/multicall
 but this will work only calling the same contract but different functions
 if you want to call different contracts addresses in the same multicall then you need to deploy your own multicall contract to handle that
 I have an example here
 https://github.com/decentraid/core-contracts/blob/main/contracts/multicall/ZMultiCall.sol
 which I created myself
 this is flexible and portable as you dont need to deploy any contract to use it
 Jan 1, 2023, 1:27 PM
  How can you do a callStatic to a non deployed contract? :o
 Thought you need at least a constructor
 Jan 1, 2023, 1:38 PM
  check indexed finance method
 check here, I personally use it
 Jan 1, 2023, 1:43 PM
  Oh ok ok it use a constructor
 Jan 1, 2023, 1:45 PM
  yes
 and they perform the staticcall on deployment
 this runs the solidity call but not actually deploying it
 Jan 1, 2023, 1:46 PM
  Yeah that's a smart move as long you only need to call views functions
 Jan 1, 2023, 1:46 PM
  Yes
 for non view function, he needs his own multicall deployed
 Jan 1, 2023, 1:47 PM
  there are some deployed for general purpose such as this address multicall3
its same address is deployed on many networks
https://etherscan.io/address/0xca11bde05977b3631167028862be2a173976ca11
cool address btw 0xcaLL...caLL
 its same address is deployed on many networks
https://etherscan.io/address/0xca11bde05977b3631167028862be2a173976ca11
cool address btw 0xcaLL...caLL
Jan 1, 2023, 2:34 PM
  cool address tho
 Jan 1, 2023, 2:35 PM
  look up eth vanity addresses if you don't know. def very cool 😎
 Jan 1, 2023, 3:56 PM
  I know vanity addresses, just complimenting it
 Jan 1, 2023, 4:04 PM
  vanity address is not that simple for contract's
 Jan 1, 2023, 5:49 PM
  yeah. if anyone's interested, this is one example 
https://ethereum.stackexchange.com/questions/10241/how-to-generate-a-vanity-address-for-a-smart-contract-to-be-deployed-on/10242#10242
 https://ethereum.stackexchange.com/questions/10241/how-to-generate-a-vanity-address-for-a-smart-contract-to-be-deployed-on/10242#10242
Jan 1, 2023, 6:10 PM
  