Claim Rewards
There are 2 ways to claim rewards:
On the Morpho interface
-
Connect your wallet to the Morpho Interface
-
Click on the
Claim Rewards
button
At the smart contract level
Specifying each inputs
-
Query the following endpoint by replacing
0x_ADDRESS
with the address that has supposedly earned rewards:Endpoint: https://rewards.morpho.org/v1/users/0xC977d218Fde6A39c7aCE71C8243545c276B48931/distributions
And retrieve information
1
,2
,3
,4
and5
. -
Jump on the
distributor
address (on etherscan on basescan depending on thechainId
), which is point3
Important: When copying the inputs, including the proof, ensure you do not include any quotation marks (") at the beginning or end of any value. The proof itself is a continuous string of characters without any punctuation except the brackets ([ and ]) at the beginning and the end, and comma (,) as separator.
Specifying the raw data
This method allows you to claim rewards by directly sending the pre-formatted transaction data, without manually specifying each input.
-
Query the endpoint as described in step 1 of the Specifying each inputs section.
-
In the API response, locate the
tx_data
field (point6
in the image above). This contains the pre-formatted transaction data. -
Send a transaction to the
distributor
address (point3
in the image) using thetx_data
as the transaction data:-
If using MetaMask, Rabby, or similar wallets:
a. Click "Send Transaction"
b. In the "To" field, enter thedistributor
address
c. In the "Hex Data" or "Data" field, paste the entiretx_data
value
d. Review and confirm the transaction
Ensure you're connected to the correct network (Ethereum mainnet or Base) as indicated by the
chainId
in the API response.This method automatically includes all necessary inputs (amount, merkle proof, etc.) in the transaction data, simplifying the claim process.
-