useReadContract
Signature #1
A hook to read state from a contract that automatically updates when the contract changes.
You can use raw read calls or read extensions to read from a contract.
Example
Parameters
Returns
a UseQueryResult object.
Signature #2
A hook to read state from a contract that automatically updates when the contract changes. You can use raw read calls or read extensions to read from a contract.
Example
Read a contract extension let you do complex contract queries with less code.
Parameters
Returns
a UseQueryResult object.