gill
@gillsdk/react/Functions

useBalance

function useBalance<TConfig>(__namedParameters): 
  | {
  balance: Lamports;
}
  | {
  balance: Lamports;
}
  | {
  balance: Lamports;
}
  | {
  balance: Lamports;
}
  | {
  balance: Lamports;
};

Get an account's balance (in lamports) using the Solana RPC method of getBalance

Type Parameters

Type ParameterDefault type
TConfig extends | undefined | Readonly<{ }>| undefined | Readonly<{ }>

Parameters

ParameterType
__namedParametersUseBalanceInput<TConfig>

Returns

| { balance: Lamports; } | { balance: Lamports; } | { balance: Lamports; } | { balance: Lamports; } | { balance: Lamports; }

On this page