Interest Protocol Swaps
Fetch swaps for versions 0
to 126000
.
curl -s --location --request GET \
"https://movement.app.pangea.foundation/v1/api/interest/v1/swaps?chains=MOVEMENT&from_block=0&to_block=126000" \
--header "Accept: application/jsonstream" \
--header "Accept-Encoding: gzip" --compressed \
--header "Authorization: Basic $PANGEA_AUTH" | jq
Response
{
...
{
"block_number": 125976,
"transaction_hash": "0xf2ff7e0e16267ac4143a8d443241ea4127590dc2e49752eb1529ee0bd76dbc6f",
"log_index": 5,
"timestamp": 1741597357539806,
"account_address": "0x13418bb00810eca160f77aa03e134d6d62b0859653f9236ccc6293acf1a6513d",
"sender": "0x49286b4778003f071c53150b73526b326ad954c5ddef75ca4400d62990b9255a",
"pool_address": "0x4487140c34467abd4bde7d635046c529d01dcdaa47d7550466f3a85afe946dc1",
"token0_address": "0x000000000000000000000000000000000000000000000000000000000000000a",
"token0_decimals": 8,
"token0_name": "Move Coin",
"token0_symbol": "MOVE",
"token1_address": "0x5f7f59e38a96dfe79830f53fe49a19e770f70a13ff30ce598a49e8f0a2b46861",
"token1_decimals": 8,
"token1_name": "🔥",
"token1_symbol": "🔥",
"side": "Sell",
"amount0": 0.1,
"amount1": 689996.17726426,
"fee_in": 0.0003,
"slot_balance0": 0,
"slot_balance1": 0,
"bid_liquidity": 0,
"last_slot_timestamp": 0,
"execution_price": 6899961.772642599,
"settlement_price": 6920723.944476027
}
}
Query parameters
movement.app.pangea.foundation/v1/api/interest/v1/swaps
chains
: Filters the data bychain
.from_block
: Filters the data by a startingversion
. As Move chains use a per-transaction versioned database, we useversion
interchangably withblock_number
and omit blocks altogether.to_block
: Filters the data by an endingversion
. As Move chains use a per-transaction versioned database, we useversion
interchangably withblock_number
and omit blocks altogether.pool_address__in
: Filters the data by a list ofpool_address
.token0_address__in
: Filters the data by a list oftoken0_address
.token1_address__in
: Filters the data by a list oftoken1_address
.tokens_address__in
: Filters the data by a list of bothtoken0_address
andtoken1_address
.