Skip to main content

Ok

Marks an interaction as successful and returns the interaction object.

Import

You can import the entire package and access the function:


_10
import * as sdk from "@onflow/sdk"
_10
_10
sdk.Ok(ix)

Or import directly the specific function:


_10
import { Ok } from "@onflow/sdk"
_10
_10
Ok(ix)

Usage


_10
import { Ok, initInteraction } from "@onflow/sdk"
_10
_10
const interaction = initInteraction();
_10
const successfulInteraction = Ok(interaction);
_10
console.log(successfulInteraction.status); // "OK"

Parameters

ix

  • Type: Interaction
  • Description: The interaction to mark as successful

Returns

Interaction


Rate this page