call

suspend fun call(circuitName: String, vararg args: Any?, onProgress: suspend (ContractCallStage) -> Unit? = null): TransactionReceipt

Call a circuit and submit the transaction to the blockchain.

Return

Receipt with transaction hash, status, and timings

Parameters

circuitName

The circuit to call (e.g., "post", "takeDown")

args

Circuit arguments as Kotlin values (auto-converted to JS)

onProgress

Optional callback for UI progress updates

Throws

with specific subclass per failure stage