Spark Markets
Get Spark market registration for the last 10000 blocks.
curl -s --location --request GET \
"https://app.pangea.foundation/v1/api/spark/markets?chains=FUEL&from_block=-10000&to_block=latest" \
--header "Accept: application/jsonstream" \
--header "Accept-Encoding: gzip" --compressed \
--header "Authorization: Basic $PANGEA_AUTH" | jq
Response
[
{
"chain": 9889,
"block_number": 5120139,
"block_hash": "0x9002eb29581643c7937d0e270b46039616fdb794cb8c27cc2c60908d4a311c56",
"transaction_hash": "0x2cb3ec7114e2030cd170a574b80ba284f1f2d1b43c6a1340976750aea240aeca",
"transaction_index": 0,
"log_index": 0,
"event_type": "Register",
"base_asset": "0x0b2d808a898cdae8b8661d398a98f8ff45e1e0f536ba2e498f6c7e53a71932cd",
"quote_asset": "0x368f9275e7d072794527b57d5b54688300008a400f41d926a013195e7074029c",
"market_id": "0x12a5f8666279f841e5900500297ce3c8bcf40103dd191c56dd3ec86f92b9217b"
}
...
]
Query Parameters
app.pangea.foundation/v1/api/spark/markets?chains=FUEL
chains
: This parameter is used to filter the data by specific blockchain networks.from_block
: This parameter is used to filter the data by a starting block number.to_block
: This parameter is used to filter the data by an ending block number.event_type__in
: This parameter is used to filter the data by a list of event types (i.e.Register
,Deregister
).base_asset__in
: This parameter is used to filter the data by a list of base asset ids.quote_asset__in
: This parameter is used to filter the data by a list of quote asset ids.market_id__in
: This parameter is used to filter the data by a list of market ids.