Implementation Guide

Step 1. Sign up on the Merkle Blockchain Services (MBS) platform


Step 2. Send transactions via the RPC url or the transaction API


Step 3. Tag transactions with a source parameter (see send transactions via the RPC url or the transaction API)


For the following API requests, use the header Authorization: Token <secret key>. Get a secret key in Keyson your MBS Dashboard.

Step 4. Pull the current cashback balance of a source with the following API:

GET https://api.merkle.io/v1/cashback/source/:id

The response will display all the balances this source has in ETH, BSC, MATIC and USD as well as a estimatedUsd that aggregated all these balances using live prices.

{
    "estimatedUsd": 30.1,
    "balances": [
        {
            "asset": "ETH", // can be ETH, USD, MATIC, or BNB
            "amount": 0.004
        },
        {
            "asset": "USD",
            "amount": 20
        }
    ]
}

Step 5. Issue payouts whenever the customers requests it.

Simply pass the address where to issue the payout for this source:

The payout will be issued in kind (ETH on Ethereum, SOL on Solana, BNB on Binance Smart Chain).

The API will respond with the following body:


Step 6: Check the status of the payout

Call the following API to check the status of the payout:

The API will return the following body:

Last updated

Was this helpful?