chain
analytics

Fetch the recent all-events feed (newest first) from the chain_events lakehouse table — every raw pallet.method event, distinct from the curated account-attributed stream. ?pallet / ?method narrow by event id (1-64 ASCII identifier chars); ?block (+ optional ?extrinsic) scopes to one block or extrinsic; ?cursor is the lossless block_number.event_index keyset cursor and ?before is the legacy block_number-only cursor; ?limit caps the page (<=200, default 50). Pass ?format=csv to download the page as CSV. Each page reads one bounded block window below its ceiling, so a short page still carries a continuation rather than ending the feed. Served live, no static file.

get/api/v1/chain-events

Request

  • Base URL: https://api.metagraph.sh
  • URL: https://api.metagraph.sh/api/v1/chain-events
  • Auth: none required

Query parameters

palletstring

Filter to events emitted by this pallet, e.g. SubtensorModule or Balances.

methodstring

Filter to events with this method name within the pallet, e.g. StakeAdded.

blockinteger

Inclusive first block height of the range to read. Omit for an unbounded end. Must not be later than the range's upper bound.

extrinsicinteger

Filter to events emitted by the extrinsic at this index within its block.

cursorstring

Opaque block_number.event_index cursor returned as next_cursor; both parts are non-negative safe integers.

Opaque pagination token: pass back the next_cursor from the previous response verbatim. Its contents are not stable and must not be parsed or constructed. Stable across inserts, unlike a row offset.

beforeinteger

Inclusive first block height of the range to read. Omit for an unbounded end. Must not be later than the range's upper bound.

limitinteger

Maximum number of rows to return in one page (at most 100). A larger value, or a non-positive one, is rejected with 400 invalid_query -- so a short page means the result set is exhausted, not that the server quietly capped you (#9916). Omitted, the server applies 50.

format'json' | 'csv'

Response format override. Use csv to download the route rows as text/csv; json keeps the default response envelope.

Response

Canonical artifact wrapped in the Metagraphed API envelope, or route rows as text/csv when CSV is requested.

oktrue required
schema_version1 required

Changes

No recorded changes to this operation across all 1 revision of this API.