API
POST /follow
Follow the funds out of a wallet: the main stream of money, hop by hop, until it reaches a service or comes to rest.
Request
Costs 2 analyses from your plan, or 2 credits ($0.10), and takes up to about 90 seconds. See Follow the funds for how to read a trail, and Chains for where it works.
| Field | Type | Meaning |
|---|---|---|
address | string | Required. The wallet to start from. |
chain | string | As for /analyze: solana for a base58 address, ethereum for a 0x one, bitcoin for a Bitcoin one, tron for a Tron one, unless given. dYdX and Noble can't be followed yet. |
asset | string | native (SOL, ETH or BNB, wrapped included; TRX on Tron; BTC, the only choice on Bitcoin), or a token mint or contract (USDT's TRC-20 contract on Tron). Left out: whatever value left the wallet, by dollar value when it moved: the native coin, stablecoins and, on the EVM chains, any token with a price. |
since | integer | Unix seconds: follow what left the start wallet after this time. |
until | integer | Unix seconds: the end of the window. Nothing that moved after it is followed, on any hop, so the trail stays within an incident. |
max_hops | integer | Hops to follow at most, 1 to 50. |
branches | integer | Branches followed at each wallet, 1 to 5. Default 1: the main stream only. Above 1, side branches are followed too, as side trails (trails), sharing the time budget. |
taint | string | Which of a wallet's payments carried the money that arrived in it, when it also held other money. fifo: the wallet's older money leaves first, then this money, then later money. window: the payments right after it arrived, oldest first, each in full, until they add up to it. lifo: the newest money leaves first, so money paid in after it goes out ahead of it. haircut: every payment after it arrived carries its share of the balance at that moment. poison: every payment after it arrived carries it in full (an upper bound). tiho: the largest payments after it arrived carry it first. Default: window. The start wallet's payments are all followed under every rule. Hop amounts are what each payment carried; the rule used is in taint. Rules other than the default come with Pro and above (plan_required below it). |
request.sh
1curl -X POST https://iriscan.app/api/follow \2 -H "Authorization: Bearer $IRIS_KEY" \3 -H "Content-Type: application/json" \4 -d '{ "address": "<wallet>", "asset": "native" }'Response
response.json (200 OK, abridged)
1{2 "chain": "solana",3 "start": "<wallet>",4 "asset": { "symbol": "SOL", "address": null, "decimals": 9 },5 "taint": "window",6 "hops": [7 {8 "from": "<wallet>",9 "to": "<next wallet>",10 "how": "sent",11 "amount": 412.5,12 "usd": 61875,13 "symbol": "SOL",14 "signature": "…",15 "time": …,16 "share": 0.98,17 "to_label": null18 }19 ],20 "end": {21 "reason": "exchange",22 "address": "<last wallet>",23 "detail": "…",24 "holding": null,25 "branches": [],26 "output": null,27 "signature": null,28 "time": null29 }30}| Field | Type | Meaning |
|---|---|---|
asset | object | What was followed: symbol, address (null for the native coin), decimals. |
hops[] | Hop | In order: from, to, how (sent; on Solana also closed, a token account closed into the next wallet, control, an account handed to it, stake_control, a stake account's withdraw rights handed to it, or position, put into a DeFi position), amount, usd when known, the largest transaction that carried it (signature, time), all of them in signatures (oldest first, up to 100), on the EVM chains through (an unlabeled contract that passed it on to to in the same transaction: a router, a multisend), its share of what had arrived in the sending wallet, and to_label: name and kind (exchange, bridge, mixer, dex, contract, sanctioned, hack or other) when the destination is known. |
end.reason | string | exchange, bridge, mixer, dex_swap, split, at_rest, loop (back to a wallet already on the trail), max_hops or no_data (the next wallet couldn't be read). On Solana also position, order or unstaking (money put into a DeFi position, an order or an unstake), locked (a token lock), program_account (an address no key controls) and assigned (the wallet was handed to a program). On the EVM chains also contract: a smart contract, not someone's wallet, and service_like: an unlabeled wallet that behaves like a service, with its largest payouts in branches. |
end.detail | string | Why the trail ends, in a sentence ready to show. |
end.deposit_address | string | For exchange: the exchange deposit address where the money was deposited, when known. |
end.holding | number | null | For at_rest: what the last wallet still holds of the asset. |
end.branches[] | Branch | For split: the largest transfers it split into (to, amount, usd, signature, to_label). |
end.output, signature, time | object, string, number | For dex_swap: the asset it was swapped into, the largest swap and when the first one was. Follow output.address from end.address with that since to keep going. On the EVM chains the trail goes on by itself in what a swap bought, and ends as dex_swap only when it can't. |
trails[] | SideTrail | With branches above 1: the side branches followed, each with id, parent (the trail it branched from, 0 for the main stream, at its first hop's from), share (of the start's money, about), asset, hops, end and swaps, as above. A branch reaching a wallet another one followed ends as joined. |
swaps[] | Swap | EVM: the swaps the trail went through, in order: after_hop (hops before it), wallet (that got what it bought, where the trail goes on), sold, sold_symbol, bought (an asset), amount, venue, venue_name, signature, time. The hops after a swap are in what it bought, and so is end.asset, what holding and branches are in. Missing when there was none. |
end.bridge | object | For bridge, when the transfer is found: bridge, status, source and destination (each chain, address, tx, time, amount, asset), explorer_url and evidence. Follow on from destination.address on its chain. Missing when the transfer couldn't be found. |
end.position, end.program | object, string | For position, order and unstaking: the account read back (protocol, kind, account, owner, market) and its exits, what left it since and to whom. For program_account and assigned: the program that controls the address now. |
A lead, not a proof
A trail follows the main stream of money: check each hop before acting on it. A trail cut short by the time budget is still charged. When the start wallet itself can't be read, the answer ends asno_data with no hops and is not charged; what else couldn't be read on the way is listed in warnings.