This endpoint verifies provided policies against the provided wallet addresses. Each policy object includes its identifier, validation status, and an array of rules. These rules contain their respective identifier, type, satisfaction status, and associated data.
The endpoint processes each address and policy pair, checking if the conditions of each policy rule are met. If a policy is invalid (for instance, if a rule within the policy is not satisfied), it returns a detailed error message indicating the policy ID and the reason for its failure. In the case of any other error during the execution, an appropriate error message is returned.
The successful response includes the same array of wallet addresses and policies, but each policy now also includes a satisfiesAllPolicies boolean indicating if all its rules were satisfied. Additionally, each rule in a policy includes a 'valid' boolean showing if the rule was satisfied, and a 'results' object containing the outcomes of the rule validation.
Click Try It! to start a request and see the response here!