• Fetches the policy for a specific tool and delegatee from the PKP Tool Registry. This function retrieves the policy configuration that defines how a delegatee can use a particular tool with a PKP.

    Parameters

    • pkpToolRegistryContract: any

      The PKP Tool Registry contract instance.

    • pkpTokenId: string

      The token ID of the PKP.

    • delegateeAddress: string

      The Ethereum address of the delegatee.

    • toolIpfsCid: string

      The IPFS CID of the tool whose policy should be fetched.

    Returns Promise<any>

    A promise that resolves to the tool's policy configuration for the specified delegatee.