Referrals

Handler to get referral info for an account (who referred them)

get/api/v1/referrals/account/{account}

Request

  • Base URL
    https://api.mainnet.aptoslabs.com/decibel
  • URL
    https://api.mainnet.aptoslabs.com/decibel/api/v1/referrals/account/{account}
  • Auth
    HTTP bearer

Path parameters

accountstring required

The wallet address to look up referral info for (not a subaccount address)

Response

Successfully retrieved account referral info

accountstring required

The referred user's wallet address (not a subaccount address)

is_activeboolean required

Whether the referral code is still active (can accept new referrals)

is_affiliate_referralboolean required
referral_codestring required
referred_at_msinteger required
referrer_accountstring required

The referrer's wallet address

Changes

No recorded changes to this operation across all 1 revision of this API.