Skip to navigation

On-Demand Wallet Screening API

POST /api/v1/wallet-screenings screens one address. Use a secret sk_test_ or sk_live_ key on your backend. The key selects the environment. Use a new Idempotency-Key for each intended screening and keep that key for exact retries. A replay returns the same screening without another screening call or charge.

curl -X POST "https://sandbox-api.toden.co/api/v1/wallet-screenings" \
-H "Authorization: Bearer $TODEN_SECRET_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: wallet-customer-42-20260930" \
-d '{"network":"ethereum","address":"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","asset":"USDT","sandboxScenario":"wallet.sanctions.direct"}'

network is the chain, such as ethereum or TRX; asset is separate, so USDT and USDC are never network values. Network identifiers may contain letters, numbers, periods, underscores, colons and hyphens, up to 40 characters. Toden translates known aliases and forwards other well-formed identifiers as supplied, without a fixed allowlist. The configured provider determines network and address acceptance. sandboxScenario works only with a test key. Optionally add subject: {"externalUserId":"customer_42"} to link an existing customer and enable linked alerts and cases.

With the Sandbox scenario above and the default direct-sanctions rule, these selected response fields show what to inspect first. IDs and timestamps vary:

{
"screening": {
"id": "wsc_test_example",
"environment": "sandbox",
"kind": "address",
"status": "screened",
"wallet": {
"address": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"blockchain": "ETH",
"asset": "USDT"
},
"risk": { "score": 92, "level": "critical" },
"decision": "block",
"blocklisted": false,
"exposures": [
{ "category": "SANCTIONS", "direction": "source", "type": "direct", "hops": 0, "share": 65 },
{ "category": "EXCHANGE", "direction": "source", "type": "direct", "hops": 0, "share": 35 }
],
"fundFlow": {
"kind": "exposure_map",
"totalExposures": 2,
"truncated": false,
"nodes": [
{ "id": "exposure-0", "exposurePosition": 0, "category": "SANCTIONS", "direction": "source", "type": "direct", "hops": 0, "share": 65, "entityName": "OFAC SDN wallet", "isHighRisk": true },
{ "id": "exposure-1", "exposurePosition": 1, "category": "EXCHANGE", "direction": "source", "type": "direct", "hops": 0, "share": 35, "entityName": "Sandbox Exchange", "isHighRisk": false }
]
},
"rulesTriggered": [
{ "name": "Direct sanctions exposure", "version": 1, "action": "BLOCK" }
]
}
}

The response also contains the full permitted profile, exposure details, rule conditions, case links and timestamps. block is Toden’s API value for a decline decision. The rulesTriggered array records the matched rule version.

const response = await fetch(`${process.env.TODEN_API_BASE_URL}/wallet-screenings`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.TODEN_SECRET_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': 'wallet-customer-42-20260930',
},
body: JSON.stringify({ network: 'ethereum', address: '0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' }),
});
const { screening } = await response.json();
console.log(screening.id, screening.decision, screening.rulesTriggered);

Responses use the Toden contract: screening.id, environment, wallet, risk, decision, blocklisted, exposures, riskFactors, counterparties, graph, rulesTriggered, screenedAt and createdAt. Raw screening data is never returned. decision is allow, review or block. A new result returns 201, an idempotent replay 200 and an in-progress request 202.

Your wallet address blocklist

blocklisted is true when the address is on your wallet address blocklist. The decision is then block whatever the risk score, and the blocklist does not appear in rulesTriggered, so read blocklisted to tell the two apart. risk.level and risk.score keep the risk reading. While a screening is still running (202, decision is null), blocklisted is false, so read it only once decision is set. An Ethereum-style address is matched on every network, ignoring upper and lower case. An address added to the blocklist is stored as the bare address, with quotes, network labels and explorer or payment links removed (for a token link, the wallet in its address= or a= value), so it matches a screening of that address.

The screening still runs and is charged as normal, and the exposures and risk score are returned as usual. If your blocklist has wallet addresses on it and Toden cannot read it when it screens, the decision is held at review at least, never allow. In the rare case that Toden cannot confirm at that moment whether your blocklist has any wallet addresses, it still checks the blocklist for the screened address, and a listed address is blocked. Only if that check fails too does the decision follow the risk result as usual. An address you add or remove takes effect from the next screening; past screenings are not changed.

