useWaitForInput
Usage
import { } from "@cartesi/react";
function () {
const { , } = ({
: "0x...",
: 2n,
// ...other wait options
});
// render logic
}Return Type
The data is an Input (resolved when the input is processed):
import type { } from "@cartesi/client";The wait options are the ones waitForInput takes.
waitProcessing (default true) polls while the input is still NONE, and
rejectErrors (default false) fails the query once the input reaches any
terminal status other than ACCEPTED — REJECTED, EXCEPTION,
MACHINE_HALTED, OVERFLOW, UNEXPECTED_YIELD or INVALID_OUTPUTS_ROOT — so
the hook surfaces it
through error rather than data.