Skip to content

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

Example

tevm.contract(
MyScript.withAddress('0x420...').read.balanceOf('0x1234...'),
)

Type Parameters

THumanReadableAbi extends readonly string[]

TAddress extends Address | undefined

TCode extends Hex | undefined

TAddressArgs = TAddress extends undefined ? object : object

Defined in

read/ReadActionCreator.ts:23