Advance Integration
Integrating Starbase is quick and easy. Starbase is permissionless, meaning you don’t need to sign up before using our service.
In the current version, using the Starbase service does not require an SDK. Clients can access our payment page by directly calling our mini-app via this link:
https://t.me/starbasetg_bot/app
Customizing with Arguments
Our mini-app allows arguments to be passed in the URL. Use an underscore _
to separate multiple arguments and a dash -
to assign values to specific arguments.
Referral Code (refcode)
Starbase offers a referral program based on monthly revenue generated through referred clients. Participants in this program can earn rebates of up to 40% of the monthly revenue.
Note that registering for the referral program requires prior approval from Starbase.
For details about the referral program and how to register, click here.
Example
Client Referral Code = novaxyz
https://t.me/starbasetg_bot/app?startapp=refcode-novaxyz
Stars Package (stars)
Starbase enables clients to specify the package on the purchasing page by providing the package ID.
For details about the available packages in our protocol, click here.
Example
Client wants to set the package to 500 Stars
https://t.me/starbasetg_bot/app?startapp=stars-500
Combining Multiple Arguments
To pass multiple arguments in the URL, use an underscore (_) to separate them. The order of the arguments does not affect the outcome.
https://t.me/starbasetg_bot/app?startapp=refcode-novaxyz_stars-500
https://t.me/starbasetg_bot/app?startapp=stars-500_refcode-novaxyz
Example Code
import React from "react";
const App = () => {
const ref_code = "novaxyz";
const star_package = 500;
const url = `https://t.me/starbase_bot?startapp=refcode-${ref_code}_stars-${star_package}`;
return (
<button
onClick={() => window.open(url, "_blank")}
>
Buy {star_package} stars on Starbase
</button>
);
};
export default App;
Last updated