How to use AML checks on incoming crypto payments
On networks with an AML provider, RpcNode screens a confirmed payment and puts the result in the aml object of the paid webhook: score from 0 to 100 (higher is riskier), risk_level, detail_list, risk_detail, hacking_event and address_label. A paid status means the money arrived and was screened, not that it is clean. You set the threshold and decide what to do. AML here is risk screening of a transfer, not KYC and not a legal opinion.
Where the result appears
For a payment created through POST /v1/payments the path is pending, check (money seen, confirmations counted), aml_check (the screening is running), then paid. The aml_check status exists only on networks that have an AML provider. On other networks paid follows check directly and aml is null.
The same data has two shapes:
- Webhook (
type: "payment_order"): the provider report fieldsscore,risk_level,hacking_event,detail_list,risk_detail,address_label,checked_at.amlisnulluntil the screening finishes and on networks without AML. The webhook object carries no provider name and no report link. - REST (
GET /v1/payments/{paymentId}or/v1/payments/orders/{orderId}): a normalised form withscore(integer 0 to 100),risk_level(lower case, for examplelow,moderate,highorsevere),details(short notes),exposures(where the funds came from, highest percent first),hacking_event,address_label,report_urlanderror.
The names differ on purpose, so code written against one shape will not read the other.
What the fields tell you
score: the risk score. Higher is riskier. RpcNode does not publish a cut-off, because the right one depends on your business.risk_level: the provider's label for the score.hacking_event: the name of a known hack the funds are linked to. Empty when there is none.address_label: a label of the paying address when the provider knows it.detail_listandrisk_detail(webhook),detailsandexposures(REST): the reasons behind the score and the exposure breakdown. Store them as JSON instead of parsing them into columns, because their item layout belongs to the provider.
Set a threshold
Start without a number. Log score, risk_level and hacking_event for the first payments, look at what your real customers produce, and only then choose. A starting policy:
const HOLD_SCORE = Number(process.env.AML_HOLD_SCORE) // your policy, not an RpcNode default
function amlVerdict(aml) {
// null on paid means the network has no AML provider: decide your policy for that case
if (!aml) return { action: 'review', why: 'no aml result' }
if (aml.hacking_event) return { action: 'review', why: `linked to ${aml.hacking_event}` }
if (typeof aml.score === 'number' && aml.score >= HOLD_SCORE) return { action: 'review', why: `score ${aml.score}` }
if (['high', 'severe'].includes(String(aml.risk_level).toLowerCase())) return { action: 'review', why: aml.risk_level }
return { action: 'accept' }
}
// inside the verified webhook handler, on event === 'paid':
const verdict = amlVerdict(event.aml)
await saveAmlEvidence(order.id, event.delivery_id, event.aml) // keep the raw object
if (verdict.action === 'accept') await fulfil(order, event)
else await holdForReview(order, verdict.why)
Verify the webhook signature before you read any of this, see how to verify a crypto webhook signature.
What to do at aml_check
Nothing. It is a progress status: the transfer is confirmed and the screening is running. Do not fulfil the order yet and do not treat it as paid. If a payment stays there unusually long, read it with GET /v1/payments/{paymentId} and look at aml.error, which says why the check could not complete. RpcNode retries the provider for a while (up to two hours in the backend notes), then leaves the payment in aml_check where support can see it. Contact support for such a payment instead of waiting indefinitely.
What to do with a risky paid payment
RpcNode reports the result and never blocks or reverses a transfer: the API has no route that moves funds. A payment with a high score is still paid. Your options are yours: hold the order, ask the customer for details, refund from your own wallet, or accept it with a record of why. Keep the aml object with the order so you can show what you knew at the time. Your legal and compliance duties stay with you.
What AML does not do
- It is not KYC. There is no identity check of the payer. It scores the transaction and addresses.
- It is not a legal conclusion. A score is a heuristic from a third-party provider (MistTrack). False positives and false negatives exist.
- It does not cover Address Watch events. The
riskfield of address events is currently always an empty array. AML belongs to the Payments flow. - It does not stop the money. The transfer happens on-chain before anyone screens it.
Networks with AML coverage
The AML provider is enabled for 15 networks: Bitcoin, Litecoin, Dogecoin, Bitcoin Cash, Ethereum, Polygon, Avalanche, Arbitrum, Optimism, Hyperliquid, Solana, TRON, Base, BNB Chain and TON. Coverage is not the same as payments being switched on: ask GET /v1/networks which environments have scan_environment_kinds. Before you rely on the screening for a network, make one small test payment there and check that aml is filled in on paid.
Cost
The AML result comes with the payment event without a separate fee. The payment itself is billed once, in credits, when the money is first seen (check); see GET /v1/networks/{slug}/credits for the price. Payments need a paid plan; the Free plan has none. See pricing.
More: accept USDT TRC-20 payments, the Payments product, the Enterprise page for custom terms, and the Payments reference.