Product Snapshots
Query historical product snapshots.
Rate limits
240 requests/min or 40 requests/10secs per IP address. (weight = 10)
See more details in API Rate limits
Single Product
Request
Request Parameters
product_id
number
Yes
id of product to fetch snapshots for.
idx
number / string
No
when provided, only return product snapshots with submission_idx
<= idx
max_time
number / string
No
when idx
is not provided, max_time
(unix epoch in seconds) can be used to only return snapshots created <= max_time
limit
number
No
max number of snapshots to return. defaults to 100
. max possible of 500
.
Response
Note:
the response includes a
txs
field which contains the relevant transactions to the product snapshots. There are>=1 product snapshots
per transaction.both
products
andtxs
are in descending order bysubmission_idx
.use the
submission_idx
to associate aproduct snapshot
to it's corresponding transaction.
Response Fields
Products
submission_idx
Used to uniquely identify the blockchain transaction that generated the product snapshot; you can use it to grab the relevant transaction in the txs
section.
product_id
The id of of the product the event is associated with.
product
The state of the product at the time of the transaction.
Txs
submission_idx
Unique identifier of the transaction.
tx
Raw data of the corresponding transaction
timestamp
The unix epoch in seconds of when the transaction took place.
Multiple Products
Request
Request Parameters
product_ids
number[]
Yes
Ids of products to fetch snapshots for.
max_time
number / string
No
When provided, returns the last snapshot created <= max_time
for each product. Otherwise, the latest snapshot is returned.
Response
Note: the response is a map of product_id -> snapshot
for each requested product.
Response Fields
submission_idx
Used to uniquely identify the blockchain transaction that generated the product snapshot.
product_id
The id of of the product the event is associated with.
product
The state of the product at the time of the transaction.
Last updated