Referral Program
Bring players to Bitcoin Arena, from your site or just with a link you share. Every game they play pays you 10% of the nodes' fee. Your players pay nothing extra.
An example
A player you brought stakes 10,000 sat. The nodes' fee on it is 400 sat today (4%). Your program gets 40 sat of that, the nodes keep 360. The player's stake and fee are the same as without you.
Bitcoin Arena's own site takes no share: a game played on bitcoinarena.io without a referral link names no website, and the nodes keep the whole fee.
Two ways to take part
As a player, with nothing to set up: your wallet on Bitcoin Arena already has its own referral link. With a node, you can run as many programs as you like, each with its own name, for example one per site or campaign. Both are paid the same 10%.
As a player: your own link
- Open Settings on Bitcoin Arena. The Referral link card shows your link:
https://testnet.bitcoinarena.io/?ref=<your key>. Press Copy. - Share it. With friends, in a chat, on social media. Whoever comes through it plays under your link for 30 days.
- Your share lands in your wallet. It is paid in the game's federation after each round settles, and your page collects it into your wallet the same way it collects zaps. Each payout is a "Referral" line in your wallet history, and the card shows what you earned so far. Withdraw it like the rest of your balance.
The link belongs to your wallet: your 24 words bring it back in any browser. Your own link does not pay you for your own games. When you press Copy, your player name is given as the program's name, so Metrics and Health show your name, not your key.
With a node: programs for your site
- Run a node. Your program lives on your own node: it holds the program's key and collects what it earns. How to install a node.
- Open your node's owner area and go to Referrer. Give your program a name, for example the name of your site. You can have as many programs as you like, one per site or campaign. Each earns on its own.
- Put your link on your site. The Referrer section shows it:
https://testnet.bitcoinarena.io/?ref=<your program's key>. A visitor who comes through it plays under your program for 30 days. - Or host a game on your site. Copy the embed from the same section. The game shows in the box you give it on your page: lobby, wallet, deposit, withdraw and play, with your program's key on every round.
<div id="arena-game" style="height:720px"></div> <script src="https://testnet.bitcoinarena.io/arena-embed.js" data-game="rock-paper-scissors" data-ref="<your key>" data-target="#arena-game"></script>The player's wallet stays with Bitcoin Arena: the kit runs the game in a frame from testnet.bitcoinarena.io, so the wallet's seed, its 24 words, a restore and a backup never touch your page or your site's storage, and no script on your page can read them. Your page hears only that the game is ready and the player's balance in sat (window.ARENA_EMBED.on('ready' | 'balance', fn)). A site that sends a Content Security Policy has to allow testnet.bitcoinarena.io as a frame source (frame-src). See it working on the demo page. - Withdraw over Lightning. What your program earns is paid to its key in the game's federation, after each round settles. Your node collects it. In Referrer, press Withdraw and paste a Lightning invoice or a Lightning address.
Where you see it
As a player: the Referral link card in Settings, and your wallet history. With a node: your node's Referrer section shows what each program earned and what it holds. The network's Metrics page and Health list every program by its name and what it earned.
Good to know
A program's name is signed with the program's own key, so nobody else can rename it. The 10% share is a network fee like the others: a passed fee proposal can change it for rounds after it takes effect.
This runs on testnet4. Test coins have no value.