1
Backend Integration
Call the Predicate API from your server using your API key.
2
Handle the Response
Use
is_compliant to gate access in your application.Backend Integration
Store your API key on the server and call the Predicate API. Use theverification_hash from your project and the user’s wallet address.
Request Parameters
Response
Interface-only requests (using
verification_hash) return the compliance result without a signed attestation, because there is no contract to verify it onchain. The attestation fields are returned empty. To receive a signed attestation, call the API with your contract address in to, as described in Submit Attestations.Compliant
Non-Compliant
Some policies include areason object on non-compliant responses with details about why the evaluation failed. Both the code and message values are fully customizable when authoring a policy.
