Skip to main content

authzFn

Creates a test authorization function for testing transactions.

Import

You can import the entire package and access the function:


_10
import * as sdk from "@onflow/sdk"
_10
_10
sdk.authzFn(opts)

Or import directly the specific function:


_10
import { authzFn } from "@onflow/sdk"
_10
_10
authzFn(opts)

Parameters

opts (optional)

  • Type: IAuthzOpts
  • Description: Optional configuration including custom signing function

_10
interface IAuthzOpts {
_10
signingFunction?: (signable: any) => any
_10
}

Returns

function


Rate this page