Skip to content

GET /referrals/{address}/link

One referral URL to any page of the site.

GET https://marketmayhem.co/api/v1/referrals/{address}/link
NameInRequiredMeaning
addresspathyesThe referrer
pathquerye.g. /t/0x…; default /
FieldTypeRequiredMeaning
addressstringyesA 0x address
urlstringyes

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

{
"address": "0x2bf842241129be12f3a0e4f21e25d2fd43d9e6da",
"url": "https://marketmayhem.co/t/0x136bfd5f42250a568ce06ed1b145729b400e391c?r=0x2bf842241129be12f3a0e4f21e25d2fd43d9e6da"
}

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

  • INVALID_PATH: The referral link path is not a page of this site.