Integration reference · Setup guide · Rules · Terms
Setup guide: from sign-up to your first QRK reward
This guide takes you through every step in order. Plan about one hour if your game already has a server, and about half a day if you also have to create one. You do not need to change the QUARK app, and you do not add any QUARK code to your game app. Only your own game server talks to QUARK.
Part A. In this portal
01 Register and verify your e-mail
Open Register, enter your details, choose a password (at least 10 characters) and accept the Terms. We e-mail you a code; enter it on the verify page. Check spam if it does not arrive within a few minutes, or write to developer@qrknetwork.site.
02 Wait for approval
Every developer is reviewed by the QUARK team. You can sign in only after approval, and we e-mail you the result. If you are rejected the e-mail says why.
03 Add your app
Go to Apps, New app. Enter the app name, the Android package name (for example com.studio.mygame; it cannot be changed later), your Google Play link and a short description. Submit it for review.
04 Pay the one-time registration fee
Each app has a one-time fee (shown on the app page, currently 25 USDT). It is not refundable. Open your app in the portal, follow the payment instructions, then e-mail developer@qrknetwork.site with the app name and the transaction hash. Our team confirms it by hand and the app shows FEE PAID.
05 Get your App ID and secret
Once the app is approved and the fee is confirmed, open the app page and enter your password to reveal the App ID and the secret. Copy both to a safe place. The secret is like a bank PIN: it goes only on your server and never into the game app, a repository or a chat. If it may have leaked, press Rotate; the old one stops working immediately.
06 Buy QRK to fund your rewards
Open Wallet, choose a network, enter the USDT amount (the portal shows the price and the limits), and write down the wallet address you will pay from. Send the USDT from exactly that address to the address shown, then paste the transaction hash. QRK is credited after the payment is verified on the blockchain and approved by our team. Only pay from a wallet you control, never from an exchange account that does not show you the sending address.
07 Create a campaign
Go to Campaigns, New campaign. Choose the app, give the campaign a title players will see, then add tiers: the level a player must reach and the QRK reward for it. Tiers add up: level 5 = 1 QRK, level 10 = 2 QRK and level 15 = 3 QRK pays 6 QRK to a player who reaches level 15. Set the number of players. The portal shows the most one player can earn and the total budget. You can choose whether progress made before a player joined also counts. Confirm with your password: the whole budget is reserved from your wallet. An app can have one open campaign at a time. You can pause, resume or close it. When you close it, everything not owed to players returns to your wallet.
Part B. On your game server
Only your server needs code, and it is two calls: one when a player connects their QUARK account, one when a player's level goes up. Every request is signed with your secret; the signing function is below in four languages. Pick yours. The details of the signature are in the integration reference.
08 Put the three values on your server
Set them as environment variables of your server (Render, Railway, Vercel, Firebase, a VPS: all have a settings page for this). Do not write them into source code or commit them to Git.
09 Add the signing helper
Copy one of these into your server project.
Node.js
Python
C# (server side)
PHP
10 Make the two calls
Example in Node.js (the same two requests in any language):
playerIdis your own stable id for the player (1 to 128 characters). Do not use an e-mail address or a name.levelis the player's current level. You may skip reports; the next one catches up.- Report only after your server has validated the progress. Never trust a level sent by the game app.
- If a call times out or returns 503, retry with the same
eventId. A repeatedeventIdnever pays twice.
Part C. In your game
11 Add a “Connect QUARK” screen
Add one button (for example in Settings) and one text box. The player opens the QUARK app, goes to Campaigns, Games, taps Get link code and gets an 8-character code that works for 15 minutes. The player types it into your text box and your game sends it to your server (step 10, call 1). Suggested wording:
Show clear messages for the errors you can get: INVALID_CODE (wrong, used or older than 15 minutes: ask for a new code), PLAYER_ALREADY_LINKED (this game account is already connected to another QUARK account), USER_ALREADY_LINKED (this QUARK account is already connected to another game account) and NO_ACTIVE_CAMPAIGN.
12 Tell players how rewards work
Players should know: the tiers and rewards, that rewards unlock after the hold period (24 hours by default), and that they claim them in the QUARK app, where the QRK goes to their Available QRK. They have 30 days after the campaign closes to claim. Never promise more than your tiers.
Part D. Test, then go live
13 Test with a small campaign
- Create a campaign with one tier (for example level 2 = 0.1 QRK) for 1 or 2 players.
- In the QUARK app: Campaigns, Games, your game, Get link code.
- Type the code in your game. Your server should receive
{ "success": true, "linked": true }. - Play to level 2. The QUARK app shows the reward as earned and when it unlocks.
- After the hold, tap Claim. The QRK appears in Available QRK.
If the signature does not work, check your code against the test vector in the integration reference first.
14 Go-live checklist
- The secret is only in server environment variables. It is not in the APK, the repository or a chat.
- Levels are reported only from your server, after validation.
- Retries reuse the same
eventId. - Your game has a privacy policy that mentions sending a player id and level to QUARK.
- The “Connect QUARK” screen handles every error message above.
- The wallet holds enough QRK for the budget. Start with a small number of players, check the results, then grow.
Troubleshooting
| What you see | What it means and what to do |
|---|---|
| HTTP 401 | Wrong signature or old timestamp. Check the App ID, the secret (no spaces), the method in capitals, the path without query string, and that you sign exactly the bytes you send. Your server clock must be within 5 minutes. |
HTTP 503 or RETRY | Temporary. Wait a few seconds and send the same request again with the same eventId. |
INVALID_CODE | The code is wrong, already used, or older than 15 minutes. The player taps Get link code again. |
NOT_LINKED | This game account is not connected to a QUARK account yet. Ask the player to connect first. |
NO_ACTIVE_CAMPAIGN | The app has no running campaign. Check the campaign is active (not paused or closed). |
CAMPAIGN_FULL | All player slots are taken. The account stays linked but earns nothing in this campaign. |
FLAGGED | A very large jump. The reward is held until our team reviews it. Nothing to do, but make sure the level was genuine. |
BLOCKED / LINK_REVOKED | The player was blocked or the link removed by the QUARK team. Contact us if you think this is a mistake. |
| The app is not in the portal list of campaigns | The app must be approved and its fee confirmed before a campaign can start. |
Questions
Write to developer@qrknetwork.site with your app name and, if it is an API problem, the eventId and the time of the request. Never send us your secret.