UseExerciseChoiceResult
Defined in: packages/react/src/hooks/useExerciseChoice.ts:38
Properties
Section titled “Properties”data: {
tx: {commandId:string;payload: {completionOffset:number;updateId:string; };status:"executed"; }; } |undefined
Defined in: packages/react/src/hooks/useExerciseChoice.ts:50
Result from the last successful exercise
error:
ParsedError|null
Defined in: packages/react/src/hooks/useExerciseChoice.ts:48
Error from the last exercise
exercise()
Section titled “exercise()”exercise: (
params) =>void
Defined in: packages/react/src/hooks/useExerciseChoice.ts:40
Exercise a choice on a contract
Parameters
Section titled “Parameters”params
Section titled “params”Returns
Section titled “Returns”void
exerciseAsync()
Section titled “exerciseAsync()”exerciseAsync: (
params) =>Promise<{tx: {commandId:string;payload: {completionOffset:number;updateId:string; };status:"executed"; }; }>
Defined in: packages/react/src/hooks/useExerciseChoice.ts:42
Exercise async with promise return
Parameters
Section titled “Parameters”params
Section titled “params”Returns
Section titled “Returns”Promise<{ tx: { commandId: string; payload: { completionOffset: number; updateId: string; }; status: "executed"; }; }>
isError
Section titled “isError”isError:
boolean
Defined in: packages/react/src/hooks/useExerciseChoice.ts:46
Whether the last exercise failed
isPending
Section titled “isPending”isPending:
boolean
Defined in: packages/react/src/hooks/useExerciseChoice.ts:44
Whether an exercise is in progress
reset()
Section titled “reset()”reset: () =>
void
Defined in: packages/react/src/hooks/useExerciseChoice.ts:52
Reset the mutation state
Returns
Section titled “Returns”void