Skip to content

ReadActionCreator

ReadActionCreator<THumanReadableAbi, TBytecode, TDeployedBytecode, TAddress, TAddressArgs>: { [TFunctionName in ExtractAbiFunctionNames<ParseAbi<THumanReadableAbi>, "pure" | "view">]: Function & Object & TAddressArgs }

A mapping of view and pure contract methods to action creators

Example

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

Type parameters

ParameterDefault
THumanReadableAbi extends readonly string[]-
TBytecode extends Hex | undefined-
TDeployedBytecode extends Hex | undefined-
TAddress extends Address | undefined-
TAddressArgsTAddress extends undefined ? object : object

Source

packages/contract/src/read/ReadActionCreator.ts:23


Generated using typedoc-plugin-markdown and TypeDoc