Skip to main content

Endpoints

There are 2 endpoints to get information about rewards:

  1. https://rewards.morpho.org
  2. https://blue-api.morpho.org/graphql

Rewards API

All Rewards for a User

This endpoint returns all rewards at the current timestamp on all chains for one user.

GET /v1/users/[Address]/rewards

Example:

https://rewards.morpho.org/v1/users/0x0ec553110e53122d1226646670a8475D4C8E6F04/rewards

All Distributions for a User

This endpoint returns all distributions on all chains for one user.

GET /v1/users/[Address]/distributions

Example:

https://rewards.morpho.org/v1/users/0x0ec553110e53122d1226646670a8475D4C8E6F04/distributions

All Programs

This endpoint returns all programs on all chains.

GET /v1/programs

Example:

https://rewards.morpho.org/v1/programs

Blue API

Morpho Blue markets rewards

{
markets(orderBy:SupplyAssetsUsd, orderDirection:Desc) {
items {
uniqueKey
state {
rewards {
amountPerSuppliedToken
supplyApr
amountPerBorrowedToken
borrowApr
asset {
address
}
}
}
}
}
}

MetaMorpho vault rewards

{
vaults(where: { chainId_in: [8453] }) {
items {
state {
rewards {
asset {
address
}
yearlySupplyTokens
supplyApr
amountPerSuppliedToken
}
}
}
}
}

MetaMorpho vault rewards per allocated market

{
marketPositions(
where: { userAddress_in: ["0xEbFA750279dEfa89b8D99bdd145a016F6292757b"] }
) {
items {
supplyAssets
market {
uniqueKey
loanAsset {
name
symbol
}
collateralAsset {
name
symbol
}
lltv
oracleAddress
irmAddress
state {
rewards {
asset {
address
}
supplyApr
amountPerSuppliedToken
}
}
}
}
}
}

Explanation of Fields

  • amountPerSuppliedToken: The annualized amount of reward tokens earned for each token supplied in the market.
  • amountPerBorrowedToken: The annualized amount of reward tokens earned for each token borrowed in the market.
  • supplyApr: The annual percentage rate for supplying tokens, available if the reward token is priced.
  • borrowApr: The annual percentage rate for borrowing tokens, available if the reward token is priced.

For any questions on how to integrate the data, feel free to message Morpho labs team or ping on the discord.