You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
oven/bun:latest bun run packages/indexer/src/bulk-backfill.ts
395
406
```
396
407
397
408
> Block 1 (genesis) has 330K events. Always set `BACKFILL_FROM=2`.
398
409
399
410
| Variable | Default | Description |
400
411
|----------|---------|-------------|
401
-
|`BACKFILL_SOURCE`|`hiro`|`hiro` = Hiro API, `local` = own Postgres |
412
+
|`BACKFILL_SOURCE`|`hiro`|`hiro` = Hiro API, `local` = own Postgres, `hiro-pg` = direct PG queries against local Hiro API database (fastest, ~150 blocks/sec)|
402
413
|`BACKFILL_FROM`|`2`| Start height |
403
414
|`BACKFILL_TO`| auto | End height (auto-detects chain tip) |
404
415
|`BACKFILL_CONCURRENCY`|`20`| Parallel fetches |
@@ -419,16 +430,18 @@ Bootstrap stacks-node from Hiro's archive (~800-900 GB) instead of syncing from
Returns `ContractDetail` (summary + `deployTxId`, `abi`, `updatedAt`). 404 if not found.
56
-
57
-
### Get ABI
58
-
59
-
```
60
-
GET /api/contracts/:contractId/abi
61
-
GET /api/contracts/:contractId/abi?refresh=true
62
-
```
63
-
64
-
Returns the contract's Clarity ABI as JSON. On first request, fetches from the Stacks node and caches in the database. Subsequent requests serve from cache. Pass `?refresh=true` to force re-fetch (useful for upgraded contracts).
0 commit comments