MIRA Pools
Fetch pools for blocks 0
to 11710000
.
curl -s --location --request GET \
"https://app.pangea.foundation/v1/api/mira/v1/pools?chains=FUEL&from_block=0&to_block=11710000" \
--header "Accept: application/jsonstream" \
--header "Accept-Encoding: gzip" --compressed \
--header "Authorization: Basic $PANGEA_AUTH" | jq
Response
{
...
{
"chain": 9889,
"block_number": 11683430,
"block_hash": "0x651432852b18a1b23c58d35cf43c33eb6b0f7d59a7904628c6c2db6b0de5b7d7",
"transaction_hash": "0x51a60a1ee56af0b567b6eb62c14c4a12a658dc2d87bde9a3872193ebd60c32e7",
"transaction_index": 0,
"log_index": 1,
"pool_address": "0x2e40f2b244b98ed6b8204b3de0156c6961f98525c8162f80162fcf53eebd90e7",
"is_stable": false,
"lp_address": "0x47f18500720a2e7ec27690b734c2c953d5dcf6105252a64495eb74e98579a2f5",
"lp_name": "pzETH-ETH LP",
"asset0_address": "0x1493d4ec82124de8f9b625682de69dcccda79e882b89a55a8c737b12de67bd68",
"decimals0": 9,
"asset1_address": "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07",
"decimals1": 9
}
}
Filter by asset
Fetch pools for blocks 0
to 11710000
where either asset0_address
or asset1_address
is 0x1d5d97005e41cae2187a895fd8eab0506111e0e2f3331cd3912c15c24e3c1d82
(FUEL
).
curl -s --location --request GET \
"https://app.pangea.foundation/v1/api/mira/v1/pools?chains=FUEL&from_block=0&to_block=11710000&assets__in=0x1d5d97005e41cae2187a895fd8eab0506111e0e2f3331cd3912c15c24e3c1d82" \
--header "Accept: application/jsonstream" \
--header "Accept-Encoding: gzip" --compressed \
--header "Authorization: Basic $PANGEA_AUTH" | jq
Response
{
...
{
"chain": 9889,
"block_number": 11221339,
"block_hash": "0x81c6b3fc7d26381332ecd0c1d0669a51828d3975c664030cfddf8bd6e8abb4c2",
"transaction_hash": "0x9b19608c4e81237bf5ba8a1775566ce443a7b0b9abbaa38ef23a9c81c70ec951",
"transaction_index": 0,
"log_index": 1,
"pool_address": "0x51bb9bf2f9df6c3af3a52ca0bad250ce12df40f27f8ea542403230bfda987526",
"is_stable": true,
"lp_address": "0xea7110722cdea39f3046f5b73fbf2f587dc35b689c294ad0d7638fc86723a21a",
"lp_name": "FUEL-ETH LP",
"asset0_address": "0x1d5d97005e41cae2187a895fd8eab0506111e0e2f3331cd3912c15c24e3c1d82",
"decimals0": 9,
"asset1_address": "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07",
"decimals1": 9
}
}
Query parameters
v1/api/mira/v1/pools?chains=FUEL
chains
: Filters the data bychain
.from_block
: Filters the data by a startingblock_number
.to_block
: Filters the data by an endingblock_number
.pool_address__in
: Filters the data bypool_address
. This is the singleton contract address for the protocol, not the address of the specific liquidity pool.asset0__in
/asset0_address__in
: Filters the data byasset0_address
.asset1__in
/asset1_address__in
: Filters the data byasset1_address
.assets__in
: Filters the data by eitherasset0_address
orasset1_address
.