> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nodeloc.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Game energy and payments

> The game energy wallet, deposits and withdrawals, stake tables, in-game payments, and platform rules

Game energy is a balance deposited 1:1 from community energy and used only in mini games. The wallet lives on the forum. A game cannot charge the wallet directly or choose an amount. Every change is either confirmed by the user in the host's native panel (a forum pop-up in the web version) or settled by the game service under server rules.

> [!WARNING]
>
> Game energy cannot be transferred between users or exchanged for cash. Games that use game energy must be rated 18+, and users confirm they are 18 or older when they first authorize.

## Sources and uses

| Operation | Description | SDK |
| - | - | - |
| Deposit | Exchanges community energy for game energy 1:1, up to 500 per day by default | `nl.energy.deposit()` |
| Daily free | Claim 200 per day. After claiming, if the balance drops below 50, it can be topped up to 100 that day | `nl.energy.claimDaily()` |
| Withdraw | Exchanges withdrawable game energy back to community energy 1:1 | `nl.energy.withdraw()` |
| Stake tables | Holds "base stake × cap" on sitting down and returns the rest after settlement | `nl.energy.confirmStake()` + game service |
| Ticket tables | Entry fees go into a prize pool, paid out by placement | Game service |
| In-game payments | The game service creates an order, which settles after the user confirms | `nl.energy.requestPayment()` |

## Withdrawable balance

Only part of the balance can be withdrawn to community energy:

* Counts as withdrawable: deposits, winnings from matches against real players, and shares of ticket table prize pools.
* Does not count: daily free energy, relief grants, winnings from bot seats, and platform bonuses.
* Spending uses the non-withdrawable part first.

By default a withdrawal is at least 10, up to 500 per day. Withdrawn community energy cannot be passed to others for 7 days (transfers, tips, red packets, paying for others); using it yourself on the forum is not restricted. The platform flags withdrawals for review when winnings come mostly from the same opponent.

## Stake tables

1. Before sitting down, call `nl.energy.confirmStake({base, cap, table})`. The host shows the amount to hold and today's remaining allowance. If the user declines, it returns `USER_CANCELLED`.
2. The game service holds `base × cap` when the player sits down (per-match cap 2,000 by default).
3. After the match, the game service settles: wins and losses are zero-sum, a loser never loses more than the hold, and 5% of the winner's gain is raked and burned. Holds for matches that never started are returned in full.

Stake tables are available on the current client only when `nl.system.getInfo().capabilities` contains `energy.stake`. Otherwise, hide stake tables.

## In-game payments

Only the game service can create orders, on the server. The client cannot create orders itself. The game service sends the order token to the client, the client calls `nl.energy.requestPayment(orderToken)`, and after the user confirms in the host panel, the server completes settlement. Orders not confirmed within 10 minutes expire.

## User protection

* Daily stakes (including tickets), net losses, and deposits each have a cap. Net loss is counted at the worst case, so several simultaneous matches cannot exceed it.
* Users can lower their caps in game settings (effective immediately) or pause stake tables for 1, 7, or 30 days. Raising a cap takes effect after 24 hours.
* The platform reconciles daily. If the books do not match, staking and settlement pause until staff resolve it. Refunds, deposits, and claims continue as normal.

## Platform rules

All numbers above are defaults. Each one is set by platform policy and may change. Do not hard-code limits in the game; when displaying them, read `limits` and `remaining` from `nl.energy.getWallet()`.

| Rule | Default |
| - | - |
| Daily stake / net loss / deposit | 5,000 / 1,000 / 500 |
| Daily free / relief threshold / relief top-up | 200 / 50 / 100 |
| Balance cap / per-match win or loss cap / rake | 100,000 / 2,000 / 5% |
| Cap multiplier / ticket table platform bonus cap / daily cap on winnings from bots | 1,000 / 10,000 / 200 |
| Withdrawals enabled / daily cap / minimum per withdrawal / transfer lock | On / 500 / 10 / 7 days |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.