Skip to main content

resolvePolicyForSubject

@totemsdk/recursive-mast


@totemsdk/recursive-mast / resolvePolicyForSubject

Function: resolvePolicyForSubject()

resolvePolicyForSubject(client, config): Promise<ResolvedPolicy | null>

Resolve the current policy for a subject and action.

Queries the lookup network, filters by capability matching the action, and returns the highest-epoch active policy.

Parameters​

client​

PolicyLookupClient

config​

ResolvePolicyConfig

Returns​

Promise<ResolvedPolicy | null>