Attention ETHGlobal Hackathon Participants. We have a $1000 Bounty available for best integration of Merits. The basic requirement is to incorporate Merits (Blockscout Points) into your application in some way. Users can earn Merits through different activities in your app and you can distribute them via the API. Below you will find more info on the program and the API for checking user Merits, distribution, and login processes.
What are Blockscout Merits?
Merits are digital rewards collected by interacting with Blockscout and Blockscout-related apps and by participating in various activities (like contests, X participation, telegram participation, app participation and more). Merits are chain agnostic and can be incorporated into any application. For more details see the Merits section of the docs.Using Merits as an activity incentive
Merits are used to incentivize different activities within the Blockscout universe. For example:- Blockscout explorer basics: Earn Merits by signing up for the program. Once you are signed up, you can earn additional Merits by completing a daily claim. You can also share your referral code and earn Merits when new users sign up with that code.
- Telegram mini app. The telegram Blockscout Merits Bot allows for direct communication with subscribers. Users who download the bot receive extra Merits -> https://t.me/blockscout_merits_bot
- Swapscout swapping app. Merits are incorporated in the app so that users can view their balance and earn Merits for their swaps. https://swap.blockscout.com/. This is a good example of an external app that incorporates Merits.
- Revokescout app. Merits are used to incentivize users but there is no sign in or interface. We simply check addresses that use the application and distribute Merits to those addresses.
- Blockscout campaigns. Participants in time-gated campaigns such as rating Dapps or Twitter(X) contests receive additional Merits. We collect the Ethereum addresses of winners and distribute Merits manually.
- Partner campaigns. Merits are allocated to users of other protocols as an additional incentive for use. Partners provide us with a list of addresses and tasks they completed and we distribute accordingly.
Integrating Test Merits into your application
Merits can be integrated in different ways into your application. Ideas may be to include Merits as a reward for user interactions with your app or a general reward for any activity. Merits can be distributed to users via the API. Users can have the ability to sign up for Merits through your app and/or login to their Merits account. You can also display individual Merits balances and leaderboard balances within your application. However, these are optional integrations. To qualify for the bounty, you simply need to provide Merit incentives for certain activities, and then distribute those merits appropriately. As long as you have the participant’s Ethereum address you can distribute Merits.Note: You can retrieve basic data without an API key, but for interactivity purposes you will need to request one via our Discord channel. See below.
Getting started
- Request your API key at: https://ethglobal.com/discord in the #partner-blockscout channel
- API hostname (and test merits dashboard): https://merits-staging.blockscout.com
A full list of endpoints is available on our swagger page here: https://blockscout.github.io/swaggers/services/merits/main/index.html
Get basic Merit info for a user
GET
https://merits-staging.blockscout.com/api/v1/auth/user/\{address}
Returns user information by address
Path parameters
The blockchain address of the user
200 User Information
200 User Information
200 User Information
Get leaderboard ranking for a user
GET
https://merits-staging.blockscout.com/api/v1/leaderboard/users/\{address}
Returns the leaderboard information for a specific user
Path parameters
The blockchain address of the user
200 User leaderboard information
200 User leaderboard information
200 User leaderboard information
Partner balance and distribution information
When you request an API key you become a partner! You will receive a balance of test Merits which can then be distributed to your users. * Requires API Key - Add the assigned API KEY in the Authorization header to see your information.GET
https://merits-staging.blockscout.com/partner/api/v1/balance
Returns the balance and distribution information for a partner
Responses
200 Partner balance information
200 Partner balance information
200 Partner balance information
Distribute Merits
* Requires API Key - Add the assigned API KEY in the Authorization header to add your distribution information. Notes:id
must be unique per each API KEY, so it’s recommended to include date or time period describing the distribution period.distributions
- Max
1000
wallets per distribution. - Amounts less than
0.01
per address are not allowed. - Amounts can be in decimals, max 2 decimal digits precision is recommended.
- Max
- create_missing_accounts
true
: allows distributions to not yet registered Merits accounts.false
: only allow distributions to users that are already registered.
POST
https://merits-staging.blockscout.com/partner/api/v1/distribute
Distributes merits to specified addresses
Body
Unique ID for the distributionExample:
ethglobal_rewards-2025/05/01
Human readable description of the distributionExample:
Extra rewards from ProjectX for using Blockscout during ETH Global
List of wallet addresses and amounts (max 1000 wallets)
Allow distribution for non-registered accounts if trueExample:
false
Total distribution amount (must equal sum of all amounts)Example:
100.00
200 Distribution results
200 Distribution results
200 Distribution results
Login and Registration Flow - Get User Token
Use the following flow to get a User Token- Get Nonce from Backend
GET
https://merits-staging.blockscout.com/api/v1/auth/nonce
Returns a nonce for authentication
Responses
200 Authentication nonce
200 Authentication nonce
200 Authentication nonce
- Ask for a signature from a user with a predefined message
- Send data to get a user token
POST
https://merits-staging.blockscout.com/api/v1/auth/login
Authenticates a user with a signed message
Body
Authentication nonce received from the serverExample:
4MCWIDlddqsmJAAAZ
The message that was signedExample:
merits.blockscout.com wants you to sign in with your Ethereum account: 0x813399e5b08Bb50b038AA7dF6347b6AF2D161338 Sign-In for the Blockscout Merits program. URI: https://merits.blockscout.com Version: 1 Chain ID: 1 Nonce: 4MCWIDlddqsmJAAAZ Issued At: 2025-03-18T12:23:51.549Z Expiration Time: 2026-03-18T12:23:51.549Z
The signature of the messageExample:
0xb11b582a6ef196a3f20fa9c84443a92c9f456c9da2ce8ceea2bcf4ce2b936e35767ac2ff56a1de635b7a5f4bcb5da89c4297efb2b4ce559123891202731752661c
200 Authentication result
200 Authentication result
API Calls Requiring a User Token
*Requires User Token: put the user token in the Authorization headerGET
https://merits-staging.blockscout.com/api/v1/user/balances
Returns the detailed balance information for the authenticated user
Responses
200 User balance details
200 User balance details
200 User balance details
GET
https://merits-staging.blockscout.com/api/v1/user/logs
Returns activity logs for the authenticated user
Query parameters
Number of items to return per page
Token for pagination
200 User activity logs
200 User activity logs