On-chain referral attribution explained
Blog

On-Chain Referral Attribution: Why It Survives Interface Changes

Suigar Team10 min read

Every affiliate has the same nightmare. You spend months building an audience, sending players to a casino, watching your dashboard climb. Then one quarter the numbers drop for no reason you can explain. A redesign shipped, a tracking pixel broke, your players got reassigned, and the commission you earned simply evaporated. The work was real. The record of it was not.

The fix is structural, not contractual. On-chain referral attribution records who referred whom on a public blockchain instead of inside a private dashboard that the operator can edit, expire, or quietly reset. When the relationship lives on the ledger, it survives interface changes, ownership changes, and the slow erosion that eats off-chain affiliate income. This article explains how it works, why it matters, and what it means for anyone earning from casino traffic on a white-label casino on Sui.

If your referral earnings have ever felt at the mercy of a system you could not inspect, this explains why, and what a transparent alternative looks like.

What attribution means and why it is fragile

Attribution is the act of crediting a result to its source. In affiliate marketing, it answers one question: which referrer brought this player? Get it right and the right person gets paid. Get it wrong and someone earns nothing for work they actually did. The entire affiliate economy runs on the assumption that attribution is accurate, and that assumption is rarely justified.

Traditional attribution is brittle because it depends on signals that decay. Cookies expire or get cleared. Players switch devices between the click and the deposit. Tracking scripts break during a redesign. And underneath it all sits an uncomfortable truth: the casino controls the database, so the party with the most incentive to under-credit affiliates is the same party keeping the books.

The conflict of interest nobody mentions

Off-chain attribution puts the referee in charge of the scoreboard. Even an honest operator faces pressure to interpret edge cases in its own favor, and a dishonest one can simply rewrite history. With no neutral record to appeal to, the affiliate is asked to trust a ledger they cannot read, kept by the counterparty who pays them.

How on-chain attribution works

Recording attribution on-chain replaces that private ledger with a public one. The mechanism is simple. When a referrer or partner registers, they are identified by a wallet address. When a player they brought places a bet, the referrer’s address is attached to that on-chain transaction. The link between player and referrer is now a fact recorded on the blockchain, not a row in a database.

Because the record lives on a public ledger, it inherits the ledger’s properties: it is timestamped, ordered, and effectively immutable. The binding is written exactly once and never overwritten, and because attribution is recorded 100% on-chain alongside every wager, the cost of capturing it is negligible: fees stay under $0.01 per transaction. On Suigar, this rides on the same infrastructure that settles the games themselves, where bets and results reach finality in roughly 390 ms on the Sui blockchain. The attribution is part of the same settlement that makes the games verifiable in the first place, not a separate add-on bolted onto the casino.

The practical effect is that the commission follows the wallet. Whoever registered as the referrer for a given player keeps that claim on the public record, so computing what they are owed becomes a matter of reading the chain rather than trusting a report.

Wallet identity instead of browser identity

The deepest shift is what identifies a referral. Traditional tracking anchors the relationship to a browser through a cookie, the weakest possible foundation: local to one device, easy to clear, and gone the moment a player switches phones. On-chain attribution anchors it to a wallet the player carries across every device and session. The referral is tied to who the player is on the chain, not a temporary file in one browser, and that change removes most of the cross-device leakage that drains affiliate income.

The pain point it actually solves

The headline benefit is durability across interface changes. Front ends get rebuilt constantly. A casino might switch its tracking provider, migrate to a new dashboard, redesign its account system, or get acquired. Each of those events is a moment when off-chain attribution can break or be reset, and historically affiliates have eaten the loss every time.

  • Survives redesigns: the attribution lives on the ledger, so rebuilding the website cannot orphan the relationship between referrer and player.
  • Survives provider changes: swapping analytics tools or back-office software does not touch the on-chain record, because the record was never in those tools.
  • Survives ownership changes: if the casino is sold or restructured, the chain still shows who referred whom, so existing claims do not silently disappear.
  • Survives disputes: both sides read the same public data, so an argument over who earned a commission becomes a query, not a negotiation.

Together, these turn referral income from something fragile and revocable into something durable and verifiable, a meaningful change in the risk profile of being an affiliate.

On-chain versus off-chain attribution, side by side

