GET
/
lending
/
{protocolId}
/
governance
Governance Lens
curl --request GET \
  --url https://api.amberdata.com/defi/lending/{protocolId}/governance \
  --header 'x-api-key: <api-key>'
{
  "status": 200,
  "title": "OK",
  "description": "Successful request",
  "payload": {
    "metadata": {
      "next": "https://api.amberdata.com/defi/lending/aavev3/governance?cursor=N4IgRgNg9gxg1jAFgQwJYDsCSATEAuEARhgE5SA2EgBnIFYAzGbY%2BkAGhAAcAnKAF1hQIOfCGTIAbgFMJAZnYg%2BqALZSAYlG7LkfUYgCu29ACUpybMkhSF2VNykwlUdKICCAZQDCCgM59k3HwAIjrWeITkACyEtAAc5ADssrRUqRxS6NghfGERkbJJsgBM5LGpVBw%2BqABeYSDyHPSa2roEAFY%2BzgqcyADmuRyaqL0YyBDu-oHZuVGEVIQJsUXlFSBDI%2BhjAKKZ0-h5BbLFpeUcEMh%2BACoqUn7Iypz7s3GJyWcXfAAyUL2YmVIAD3wRRK7z8AAVeJwoD4xiICLRIiAAL5AA"
    },
    "data": [
      {
        "action": "Proposal",
        "proposalId": "54",
        "timestamp": "2022-01-06 07:07:31 000",
        "title": "Risk Parameter Updates 2021-12-29",
        "shortDescription": "Risk parameter updates",
        "ipfsHash": "QmZc8PLPsfT98kiVuECZDYh4nJgjwSgthNNBNhGz5kCTfZ",
        "creator": "0x683a4f9915d6216f73d6df50151725036bd26c02"
      }
    ]
  }
}

Authorizations

x-api-key
string
header
default:API_KEY
required

Path Parameters

protocolId
enum<string>
default:aavev2
required

Note: Aave has the same governance regardless of protocol version (v2 vs. v3).

Available options:
aavev2,
aavev3,
compoundv2,
makerdao

Query Parameters

startDate
string<date-time>
default:2022-09-01

Payload only includes data after this date (inclusive).<BR>[Formats] seconds | milliseconds | iso8601<BR>[Examples] 1578531600 | 1578531600000 | 2020-09-01T01:00:00

endDate
string<date-time>
default:2022-09-30

Payload only includes data before this date (exclusive).<BR>[Formats] seconds | milliseconds | iso8601<BR>[Examples] 1578531600 | 1578531600000 | 2020-09-01T01:00:00

size
integer

Number of records per page

direction
string

The order in which to return the results (ascending or descending). By default. records are returned in descending order, so the most recent records are returned first.

timeFormat
string

Time format of the timestamps in the return payload.<BR/>[Defaults] milliseconds | ms* | iso | iso8601 | hr | human_readable

proposalId
string

The proposal id to filter results by

address
string

The wallet address to filter results by

support
boolean

Filter results by votes for or votes against

Response

200 - application/json

200

The response is of type object.