useContractRead

Hook to perform a read-only contract call.

The hook only performs a call if the target abi, address, functionName, and args are not undefined.

Examples

This example shows how to fetch the user ERC-20 balance.