The contrast is sharpest when you lay both approaches against the same criteria. The difference is a change in who holds the truth, not an incremental tweak.

  • Off-chain attribution: lives in a private database the operator controls, depends on cookies and scripts that decay, and can be edited or reset without the affiliate ever knowing.
  • On-chain attribution: lives on a public ledger anyone can read, is tied to a wallet rather than a cookie, and cannot be quietly rewritten because the history is immutable.
  • Trust model: off-chain asks you to trust the counterparty’s books; on-chain lets you verify the record yourself without asking anyone’s permission.

For an affiliate, the second column is simply a better deal: you are no longer betting your income on the goodwill of a system you cannot inspect.

There is a second-order benefit operators overlook. In a $100B+ online gambling market, where affiliates drive a large share of acquisition, the affiliate marketplace becomes more efficient: good affiliates prove their track record by pointing at the chain instead of asking a casino for a reference, and operators verify a claimed performance rather than taking it on faith. That transparency attracts the serious, high-volume promoters who have been burned by opaque programs.

How attribution connects to provable fairness

On-chain attribution applies the same idea that makes the games provably fair to the business layer. The contracts behind all 8 first-party Suigar games were audited by MoveBit on 2025-11-10, and outcomes are generated with on-chain randomness, so players can verify results for themselves. Attribution extends that transparency to the people who bring those players in: the casino that proves its games are fair is, structurally, the same casino that can prove it paid its affiliates correctly. To see verifiable settlement from the player’s side, the walkthrough of on-chain Coinflip shows exactly what is recorded on every bet.

None of this requires the affiliate to understand cryptography. Verification can be as simple as a dashboard that reads the public ledger and shows the same numbers the operator sees, with the key difference that the underlying data is independently checkable. The affiliate gets a familiar interface plus the assurance that, if the operator ever lied, the chain would expose it. Easy to use yet impossible to quietly falsify is what makes this a genuine upgrade rather than a technical curiosity.

What this means for operators

If you run a casino, transparent attribution is a recruiting advantage and lower overhead at once: fewer disputes, less manual reconciliation, and no black box to defend. For a deeper look at the operator economics, see how a Sui casino software stack handles attribution alongside shared liquidity and self-custody. In Suigar’s app, both referral and affiliate flows surface as plain pages, so players and professional marketers earn on the same rails.

How to start earning with on-chain attribution

5 steps take you from sign-up to a verifiable on-chain record, and only the last one is something an off-chain program could never offer.

  1. Choose a platform with on-chain records. Confirm that referral and partner relationships are written to the ledger, not just to an internal dashboard.
  2. Register your wallet. Your wallet address becomes your identity as a referrer, so the relationship is attached to your players’ transactions from the first bet.
  3. Read the integration docs. Understand how partner registration, transaction building, and event decoding work so you can verify your own attribution.
  4. Share your link or code. Promote to your audience the same way you would for any affiliate or referral program; only the record-keeping changes.
  5. Verify on the ledger. Periodically check that the on-chain record matches your expectations, which is something off-chain programs never let you do.

How the link is written at registration

The model hinges on one moment: the first time a player acts under a referrer. The contract reads the referring wallet supplied with the transaction and binds it to the player address as a stored association. Nothing is inferred from a header, query string, or session; the link is set explicitly by data the player carries into the chain, so it cannot quietly drift afterward.

2 design choices make this robust. The binding is written exactly 1 time and then treated as settled, so later transactions cannot overwrite who gets credit, and the write emits an event any indexer can read. That second property lets a partner reconstruct their full roster of referred players by scanning on-chain events rather than waiting for an operator report. Registration is a public action you can replay, not a database insert you have to trust.

For the player the step is invisible: they click a link, connect a wallet, and place a bet exactly as they would anywhere else. The difference is that attribution is captured by the same transaction that records the wager, so there is no separate tracking call to fail in between.

Multi-tier and sub-affiliate structures

Affiliate programs rarely stay flat. A strong promoter recruits other promoters, and the question becomes how credit flows up a chain of referrers rather than to a single one. A 2-tier or 3-tier split, for example, might illustratively pay a direct referrer a typical 20-40% of net revenue and a parent affiliate a smaller 5-15% sub-affiliate override (illustrative, varies by program). Because every relationship in this model is a wallet-to-wallet association on a public ledger, a multi-tier structure is just a graph of those associations, readable end to end without anyone holding a private master list.

