UNPKG

@broxus/js-bridge-essentials

Version:

Bridge JavaScript Essentials library

12 lines (11 loc) 893 B
import { type AccountInfo, type Connection, type ParsedAccountData, type PublicKey, type TokenAccountsFilter } from '@solana/web3.js'; import { type SolanaTokenData } from '../../models/solana-token/SolanaToken'; export declare abstract class SolanaTokenUtils { static getParsedTokenAccountsByOwner(connection: Connection, filter: TokenAccountsFilter, ownerAddress: PublicKey | string): Promise<Array<{ account: AccountInfo<ParsedAccountData>; pubkey: PublicKey; }> | undefined>; static getFirstParsedTokenAccountByOwner(connection: Connection, filter: TokenAccountsFilter, ownerAddress: PublicKey | string): Promise<ParsedAccountData | undefined>; static balance(connection: Connection, address: PublicKey | string, ownerAddress: PublicKey | string): Promise<string>; static getDetails(address: PublicKey | string): Promise<SolanaTokenData | undefined>; }