chain-insights 0.46.3 → 0.46.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -19,10 +19,12 @@ Always pass `network` and your own `LIMIT`. These two commands, and
|
|
|
19
19
|
|
|
20
20
|
1. Write every address in full, in lowercase: `0x` plus 40 hex characters, 42
|
|
21
21
|
in all. Never shorten one with `...` or `…`, in a query or in an answer.
|
|
22
|
-
Copy addresses from results exactly.
|
|
22
|
+
Copy addresses from results exactly. The network is `robinhood`, the
|
|
23
|
+
Robinhood Chain: use it without asking the user which network.
|
|
23
24
|
2. Timestamps on every layer are integer milliseconds since the epoch, UTC,
|
|
24
25
|
and `USE chain` is no exception. Compute them from the current date: a day
|
|
25
|
-
is 86,400,000 ms.
|
|
26
|
+
is 86,400,000 ms. Write the number as a literal: the server has no `now()`,
|
|
27
|
+
`timestamp()` or `duration()`. Never compare one with an ISO string. `block_date` is the
|
|
26
28
|
string `"YYYY-MM-DD"`. Every `*_usd` field is US dollars. `*_raw` is the
|
|
27
29
|
token's smallest unit, not dollars.
|
|
28
30
|
3. A shortened address, a mixed-case address, or an ISO string against a
|
|
@@ -65,7 +67,9 @@ Find the question in this table. Send its first query, once, with the addresses
|
|
|
65
67
|
| What fields does an Address have? | none | Call `meta_schema {network}`. Send no query. |
|
|
66
68
|
| Recent addresses, biggest senders, any top list of the chain | topology | A search bounded by `f.last_seen_timestamp`, then sort and LIMIT (below). |
|
|
67
69
|
|
|
68
|
-
For a question of the last row, compute the time bound first (epoch milliseconds
|
|
70
|
+
For a question of the last row, compute the time bound first as a literal number (epoch milliseconds of now minus 24 hours: take today's date, not a remembered year), then search. Never sort the whole graph without the time bound: it is stopped at 10 s.
|
|
71
|
+
|
|
72
|
+
A link's `amount_usd_sum` and `tx_count` are the pair's lifetime totals. The time bound only picks links active in the window; it does not cut their totals to the window. Say "lifetime total of pairs active in the last day", never "volume in the last day". For the money of one day, read the pair's transfers on `USE facts` for that day.
|
|
69
73
|
|
|
70
74
|
Recent activity, newest first:
|
|
71
75
|
|