1. Screen an address
Call Screen an Address withaddress and network. Every 0x address needs network, because the format does not name one chain.
Idempotency-Key header with a new unique value per screen: a retry with the same key within 10 minutes returns the same screen, free. See Safe retries.
2. Read the decision
decision is the answer. For example, a screen of a sanctioned address returns a decision like this one (illustrative, not a recorded result):
sanctionedistrue: block.statusispending: hold, and screen again later.severityishighorsevere: block.medium: review.data_stateis notfull, orsanctionedisnull: review before you rely on a low severity.- Otherwise, allow.
3. See who answered
routing.served_result_id names the result in results[] that gave the decision. Each result says which provider it came from (provider), whose account paid (credential), and, when it is not the answer, why (outcome). meta.credits_charged is what the screen cost.
4. Fetch the recorded screen
Every answered screen is recorded. Passscreen_id to Get a Recorded Screen to get it back exactly as it was served, with its SHA-256 in result_sha256. This call is free.
5. Handle errors
Errors carry a stablecode. Branch on it, not on message. A request that ends in an error is not charged.
Next steps
Versioning and compatibility
Write a client that keeps working as v3 adds fields and values.
Credits
What each call costs, and why failed requests are free.
Bring your own provider key
Screen with your own screening provider account.
Moving from v1 or v2
Where each v1 and v2 field lives in v3.