getMutate
Factory function that returns a mutate function for a given currentUser.
Import
You can import the entire package and access the function:
_10import * as fcl from "@onflow/fcl-core"_10_10fcl.getMutate(currentUserOrConfig)
Or import directly the specific function:
_10import { getMutate } from "@onflow/fcl-core"_10_10getMutate(currentUserOrConfig)
Parameters
currentUserOrConfig
- Type:
_10export interface CurrentUserService extends CurrentUserServiceApi {_10 (): CurrentUserServiceApi_10}
- Description: CurrentUser actor or configuration
Returns
_10(opts?: MutateOptions) => Promise<string>