authzResolve
Creates a test authorization resolver that can be used for testing account resolution.
Import
You can import the entire package and access the function:
_10import * as sdk from "@onflow/sdk"_10_10sdk.authzResolve(opts)
Or import directly the specific function:
_10import { authzResolve } from "@onflow/sdk"_10_10authzResolve(opts)
Parameters
opts
(optional)
- Type:
IAuthzResolveOpts
- Description: Optional configuration including temporary ID
_10interface IAuthzResolveOpts {_10 tempId?: string_10}
Returns
(account: InteractionAccount) => { tempId: string; resolve: (account: Partial<InteractionAccount>) => Partial<InteractionAccount>; kind: InteractionResolverKind.ACCOUNT; addr: string; keyId: string | number; sequenceNum: number; signature: string; signingFunction: any; role: { proposer: boolean; authorizer: boolean; payer: boolean; param?: boolean; }; authorization: any; }