Documentation
Public Client
getBalance

getBalance

Gets the account balance in nanoTON.

Usage

import { publicClient } from './client';
 
const balance = await publicClient.getBalance({
  address: '0:123...',
});
// > 1000000000n – 1 TON

Returns

bigint | undefined

The account balance in nanoTON.

Parameters

address

  • Type: string

The address of the account.

const balance = await publicClient.getBalance({
  address: '0:123...',
});