/screen - Check AML compliance
Endpoint
Method: POST
URL: https://api.swapkit.dev/screen
The /screen
endpoint is used to check the Anti-Money Laundering (AML) compliance status of cryptocurrency addresses. It evaluates the risk level of the provided addresses across different blockchain networks using external compliance providers.
The endpoint does not make decisions on whether a trade should proceed or be rejected. Instead, it provides a compliance confirmation that integrators can use to determine whether to allow transactions.
Request parameters
The request body should be a JSON object containing:
"addresses"
: A single address (string) or multiple addresses (array of strings)."chains"
: The blockchain chain ID relevant to each address. You can see them here, where we listed them before. They are standard identification for each chain.
Response
The response contains a boolean field named "isRisky"
that indicates whether the provided addresses are flagged for anti-money laundering (AML) concerns.
If the value is
"isRisky": false
, the addresses have passed the compliance check.If the value is
"isRisky": true
, at least one of the addresses has been flagged for AML concerns.
Important Considerations
Screening criteria:
The endpoint evaluates all addresses together and returns a single decision.
Even if one address is compliant, if any other address in the request is flagged the entire request may receive a
true
response.
Dynamic compliance checking:
Passing a compliance check at one point does not guarantee future compliance.
If an address was screened while it had no funds, it should be re-screened after receiving funds, as they may originate from tainted sources.
Decision responsibility:
SwapKit does not make the final decision on whether a trade is executed.
The integrator using this API is responsible for enforcing compliance policies based on the response.
This endpoint is not meant to be called on every /quote
. Instead, you should only screen the addresses involved when the user has indicated intent to swap, before they sign the transaction.
All addresses involved in the trade should be included in the request, and they should be re-checked if a new trade is offered or if the balances of the addresses have changed since they last passed AML compliance.
Here is an example request:
Last updated