UNPKG

@saberhq/sail

Version:

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

18 lines 787 B
import { PublicKey } from "@solana/web3.js"; /** * Parses a Pubkey. * @param raw The string or Pubkey representation of the key. * @returns */ export declare const usePubkey: (raw: PublicKey | string | null | undefined) => PublicKey | null | undefined; /** * Uses a {@link PublicKey}, ensuring the reference does not change if the key changes. * @param raw The string or Pubkey representation of the key. * @returns */ export declare const usePubkeyMemo: (raw: PublicKey | string | null | undefined) => PublicKey | null | undefined; /** * Loads and parses multiple {@link PublicKey}s, preserving the reference. */ export declare const usePubkeysMemo: (keys: (PublicKey | string | null | undefined)[]) => (PublicKey | null | undefined)[]; //# sourceMappingURL=usePubkey.d.ts.map