Skip to main content

Partner Integration

After you have been approved to be a partner, you can enjoy 5% of each name purchase using your partner address.

info

📝 Apply to earn with partner integration

The following are the steps involved in integrating the Clet onboarding feature on any of your platforms.

  1. Check if a name is available by querying the nameExists function from the pay contract or using the REST API endpoint https://api.clet.domains/api/v1/exists/{name}

    note

    false means the name is available.

  2. Use the getAmountToPay function from the pay contract to get required amount to pay for the name or using the REST API endpoint https://api.clet.domains/api/v1/cost/?name={name}&years={numberOfYears}

  3. Finally, use the pay function from the pay contract to confirm payment by the user.

info

Explore how to integrate the Clet partner program in your project from the sample repository below.

github Example project using ethers.js