UNPKG

@saberhq/sail

Version:

Account caching and batched loading for React-based Solana applications.

17 lines 578 B
import { TokenAmount } from "@saberhq/token-utils"; import type { AccountInfo, PublicKey } from "@solana/web3.js"; /** * Fetches the SOL balance of an account. * @returns */ export declare const useSOLBalance: (accountId?: PublicKey | null | undefined) => TokenAmount | null | undefined; /** * Uses the data of the raw SOL account. * @deprecated use {@link useSOLBalance} instead * @returns */ export declare function useNativeAccount(): { account?: AccountInfo<TokenAmount> | null; nativeBalance?: TokenAmount | undefined; }; //# sourceMappingURL=native.d.ts.map