Skip to content

GET /referrals/{address}

A referrer: eligibility, links, earnings, weeks to claim.

GET https://marketmayhem.co/api/v1/referrals/{address}
NameInRequiredMeaning
addresspathyesThe referrer
FieldTypeRequiredMeaning
addressstringyesA 0x address
eligiblebooleanyes
registeredbooleanyes
activebooleanyes
linksobjectyes
links.sitestringyes
links.tokenstringyes
links.launchstringyes
ratesobjectyes
rates.instantBpsintegeryes
rates.lifetimeShareBpsintegeryes
instantobjectyes
instant.earningsobjectyes
instant.earnings.h24objectyes
instant.earnings.d7objectyes
instant.earnings.d30objectyes
instant.earnings.allobjectyes
lifetimeobjectyes
lifetime.referredintegeryes
lifetime.weeklyCapWeistringyesThe same amount in the smallest unit, an integer as a string
lifetime.allTimePaidWeistringyesThe same amount in the smallest unit, an integer as a string
lifetime.todayEstimateWeistring or nullyesThe same amount in the smallest unit, an integer as a string
lifetime.backlogobject or nullyes
lifetime.backlog.owedWeistringyesThe same amount in the smallest unit, an integer as a string
lifetime.backlog.sinceWeekintegeryes
lifetime.backlog.lastAddedWeekintegeryes
lifetime.claimableWeeksobject[]yes
lifetime.claimableWeeks[].weekintegeryes
lifetime.claimableWeeks[].amountstringyesThe same amount in the smallest unit, an integer as a string
lifetime.claimableWeeks[].paidbooleanyes
lifetime.claimableWeeks[].claimablebooleanyes
lifetime.claimableWeeks[].proofstring[] or nullyes
lifetime.boundTostring or nullyesA 0x address

Captured from BSC testnet, exactly as the API sent it (long calldata shortened).

{
"address": "0x2bf842241129be12f3a0e4f21e25d2fd43d9e6da",
"eligible": true,
"registered": false,
"active": true,
"links": {
"site": "https://marketmayhem.co/?r=0x2bf842241129be12f3a0e4f21e25d2fd43d9e6da",
"token": "https://marketmayhem.co/t/{token}?r=0x2bf842241129be12f3a0e4f21e25d2fd43d9e6da",
"launch": "https://marketmayhem.co/launch?r=0x2bf842241129be12f3a0e4f21e25d2fd43d9e6da"
},
"rates": {
"instantBps": 20,
"lifetimeShareBps": 1500
},
"instant": {
"earnings": {
"h24": {
"usd": 0,
"unpriced": [],
"byCurrency": []
},
"d7": {
"usd": 0,
"unpriced": [],
"byCurrency": []
},
"d30": {
"usd": 0,
"unpriced": [],
"byCurrency": []
},
"all": {
"usd": 0,
"unpriced": [],
"byCurrency": []
}
}
},
"lifetime": {
"referred": 0,
"weeklyCapWei": "3000000000000000000",
"allTimePaidWei": "0",
"todayEstimateWei": "0",
"backlog": null,
"claimableWeeks": [],
"boundTo": "0xf54cea3cbad30ffaeb4fa568ba600b59b0f97961"
}
}

Every error is { "error": { "code", "message", "fix"? } }. This endpoint can answer: