Implementing Predicate in your smart contracts
Select integration pattern
Code changes
Contract deployment
PredicateMessage
, an attestation produced by the PredicateAPI.PredicateClient
, verifies the attestation onchain before executing business logic.PredicateClient.sol
, an audited, OpenZeppelin-namespaced smart contract we provide to simplify onchain integration._predicateManager
: The ServiceManager address for your target chain. See Supported Chains._policyID
: The policy identifier. For initial testing, you may use x-test-random
, which returns a compliant response approximately 50% of the time. You will update this value in step two.