👓Read Contract Method
Checking the state of a contract and verifying it.
Last updated
Checking the state of a contract and verifying it.
Last updated
Most quests verify by reading on-chain data and checking conditions.
At first, we obtain liquidity pools using the following method:
Pool List from documentation
Retrieve meta pool info from meta pool factory contract
Get V2 pool
trycrypto2:
crveth:
Retrieve the transaction data (txdata) for the address. We can do this using an API such as EtherscanAPI or a blockchain explorer tool.
Inspect the txdata to see if any of the transactions include calls to the desired function.
If you find a transaction that includes a call to the function, we can verify that it was executed.
Finally, if user get true result, they can mint curve pool object.
https://quest.philand.xyz/items/0x3D8C06e65ebf06A9d40F313a35353be06BD46038/101104
In this case, we can check contract's read method is used to verify the balance of DAI.
We verify whether an address has a sufficient balance.
Balance is easy to check. You can check DAI contract read method.
https://etherscan.io/token/0x6b175474e89094c44da98b954eedeac495271d0f#readContract