Compare Stratigraphy Strata
stratigraphy.get_diffCompute signed numerical deltas (indexed height, target multiplier, percentage change, and elapsed days calculated from toTarget minus fromTarget) between two indexed stratum heights or dates. Read-only, stateless operation subject to HTTP rate limiting and L402 payment; missing stratum entries yield JSON-RPC invalid-params errors. Requires valid fromTarget baseline; toTarget defaults to latest. Use this tool specifically to compare two point-in-time entries. Use stratigraphy.get for full stratum record lookups, stratigraphy.get_range for continuous compact multi-record spans, and stratigraphy.get_digest for indexed source-record fingerprints; stratigraphy data ingest is outside this comparison tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| toTarget | No | Optional comparison indexed height (e.g. '919856'), UTC ISO date (e.g. '2026-09-01'), or 'latest' (default); deltas are toTarget minus fromTarget. 'latest' is the latest dataset entry, not the live Bitcoin tip. Constraints: pattern: ^(?:latest|(?:0|[1-9]\d*)|\d{4}-\d{2}-\d{2})$. Example: "latest". | latest |
| fromTarget | Yes | Required baseline indexed height (e.g. '850000') or UTC ISO date (e.g. '2026-01-01'); compared with toTarget to calculate signed deltas. Either chronological order is allowed; only indexed entries resolve. Constraints: pattern: ^(?:(?:0|[1-9]\d*)|\d{4}-\d{2}-\d{2})$. Example: "919856". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | One indexed daily stratum; the height is a deterministic dataset index, not a live Bitcoin block height. | |
| from | Yes | One indexed daily stratum; the height is a deterministic dataset index, not a live Bitcoin block height. | |
| delta | Yes | Signed change from the starting indexed entry to the ending entry. |