GET /referrals/{address}/link
One referral URL to any page of the site.
GET https://marketmayhem.co/api/v1/referrals/{address}/linkParameters
Section titled “Parameters”| Name | In | Required | Meaning |
|---|---|---|---|
address | path | yes | The referrer |
path | query | e.g. /t/0x…; default / |
Response
Section titled “Response”| Field | Type | Required | Meaning |
|---|---|---|---|
address | string | yes | A 0x address |
url | string | yes |
A real response
Section titled “A real response”Captured from BSC testnet, exactly as the API sent it (long calldata shortened).
{ "address": "0x2bf842241129be12f3a0e4f21e25d2fd43d9e6da", "url": "https://marketmayhem.co/t/0x136bfd5f42250a568ce06ed1b145729b400e391c?r=0x2bf842241129be12f3a0e4f21e25d2fd43d9e6da"}Errors
Section titled “Errors”Every error is { "error": { "code", "message", "fix"? } }. This endpoint can answer:
INVALID_PATH: The referral link path is not a page of this site.