ReadActionCreator
ReadActionCreator<
THumanReadableAbi
,TAddress
,TCode
,TAddressArgs
>: { [TFunctionName in ExtractAbiFunctionNames<ParseAbi<THumanReadableAbi>, “pure” | “view”>]: Function & Object & (TCode extends undefined ? Object : Object) & TAddressArgs }
A mapping of view and pure contract methods to action creators. This type provides a way to create type-safe read actions for contract methods.
Type Parameters
• THumanReadableAbi extends readonly string
[]
The human-readable ABI of the contract.
• TAddress extends Address
| undefined
The address of the contract (optional).
• TCode extends Hex
| undefined
The runtime bytecode of the contract (optional).
• TAddressArgs = TAddress
extends undefined
? object
: object
Additional arguments for the address (derived from TAddress).