Der Adressabgleich
Diese Seite beschreibt checkAddress, eine optionale Abfrage, ob eine Adresse in einer Liste steht, die der Integrator selbst liefert. Das Ergebnis ist nur ein Hinweis: Die Smart Contracts gleichen keine Adresse mit einer Liste ab. Die Seite nennt außerdem, was ein Integrator vor dem Einsatz liest, unter anderem zu EU-Sanktionen, und was das Ergebnis nicht aussagt.
Der Leitfaden unten steht auf Englisch, weil wir ihn unverändert aus dem Repository der SDKs übernehmen.
The address check
An optional, advisory look-up of one address in a list the integrator supplies. Index: README.md. Related:
duties.md, limits.md. Nothing here is legal advice, and no lawyer has confirmed any statement on this page.
What the check is
checkAddress is a pure function in both SDKs. It takes an address, a list that the caller supplies, the oldest list file the caller accepts and the time, and says what it found in that list, naming the list. It is the integrator's call to make, when and where it wants one.
-
It uses the list the caller supplies and no other. The SDKs carry no list of addresses to check against (the token refusal list they ship names tokens, not addresses to look up, and
checkAddressnever reads it), host no mirror, fetch nothing and call no endpoint, ours or anyone's. The caller loads a list from a source it chooses, turns it into the shape below, and passes it in. -
It reads no clock. The caller passes
now, in seconds since the epoch, so the same input always gives the same answer. -
It has no default for the age.
maxAgeSecondsis needed. Leaving it out is refused asmax-age-required. - It looks at the address and nothing else. It matches no name, no owner, no chain and no amount.
-
It changes nothing and blocks nothing. No builder of the SDK calls it, and it is not a function of the
Sdkobject. A transaction the SDK builds is the same with or without a call to it; what the integrator does with an answer is the integrator's decision.
The call
The list is the source's name, the date of its file (YYYY-MM-DD) and its entries. An entry is an address and, if the list has one, the list's own reference for it (an identifier or a note). An entry has no other member, and a list that has one is refused.
import { checkAddress } from 'auto-sweep-sdk-ts';const result = checkAddress({ address: counterparty, list: { source: 'the list file the integrator loaded, and where it came from', fileDate: '2027-01-14', entries: [{ address: '0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed', reference: 'the list\'s own id' }], }, maxAgeSeconds: 7 * 24 * 60 * 60, now: Math.floor(Date.now() / 1000),});
import 'package:auto_sweep/auto_sweep.dart';final result = checkAddress(AddressCheckInput( address: counterparty, list: SuppliedList( source: 'the list file the integrator loaded, and where it came from', fileDate: '2027-01-14', entries: [ ListEntry( address: '0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed', reference: 'the list\'s own id', ), ], ), maxAgeSeconds: 7 * 24 * 60 * 60, now: DateTime.now().millisecondsSinceEpoch ~/ 1000,));
The clock is read in the integrator's code, as the last line of each snippet shows, and never in the SDK. An address is
0x and forty hex digits, in lower case, upper case or its checksum; an address in mixed case whose checksum is wrong is refused, as a likely typing mistake. The list's entries are held to the same rule. The file date counts from the start of that day, UTC.
What it returns
Every result carries address (checksummed), source and fileDate
(as given), and ageSeconds, the time from the start of the file date to now. A result that found an entry carries
entry: the first entry of the list that holds the address.
verdict |
Meaning | What it does not mean |
|---|---|---|
listed |
the address is an entry of the list, and the file is not older than maxAgeSeconds; entry is the entry
|
that the entry is correct, or that the address is the one the list's publisher meant |
not-listed |
the address is not an entry of that list, in a file not older than maxAgeSeconds
|
anything about the address, the people behind it, or any other list |
stale |
the file is older than maxAgeSeconds; entry is there if the old file holds the address
|
that the address is or is not on a newer list: a list that is too old gives this result and no other |
list-empty |
the list has no entry, so a miss would say nothing | that the address is on no list: an empty file is more often a failed download |
A miss is not-listed and never anything stronger: the answer is about one file on one day.
What it refuses
A refusal is an SdkError whose code names it, as everywhere in the SDK. Nothing is skipped silently: one bad entry refuses the call, so a list that failed to load whole cannot give a partial answer.
| Code | When |
|---|---|
max-age-required |
maxAgeSeconds is left out |
invalid-input |
maxAgeSeconds is not a positive whole number of seconds, or now is missing or is not a whole number of seconds
|
invalid-address |
the address, or the address of an entry, is not an address |
invalid-address-list |
the list has no source, no valid file date or no entries, the file date is after now, or the list or an entry has a member the check does not read, or an entry's reference is empty
|
What this guide states about it
These are plain statements, and the integrator reads them before it uses the check.
- The check is advisory. The contracts do not check any address against any list, and Cube Algos cannot freeze, pause or reverse anything.
- An integrator that serves users and is bound by EU sanctions owes an obligation of result. It chooses its own due diligence by risk, and the non-liability clause of the sanctions regulations needs appropriate due diligence, at minimum a check of all parties to the transaction.
- That check covers entities owned or controlled by listed persons, not only the persons and entities a list names.
- The EU consolidated list has no structured wallet-address field, so an address check cannot show EU compliance.
- The addresses on the OFAC SDN list are US law: for an integrator bound by EU law they are a risk signal, and they are not the EU list.
- A fresh list file is not current law. The Official Journal governs, and list files have lagged amending acts.
- The software is not offered to persons listed under EU sanctions or to persons in Russia or Belarus.
- Cube Algos gives no private, paid or individual support. It answers only through public documentation.
What the check does not say
No name, result, error or line of documentation of the check says that an address, a person or a payment is permitted, approved or free of risk. A
not-listed result does not make anyone's use of the SDK lawful or discharge a duty stated above, and no result is a statement of any authority.