call

open suspend fun call(to: String, data: String, from: String? = null, block: String = "latest"): String

Execute a read-only contract call.

Return

Result data as hex string

Parameters

to

Contract address

data

Encoded function call data

from

Caller address (optional)

block

Block parameter (default: "latest")