@secondlayer/sdk 6.2.0 → 6.2.1
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/README.md +6 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,8 +19,9 @@ const sl = new SecondLayer({
|
|
|
19
19
|
});
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
`sl.
|
|
23
|
-
|
|
22
|
+
`sl.datasets`, `sl.contracts`, `sl.index`, and `sl.subgraphs` reads are anonymous
|
|
23
|
+
— no key needed (`sl.index` rejects free-tier keys — Build+ for keyed access).
|
|
24
|
+
**`sl.streams` reads require a bearer token** (`apiKey`) and resolve a per-tier tenant; a
|
|
24
25
|
publicly-known free-tier token exists but a bearer is always required. Writes
|
|
25
26
|
require an `sk-sl_` API key, created in the platform console at
|
|
26
27
|
https://secondlayer.tools/platform/api-keys. (Public Streams bulk dumps —
|
|
@@ -29,7 +30,9 @@ https://secondlayer.tools/platform/api-keys. (Public Streams bulk dumps —
|
|
|
29
30
|
## Mental model
|
|
30
31
|
|
|
31
32
|
- `sl.streams` reads raw ordered L1 events from Stacks Streams.
|
|
32
|
-
- `sl.index` reads decoded L2 FT/NFT
|
|
33
|
+
- `sl.index` reads the decoded L2 layer from Stacks Index — FT/NFT transfers, all event types (`events`), and `contractCalls`.
|
|
34
|
+
- `sl.datasets` reads the Foundation Datasets (sBTC, BNS, PoX-4, STX transfers); `listDatasets()` is the catalog.
|
|
35
|
+
- `sl.contracts` finds deployed contracts by trait (SIP-009/010/013).
|
|
33
36
|
- `sl.subgraphs` reads app-specific L3 tables from Stacks Subgraphs.
|
|
34
37
|
|
|
35
38
|
## Stacks Streams
|