WriteActionCreator
WriteActionCreator<
THumanReadableAbi
,TAddress
,TCode
,TAddressArgs
>: { [TFunctionName in ExtractAbiFunctionNames<ParseAbi<THumanReadableAbi>, “payable” | “nonpayable”>]: Function & Object & (TCode extends undefined ? Object : Object) & TAddressArgs }
A mapping of payable and nonpayable contract methods to action creators. This type provides a way to create type-safe write 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).