Interest Protocol Pools

Fetch pools for versions 0 to 126000.

curl -s --location --request GET \
 "https://movement.app.pangea.foundation/v1/api/interest/v1/pools?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": 100399,
    "transaction_hash": "0x08c8460b5520bae08d5400fdc60438528a5936f95f1209897f3d1c503e0152e3",
    "log_index": 3,
    "address": "0x13418bb00810eca160f77aa03e134d6d62b0859653f9236ccc6293acf1a6513d",
    "pool_address": "0xce6b5a7d8d2c2023e2e11e06d9a1d0dcea2949262b2d25f4da0d17ed529aa43f",
    "token0_address": "0x423421e3cd03a806711d84d37cd354f3bafd081a6d91fcba7ef0bff403f59e83",
    "token0_decimals": 9,
    "token0_name": "Tio Batalha",
    "token0_symbol": "Batalha",
    "token1_address": "0x5f7f59e38a96dfe79830f53fe49a19e770f70a13ff30ce598a49e8f0a2b46861",
    "token1_decimals": 8,
    "token1_name": "🔥",
    "token1_symbol": "🔥"
  }
}

Query parameters

movement.app.pangea.foundation/v1/api/interest/v1/pools

  • chains: Filters the data by chain.
  • from_block: Filters the data by a starting version. As Move chains use a per-transaction versioned database, we use version interchangably with block_number and omit blocks altogether.
  • to_block: Filters the data by an ending version. As Move chains use a per-transaction versioned database, we use version interchangably with block_number and omit blocks altogether.
  • pool_address__in: Filters the data by a list of pool_address.
  • token0_address__in: Filters the data by a list of token0_address.
  • token1_address__in: Filters the data by a list of token1_address.
  • tokens_address__in: Filters the data by a list of both token0_address and token1_address.