Lens - Protocol - Curve

This API retrieves information about all of the actions that occurred on the protocol within a certain timespan.

🚧

Time Range Limit

The maximum time range (difference between endDate and startDate) is 60 days.

📘

Not specifying startDate and endDate

If the startDate and endDate query parameters are not provided, the API will return data from the current date - 30 days.

So if the date-time today is 2022-12-20T00:00:00, then the first object in payload.data would start from at least 2022-11-20T00:00:00.

👍

Supported Pools

This endpoint only supports Curve v1 pools. Crypto pools (Curve v2) and factory pools (metapools) are not supported.

Understanding Actions in Curve

There are many different type(s) of actions in Curve, as you'll see in the action property for each item of the payload.data array. The guide below will help you understand the possible actions.

Curve Actions
PoolCreated

PoolCreated

A liquidity pool has been created at the address pool.

{
  "blockNumber": 14967642,
  "transactionHash": "0xfb48b7ab14629aece9b6692497e5a1555548088d42eee96990097ca73fabf95f",
  "logIndex": 99,
  "timestamp": "2022-06-15 13:08:03 000",
  "factoryAddress": "0xdcef968d416a41cdac0ed8702fac8128a64241a2",
  "walletAddress": "0xbabe61887f1de2713c6f97e567623453d3c79f67",
  "event": "PoolAdded(index_topic_1 address pool, bytes rate_method_id)",
  "action": "PoolCreated",
  "pool": "0xdcef968d416a41cdac0ed8702fac8128a64241a2",
  "rateMethodId": "0x00000000"
}
propertytype
blockNumbernumber
transactionHashstring
logIndexnumber
timestampstring | number
factoryAddressstring
walletAddressstring
eventstring
actionstring
poolstring
rateMethodIdstring
Language
Authorization
Header
Click Try It! to start a request and see the response here!