Spark Markets
Get all Spark market registration events for blocks 0
to 6000000
.
curl -s --location --request GET \
"https://app.pangea.foundation/v1/api/spark/markets?chains=FUEL&from_block=0&to_block=6000000" \
--header "Accept: application/jsonstream" \
--header "Accept-Encoding: gzip" --compressed \
--header "Authorization: Basic $PANGEA_AUTH" | jq
Response
[
...
{
"chain": 9889,
"block_number": 5813594,
"block_hash": "0x9185fc986af06527d5b0495fe19ab5295111e0d8b471eea787054306a4dfed49",
"transaction_hash": "0x232c81c5f0081f744b6a5b354659f6edc175723c84f3d9b091bce7b3dec30827",
"transaction_index": 0,
"log_index": 0,
"event_type": "Register",
"base_asset": "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07",
"quote_asset": "0x286c479da40dc953bddc3bb4c453b608bba2e0ac483b077bd475174115395e6b",
"market_id": "0xfe2c524ad8e088f33d232a45dbea43e792861640b71aa1814b30506bf8430ee5"
}
]
Query Parameters
app.pangea.foundation/v1/api/spark/markets?chains=FUEL
chains
: Filters the data by specific blockchain networks.from_block
: Filters the data by a starting block number.to_block
: Filters the data by an ending block number.event_type__in
: Filters the data by a list ofevent_type
(Register
,Deregister
).base_asset__in
: Filters the data by a list ofbase_asset
.quote_asset__in
: Filters the data by a list ofquote_asset
.market_id__in
: Filters the data by a list ofmarket_id
.