readContract
Reads state from a deployed smart contract.
Use this for raw read calls from a contract, but you can also use read extensions for predefined methods for common standards.
Raw contract call (recommended)
You can read from any contract by using the solidity signature of the function you want to call.
Note that this is type safe, the params types will be enforced based on the signature.
Raw contract call with resolveMethod
If you don't have the solidity signature of the function you want to call, you can use the resolveMethod
helper to resolve the method from any deployed contract.
Note that this is not type safe, and will also have a 1 time overhead of resolving the contract ABI.