Skip to main content

transaction

A template builder to use a Cadence transaction for an interaction

Import

You can import the entire package and access the function:


_10
import * as fcl from "@onflow/fcl"
_10
_10
fcl.transaction(args)

Or import directly the specific function:


_10
import { transaction } from "@onflow/fcl"
_10
_10
transaction(args)

Parameters

args (optional)

  • Type:

_10
[string | TemplateStringsArray, ...any[]]

  • Description: The arguments to pass

Returns


_10
export type InteractionBuilderFn = (
_10
ix: Interaction
_10
) => Interaction | Promise<Interaction>

A function that processes an interaction object


Rate this page