authzFn
Creates a test authorization function for testing transactions.
Import
You can import the entire package and access the function:
_10import * as sdk from "@onflow/sdk"_10_10sdk.authzFn(opts)
Or import directly the specific function:
_10import { authzFn } from "@onflow/sdk"_10_10authzFn(opts)
Parameters
opts
(optional)
- Type:
IAuthzOpts
- Description: Optional configuration including custom signing function
_10interface IAuthzOpts {_10 signingFunction?: (signable: any) => any_10}
Returns
function