nearfundocs
The NearFun handbook
SPECIFICATION · 13

NEAR Balance

NearFun master specification

After verifying the NEAR mint:

determine the actual token program.

Find the connected wallet’s appropriate token accounts.

Do not assume an ATA exists.

If no NEAR token account exists:

show:

0 NEAR

not an error.

Correctly aggregate balance if multiple relevant token accounts must be considered.

NearFun documentation