playLink() builds the link that opens your app inside Bankroll. Pass a
referrer and it does a second job: whoever opens it, if they’re new to
Bankroll, is attributed as that user’s referral.
What the referrer is
The wallet of the Bankroll user sharing the link, from a verified session. Not a referral code: codes are theXXX-XXX shape
built for a person to read aloud or type into a box, and there’s no person in
this loop. Your app already holds the wallet, and it’s the canonical user id, so
there’s nothing extra to fetch.
Who can be credited
Bankroll’s referral program is person to person. The referrer has to be a real Bankroll user’s wallet, so:- Your app’s treasury address doesn’t work. It’s a keypair your app generated; no Bankroll account stands behind it, so it’s attributed to nobody and the link still opens normally.
- An unrecognized or malformed
referrercosts the attribution, never the link. There’s no error to handle — the app opens either way. - Self-referral is refused, and a user can be referred at most once, ever.
The program, in numbers
Play in your app counts once it’s verified. Terms are
stamped when the link is opened — Bankroll can change them for future
referrals, so keep amounts in one place in your copy.
What to tell your users
Invite a friend to Bankroll. They get 30 of play — and you get $10 too.
Where the link can be opened
A/play link works the same everywhere, which is worth knowing before you put
one in a tweet:
- Phone, Bankroll installed — opens your app in the host.
- Phone, no Bankroll — verifies a phone number, then sends them to install. Your link is remembered for 24 hours and they land in your app after signup — and that’s where the referral attaches.
- Desktop — shows a QR that reopens the same link, referrer intact, on a phone.