Skip to main content

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:


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

Or import directly the specific function:


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

Parameters

opts (optional)

  • Type: IAuthzResolveOpts
  • Description: Optional configuration including temporary ID

_10
interface 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; }


Rate this page