Lens - Protocol - Sushiswap

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.

Understanding Actions in Sushiswap

There are many different type(s) of actions in Sushiwap, 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.

Sushiswap Actions
PoolCreated

PoolCreated

The protocol creates a liquidity pool for the pair token0Address and token1Address if it does not exist already. The liquidity pool is identified by the address poolAddress.

{
  "blockNumber": 12540746,
  "transactionHash": "0xd0aaa13a31a6bd360a22c60e50c3f6ec0907e949b677e2887fb67884fad46082",
  "logIndex": 167,
  "timestamp": "2021-05-31 07:18:24 000",
  "factoryAddress": "0xc0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac",
  "walletAddress": "0xaafdd2871e8ff26c1b2c46420453906b8069ec8c",
  "event": "PairCreated(index_topic_1 address token0, index_topic_2 address token1, address pair, uint256)",
  "action": "PoolCreated",
  "poolAddress": "0xd4d08d5abd7eb9e7c3199fee901b73ee0aeb77fa",
  "token0Address": "0x6d385716818e0e1ab3f022852eeb92e81e0d9376",
  "token1Address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
}
propertytype
eventstring
factoryAddressstring
walletAddressstring
poolAddressstring
timestampstring
blockNumbernumber
transactionHashstring
logIndexnumber
token0Addressstring
token1Addressstring
actionstring
Language
Authorization
Header
Click Try It! to start a request and see the response here!