Menu

Crypto wallets (DotAML)

Screen wallets in bulk (DotAML)

POST/v1/wallet-screenings/bulk

Screens up to 50 addresses in one call. Always asynchronous: each valid address starts a screening that runs in the background, and the response returns 202 with an id and status per item. Use it to screen a list without one request per address. Production key only; every started item is charged as dotaml, the same as a single screening.

Authorization: X-Api-Key (your backend)

FIELDDESCRIPTION
items (required)A list of 1–50 items. Each item takes the same fields as a single screening: address (required), and the optional network, tx_hash, asset, direction, amount, fiat_amount + fiat_currency, customer_id
networkOptional default network for items that do not set their own
dry_runOptional (default false): only validate the items and return the total price; nothing is screened and nothing is charged

An item that cannot be screened is returned in rejected[] as { "index", "code" } only — the address is never echoed back. code is wallet_scan.address_invalid, wallet_scan.duplicate (the same address twice in one call) or the same field codes as a single screening. The valid items are screened regardless.

The total price must be covered by your balance: if it does not cover every valid item the call returns 402 wallet_scan.insufficient_balance and nothing is started. Each item is charged as dotaml (75¢ by default) when it completes, and not charged if its report could not be produced.

Poll each item with GET /v1/wallet-screenings/{screening_id} (it returns 404 until the item is done). Each item also emits a completion webhook on its own: wallet_screening.completed or wallet_screening.failed, delivered only to a tenant with a webhook_url, with the same PII-minimal body as the single async screening (see Webhooks).

Idempotency-Key works at the batch level: the same key with the same batch does not start the items again or charge twice, and the replay returns the same items with Idempotent-Replayed: true. A malformed or conflicting key returns 422 idempotency_key_invalid / 422 idempotency_key_reused or 409 idempotency_key_in_use, as for a single screening.

ERRORWHEN
403 wallet_scan.sandbox_unavailableCalled with a sandbox key
403 module_disableddotaml is off for your account
402 wallet_scan.insufficient_balanceYour balance does not cover the total for all valid items; nothing is started
422 wallet_scan.body_invalid · wallet_scan.too_many · wallet_scan.dry_run_invaliditems is missing, empty or over 50, or dry_run is not a boolean
422 wallet_scan.address_invalidNo item could be screened (every item was rejected)
Request
curl -X POST https://api.idotta.com/v1/wallet-screenings/bulk \
  -H "X-Api-Key: idv_test_XXXX"
cURL
curl -X POST https://api.idotta.com/v1/wallet-screenings/bulk \
  -H "X-Api-Key: $IDOTTA_LIVE_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"network": "tron", "items": [
        {"address": "TNiq9AXBp9EjUqhDhrwrfvAA8U3GUQZH81", "customer_id": "user-42"},
        {"address": "TWd3…", "asset": "USDT", "direction": "incoming", "amount": "500"}
      ]}'

// Response 202
{
  "items": [
    { "index": 0, "screening_id": "6f1c…", "status": "running" },
    { "index": 1, "screening_id": "a28b…", "status": "running" }
  ],
  "rejected": []
}

// dry_run: true → no screening, no charge
{ "valid": 2, "rejected": [], "price_cents": 75, "total_cents": 150 }