Skip to main content

getMutate

Factory function that returns a mutate function for a given currentUser.

Import

You can import the entire package and access the function:


_10
import * as fcl from "@onflow/fcl-core"
_10
_10
fcl.getMutate(currentUserOrConfig)

Or import directly the specific function:


_10
import { getMutate } from "@onflow/fcl-core"
_10
_10
getMutate(currentUserOrConfig)

Parameters

currentUserOrConfig

  • Type:

_10
export interface CurrentUserService extends CurrentUserServiceApi {
_10
(): CurrentUserServiceApi
_10
}

  • Description: CurrentUser actor or configuration

Returns


_10
(opts?: MutateOptions) => Promise<string>


Rate this page