Wallet verification & screening

The address overview uses the saved screening evidence. These fields are also returned for each counterparty wallet in a transaction assessment.

Address overviewResponse field
Screening targetkind (address for a wallet address)
Wallet addresswallet.address
Scorerisk.score, out of 100
Risk levelrisk.level, the Toden severity band
Blockchainwallet.blockchain
Ownerprofile.owner
Owner typeprofile.ownerType and optional profile.ownerSubtype
Userprofile.user
User typeprofile.userType and optional profile.userSubtype
First transaction timeprofile.firstTransactionAt
Latest transaction timeprofile.latestTransactionAt
Date addedprofile.providerDateAdded

Owner and user labels are separate provider attributions, not proof of wallet control. Missing fields are null; Toden does not copy owner into user or substitute the screening date for a missing transaction date. Existing profile.entityLabel and profile.entityType fields remain available. risk.level is always the Toden severity band. An empty profile does not mean the wallet is clean.

Use GET /api/v1/wallet-screenings/{id} to read one result and GET /api/v1/wallet-screenings?limit=50&cursor=... for scoped history. A different organisation or environment cannot read the screening.

GET /api/v1/wallet-screenings/{id}/report downloads a Toden PDF of the saved decision, exposures and triggered rule versions, with the screening ID as its reference. It does not rerun screening and requires the same scoped secret key as the result read.

Risk factors, counterparties and entity network

These fields explain the score. They are also returned for each wallet in a transaction assessment.

FieldWhat it tells you
risk.sanctionsHittrue when the wallet, or an entity it has exposure to, is sanctioned.
riskFactorsUp to 10 ranked drivers of the score: category, label, description, entityName, direction (incoming, outgoing, connected, attribution or unknown), exposureType, amountUsd, share (0 to 100, of the total screened volume) and isHighRisk.
counterpartiesUp to 50 entities the wallet has dealt with, riskiest first, each listed once: entityName, entityType, entitySubtype, riskLevel, categories, country (ISO alpha-2 or null), receivedUsd and sentUsd.
exposures[].entitySubtype, nativeAmount, nativeCurrencyThe entity’s subtype, and the exposure amount in the asset itself (for example 0.35 ETH) when known.
graphToden’s entity network for the wallet, or null when there is no entity to show.

riskLevel on a counterparty or network node is Toden’s band: none, low, medium, high, critical or null when no band is known. It describes that entity and never changes the screening’s risk.level or decision.

graph has kind: "entity_network", nodes, edges and truncated. The screened wallet is the node with id: "subject", labelled with its masked address only. Every other node is one entity, labelled with its name or, when it has none, its category. An edge with relation: "source" runs from an entity to the wallet (funds came from it), destination runs from the wallet to the entity (funds went to it), and attribution links an entity to the wallet without a direction of funds. Repeated links between the same entity and the wallet are merged: their share and amountUsd are added and hops is the fewest. The network holds at most 60 nodes, keeping the riskiest entities and then the largest shares; truncated is true when more were found. The network is built from the screening’s evidence. It is not a verified path of on-chain transfers. network (node and edge counts) is kept for compatibility; use graph instead.

fundFlow is a bounded exposure map: the first 40 normalised exposure rows, with totalExposures and truncated indicating whether more were retained in exposures. It does not claim a verified transfer path or expose the provider’s raw graph.

ResultNext step
201 createdSave screening.id and act on decision.
200 replayReuse the original result; no second screening or charge was created.
202 in progressRead the returned screening or assessment status before acting.
422 invalid wallet or malformed networkCorrect the input (invalid_wallet or invalid_network). No provider call or billable usage was made.
409 idempotency conflictUse the original payload with that key, or choose a new key for a new screening.

If the provider rejects a network after receiving the request, Toden records the failed attempt. This is separate from pre-call input validation; do not blindly retry it or treat it as a clean result.

Operational uncertainty becomes a reviewable result, never a clean wallet. To receive updates, subscribe to Wallet Intelligence webhooks.