# Screen Transaction

Screen a transaction against AML data. Returns whether the transaction is flagged, its risk score/band, the flagged participant addresses with their roles, scores, severities, categories and attribution, and the participants that received funds traceable to flagged addresses (exposedAddresses). Exposure raises the risk score and band, never lowers them.


> **Warning:** While we will be taking reasonable measures to keep our AML data accurate, we do not guarantee the completeness, reliability or timeliness of the results provided.
>
> The credit cost of this endpoint is significantly higher than the Throughput Soft Limit of the preset subscription plans, so on preset plans every request is billed above the base rate (see [Data Flow Limiting](https://developers.cryptoapis.io/v-2.2024-12-12/RESTapis/general-information/data-flow-limiting)). The preset plans are intended for testing and evaluation. For production volumes we offer custom plans with a significantly lower price per check. Email us at bizdev@cryptoapis.io with the number of transactions you plan to screen per day or month, and we will prepare the best offer for you.

- **Endpoint:** `GET https://rest.cryptoapis.io/aml/transactions/{blockchain}/{transactionHash}`
- **Authentication:** `x-api-key` header
- **Credits cost:** 500000 credits for 1 result by default; per blockchain: Arbitrum: 800000, Avalanche: 900000, Base: 600000, Binance Smart Chain: 1250000, Bitcoin: 500000, Bitcoin Cash: 600000, Dash: 550000, Dogecoin: 550000, Ethereum: 500000, Ethereum Classic: 650000, Kaspa: 900000, Litecoin: 550000, Optimism: 700000, Polygon: 1000000, Solana: 1500000, Tezos: 650000, Tron: 750000, XRP: 500000, Zcash: 650000
- **Documentation page:** https://developers.cryptoapis.io/v-2.2024-12-12-175/RESTapis/transaction-aml/screen-transaction/get

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `blockchain` | string | yes | Represents the specific blockchain protocol name, e.g. ethereum, ethereum-classic, binance-smart-chain. Allowed values: `ethereum`, `ethereum-classic`, `binance-smart-chain`, `bitcoin`, `bitcoin-cash`, `dash`, `dogecoin`, `litecoin`, `arbitrum`, `polygon`, `avalanche`, `optimism`, `base`, `zcash`, `xrp`, `solana`, `tezos`, `kaspa`, `tron`. |
| `transactionHash` | string | yes | String identifier (hash) of the transaction to screen against AML data |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `context` | string | no | In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. `context` is specified by the user. |

## Responses

| Status | Description |
| --- | --- |
| 200 | The transaction was screened successfully against AML data. |
| 400 | 400 |
| 401 | 401 |
| 402 | 402 |
| 403 | 403 |
| 404 | The specified transaction has not been found on the specific blockchain. |
| 409 | The data provided seems to be invalid. |
| 415 | The selected Media Type is unavailable. The Content-Type header should be 'application/json'. |
| 422 | Your request body for POST requests must have a structure of { data: { item: [...properties] } } |
| 429 | The request limit has been reached. There can be maximum {requests} requests per {seconds} second(s) made. Please contact our team via email if you need more or upgrade your plan. |
| 500 | An unexpected server error has occurred, we are working to fix this. Please try again later and in case it occurs again please report it to our team via email. |

### Example 200 response

```json
{
  "apiVersion": "2024-12-12",
  "requestId": "601c1710034ed6d407996b30",
  "context": "yourExampleString",
  "data": {
    "item": {
      "isFlagged": true,
      "riskBand": "severe",
      "riskScore": 87,
      "flaggedAddresses": [
        {
          "address": "0x7f367cc41522ce07553e823bf3be79a889debe1b",
          "categories": [
            "sanctions"
          ],
          "highestSeverity": "critical",
          "riskBand": "severe",
          "riskScore": 87,
          "role": "recipient",
          "attribution": {
            "entity": "binance",
            "type": "exchange",
            "label": "Binance"
          }
        }
      ],
      "exposedAddresses": [
        {
          "address": "0x2718752b8895742349c82ca759b87c79b2466330",
          "role": "recipient",
          "maxExposureShare": "1"
        }
      ]
    }
  }
}
```

### 200 response fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `apiVersion` | string | yes | Specifies the version of the API that incorporates this endpoint. |
| `requestId` | string | yes | Defines the ID of the request. The `requestId` is generated by Crypto APIs and it's unique for every request. |
| `context` | string | no | In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. `context` is specified by the user. |
| `data` | object | yes |  |
| `data.item` | object | yes |  |
| `data.item.isFlagged` | boolean | no | Whether any participant in the transaction is AML-flagged |
| `data.item.riskBand` | string | no | Risk band derived from the highest score: low, medium, high, or severe |
| `data.item.riskScore` | integer | no | Highest AML risk score across the transaction's participants (0 = no risk, 100 = severe), from their flags and their exposure to flagged addresses (see exposedAddresses) |
| `data.item.flaggedAddresses` | array of object | no | Participants of the transaction that are AML-flagged |
| `data.item.flaggedAddresses[].address` | string | no | The flagged participant address |
| `data.item.flaggedAddresses[].categories` | array of string | no |  |
| `data.item.flaggedAddresses[].highestSeverity` | string | no | Highest severity across the address's AML sources (critical, high, medium, low, info) |
| `data.item.flaggedAddresses[].riskBand` | string | no | Risk band for this address: low, medium, high, or severe |
| `data.item.flaggedAddresses[].riskScore` | integer | no | AML risk score for this address (0-100) |
| `data.item.flaggedAddresses[].role` | string | no | Role in the transaction: sender, recipient, token_sender, or token_recipient |
| `data.item.flaggedAddresses[].attribution` | object | no | Entity attribution for the flagged participant (who owns or controls it). Present when a labeled match exists; omitted otherwise. |
| `data.item.flaggedAddresses[].attribution.entity` | string | no | Normalized entity key the address belongs to (e.g. binance, tornado_cash, f2pool) |
| `data.item.flaggedAddresses[].attribution.type` | string | no | Entity type (e.g. exchange, mixer, bridge, gambling, mining_pool) |
| `data.item.flaggedAddresses[].attribution.label` | string | no | Human-readable label for the entity |
| `data.item.exposedAddresses` | array of object | no | Participants of the transaction that received funds traceable to AML-flagged addresses (sanctioned, exploiter) on this blockchain, directly or through intermediate addresses; empty when none. Use Get Address Exposure for the breakdown per flagged address. Returned on the blockchains with exposure data: Ethereum, Ethereum Classic, BNB Smart Chain, Polygon, Tron, Bitcoin, Bitcoin Cash, Litecoin, Dogecoin, Dash, Zcash, XRP, Solana. |
| `data.item.exposedAddresses[].address` | string | yes | The exposed participant address |
| `data.item.exposedAddresses[].role` | string | yes | Role(s) in the transaction, comma-separated: sender, recipient, token_sender, token_recipient |
| `data.item.exposedAddresses[].maxExposureShare` | string | yes | Highest share (0 to 1) of tainted funds the participant received from any flagged address |
