cryptocadet
  • 👋Welcome
  • Admin API
    • /admin/gen-ref
    • /admin/update-ref
    • /admin/gen-ref-sol
    • /admin/update-ref-sol
    • /admin/update-watchlist
    • /admin/cancel-subscription
    • /admin/update-walletAddress
    • /admin/update-solAddress
    • /admin/update-pubKey
    • /admin/update-secretKey
  • User API
    • /user/get-user
    • /user/get-ref
    • /user/options
    • /user/get-proxy
    • /user/config
    • /user/price
    • /user/customPrice
Powered by GitBook
On this page
  1. Admin API

/admin/gen-ref

Generates a new referral code for a given wallet address. Remember to replace parameters with your own values.

await axios.post(`https://api.cryptocadet.app/api/admin/gen-ref`, {
apiKey, 
secretKey, 
walletAddress, 
percent, 
uid
})

apiKey: Vxusewjwhjwrhkwwj181ksl

secretKey: sk-wwh284h2ksjfshshshsjh

walletAddress: 0x2jskEWGJkjd1384haah04716jx000

percent: 3

uid: XP27shj24190ws

Status: 200

Data: New referral code generated: ${refCode}`

PreviousWelcomeNext/admin/update-ref

Last updated 10 months ago