Ok
Marks an interaction as successful and returns the interaction object.
Import
You can import the entire package and access the function:
_10import * as sdk from "@onflow/sdk"_10_10sdk.Ok(ix)
Or import directly the specific function:
_10import { Ok } from "@onflow/sdk"_10_10Ok(ix)
Usage
_10import { Ok, initInteraction } from "@onflow/sdk"_10_10const interaction = initInteraction();_10const successfulInteraction = Ok(interaction);_10console.log(successfulInteraction.status); // "OK"
Parameters
ix
- Type:
Interaction
- Description: The interaction to mark as successful