Why a public graph beats a private hierarchy

In a conventional network, the parent affiliate has to trust the operator’s internal accounting to know that their sub-affiliates were counted correctly. On-chain, the parent can trace the edges themselves: who introduced whom, and which players sit under each branch. A revenue split across 2, 3, or more tiers is then computed from data both sides can see, which removes the suspicion that the layer above or below is being shortchanged. The commission percentages stay a business decision and vary widely from one program to the next, but the facts they operate on are no longer disputable, so a sub-affiliate program can scale without the trust overhead that usually caps how deep these structures grow.

Last-touch, first-touch, and what the ledger fixes

Off-chain attribution burns enormous energy arguing over models. Last-touch credits the final referrer before a deposit; first-touch credits the one who brought the player originally; multi-touch splits credit across everyone in between. These debates exist largely because cookies are ambiguous and overlapping, so the model is just a way of guessing intent from incomplete signals.

A wallet-bound, write-once association sidesteps most of the argument. The referrer recorded at registration is the referrer, full stop, effectively a first-touch policy enforced by the contract rather than a configurable dashboard setting. No later click can hijack the relationship. An operator can still layer richer rules on top, such as time-boxed bonuses, but the base attribution stays anchored, so whatever policy sits above it is built on a fact instead of a guess.

What operators still build off-chain

On-chain attribution settles who earned a commission; it does not, by itself, run an affiliate program. The ledger is the source of truth, but operators still own the experience around it. Reporting dashboards, payout scheduling, fraud screening, and partner communications all live off-chain, reading from the public record rather than replacing it. This division of labor is the same one that lets a Sui casino software stack stay lean while remaining verifiable.

Where the operator’s work actually sits

A typical setup reads attribution events from the chain, joins them to bet volume, and presents a familiar interface to affiliates. Payout cadence, whether weekly, monthly, or on demand, is an operational choice; the chain records what is owed, but moving funds on a schedule is a business process, as is deciding how to handle abuse like self-referral. The advantage is that none of this tooling is load-bearing for trust: if a dashboard miscounts, the affiliate can fall back to the ledger to confirm what they are owed. The off-chain layer becomes a convenience surface, not the system of record, which is a far safer place for it to be.

Frequently asked questions

What is on-chain referral attribution?

It is the practice of recording the referrer-to-player relationship on a public blockchain, tied to a wallet address, so the credit for a referral is a verifiable on-chain fact rather than a private database entry. The link is written exactly 1 time and settles in roughly 390 ms on Sui.

Why does it survive interface changes?

Because the record lives on the ledger, not in the website or back office. Redesigns, provider swaps, and even ownership changes alter the interface but cannot rewrite the immutable on-chain history.

Can the casino still cheat me?

It cannot quietly reassign or delete an on-chain attribution, because the history is public and immutable. That removes the most common ways off-chain affiliates lose credit they earned.

Do I need to be technical to benefit?

No. You promote a link or code the same way as any program. The difference is behind the scenes, in where the record is stored. The docs explain how to verify it if you want to.

How is this different from a normal affiliate cookie?

A cookie is local, fragile, and clears easily. On-chain attribution is tied to a wallet and persists on the ledger, independent of the player’s browser or device.

Does on-chain attribution work for white-label operators too?

Yes. An operator running a white-label offers the same transparent attribution to their own affiliates, because it is built into the underlying on-chain rails.

Can it handle multi-tier or sub-affiliate commissions?

Yes. Because each referral is a wallet-to-wallet edge on a public ledger, a 2-tier or 3-tier structure is just a readable graph of those edges. Illustrative splits might pay a direct referrer 20-40% of net revenue and a sub-affiliate 5-15%, but the commission percentages vary widely by program and stay a business decision; the attribution facts underneath them are fixed on-chain.

How do I get started with Suigar?

Read the integration docs to see how partner registration and on-chain events work, then email contact@suigar.com about an affiliate, referral, or white-label arrangement.

Sources and further reading

Sui platform documentation, Sui docs.

Sui on-chain randomness, Sui randomness.

Smart-contract audits, MoveBit.

On-chain betting market context, GambleFi overview.

Gambling involves risk and is intended for adults only. Operators are responsible for compliance, age verification, and responsible-gambling practices in every market they serve. Nothing here is legal or financial advice.