Arche Protocol Loans

Fetch loan events for versions 0 to 130000.

curl -s --location --request GET \
 "https://movement.app.pangea.foundation/v1/api/arche/loans?chains=MOVEMENT&from_block=0&to_block=610000" \
 --header "Accept: application/jsonstream" \
 --header "Accept-Encoding: gzip" --compressed \
 --header "Authorization: Basic $PANGEA_AUTH" | jq

Response

{
  ...
  {
    "block_number": 609644,
    "transaction_hash": "0x510d2ac9c8057321722801915feb51a024e72d8d751d5f9849885ac310c6186d",
    "log_index": 9,
    "arche_address": "0xbcc40f56a3538c9cc25254f485f48e6f150f9acac53a2e92c6d698a9c1751a0b",
    "event_type": "Borrowed",
    "asset_address": "0x000000000000000000000000000000000000000000000000000000000000000a",
    "asset_name": "Move Coin",
    "asset_symbol": "MOVE",
    "asset_decimals": 8,
    "address": "0x195ad9d86b49bc89eb3dad5a005f20809ebe2139837c5580514f4ff1996e0707",
    "collateral_amount": null,
    "borrowed_amount": 1089000,
    "borrow_fee_amount": null,
    "interest_spread_amount": null,
    "debt_accrued_amount": null,
    "repay_amount": null,
    "unlocked_collateral_amount": null,
    "liquidated_collateral_amount": null,
    "liquidator_address": null
  }
}

Query parameters

https://movement.app.pangea.foundation/v1/api/arche/loans?chains=MOVEMENT

  • 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.
  • event_type__in: Filters the data by a list of event_type.
  • address__in: Filters the data by a list of borrower address.
  • asset_address__in / collateral_asset__in: Filters the data by a list of collateral asset_address.
  • liquidator_address__in: Filters the data by a list of liquidator_address.