/** * SolanaApi - Standard Solana RPC Methods * * Complete coverage of all Solana JSON-RPC methods */ import type { LunaHeliusClient } from '../LunaHeliusClient'; import type { RpcResponse, AccountInfo, TransactionSignature } from '../types'; export declare class SolanaApi { private readonly client; constructor(client: LunaHeliusClient); /** Get account info for a public key */ getAccountInfo(pubkey: string, options?: { commitment?: 'processed' | 'confirmed' | 'finalized'; encoding?: 'base58' | 'base64' | 'base64+zstd' | 'jsonParsed'; dataSlice?: { offset: number; length: number; }; }): Promise>; /** Get balance in lamports */ getBalance(pubkey: string, commitment?: 'processed' | 'confirmed' | 'finalized'): Promise>; /** Get recent blockhash */ getLatestBlockhash(commitment?: 'processed' | 'confirmed' | 'finalized'): Promise>; /** Get block information */ getBlock(slot: number, options?: { encoding?: 'json' | 'jsonParsed' | 'base58' | 'base64'; transactionDetails?: 'full' | 'accounts' | 'signatures' | 'none'; rewards?: boolean; commitment?: 'confirmed' | 'finalized'; maxSupportedTransactionVersion?: number; }): Promise>; /** Get block height */ getBlockHeight(commitment?: 'processed' | 'confirmed' | 'finalized'): Promise>; /** Get block time */ getBlockTime(slot: number): Promise>; /** Get cluster nodes */ getClusterNodes(): Promise>; /** Get epoch info */ getEpochInfo(commitment?: 'processed' | 'confirmed' | 'finalized'): Promise>; /** Get epoch schedule */ getEpochSchedule(): Promise>; /** Get fee for message */ getFeeForMessage(message: string, commitment?: 'processed' | 'confirmed' | 'finalized'): Promise>; /** Get genesis hash */ getGenesisHash(): Promise>; /** Get health status */ getHealth(): Promise>; /** Get highest snapshot slot */ getHighestSnapshotSlot(): Promise>; /** Get identity pubkey */ getIdentity(): Promise>; /** Get inflation governor */ getInflationGovernor(commitment?: 'processed' | 'confirmed' | 'finalized'): Promise>; /** Get inflation rate */ getInflationRate(): Promise>; /** Get inflation reward */ getInflationReward(addresses: string[], options?: { commitment?: 'processed' | 'confirmed' | 'finalized'; epoch?: number; minContextSlot?: number; }): Promise>; /** Get largest accounts */ getLargestAccounts(options?: { commitment?: 'processed' | 'confirmed' | 'finalized'; filter?: 'circulating' | 'nonCirculating'; }): Promise>; /** Get leader schedule */ getLeaderSchedule(slot?: number, options?: { commitment?: 'processed' | 'confirmed' | 'finalized'; identity?: string; }): Promise>; /** Get max retransmit slot */ getMaxRetransmitSlot(): Promise>; /** Get max shred insert slot */ getMaxShredInsertSlot(): Promise>; /** Get minimum balance for rent exemption */ getMinimumBalanceForRentExemption(dataLength: number, commitment?: 'processed' | 'confirmed' | 'finalized'): Promise>; /** Get multiple accounts */ getMultipleAccounts(pubkeys: string[], options?: { commitment?: 'processed' | 'confirmed' | 'finalized'; encoding?: 'base58' | 'base64' | 'base64+zstd' | 'jsonParsed'; dataSlice?: { offset: number; length: number; }; }): Promise>; /** Get program accounts */ getProgramAccounts(programId: string, options?: { commitment?: 'processed' | 'confirmed' | 'finalized'; encoding?: 'base58' | 'base64' | 'base64+zstd' | 'jsonParsed'; dataSlice?: { offset: number; length: number; }; filters?: any[]; withContext?: boolean; }): Promise>; /** Get recent performance samples */ getRecentPerformanceSamples(limit?: number): Promise>; /** Get recent prioritization fees */ getRecentPrioritizationFees(accounts?: string[]): Promise>; /** Get signatures for address */ getSignaturesForAddress(address: string, options?: { limit?: number; before?: string; until?: string; commitment?: 'confirmed' | 'finalized'; minContextSlot?: number; }): Promise>; /** Get signature statuses */ getSignatureStatuses(signatures: string[], options?: { searchTransactionHistory?: boolean; }): Promise>; /** Get slot */ getSlot(commitment?: 'processed' | 'confirmed' | 'finalized'): Promise>; /** Get slot leader */ getSlotLeader(commitment?: 'processed' | 'confirmed' | 'finalized'): Promise>; /** Get slot leaders */ getSlotLeaders(startSlot: number, limit: number): Promise>; /** Get stake activation */ getStakeActivation(pubkey: string, options?: { commitment?: 'processed' | 'confirmed' | 'finalized'; epoch?: number; minContextSlot?: number; }): Promise>; /** Get stake minimum delegation */ getStakeMinimumDelegation(commitment?: 'processed' | 'confirmed' | 'finalized'): Promise>; /** Get supply */ getSupply(options?: { commitment?: 'processed' | 'confirmed' | 'finalized'; excludeNonCirculatingAccountsList?: boolean; }): Promise>; /** Get token account balance */ getTokenAccountBalance(pubkey: string, commitment?: 'processed' | 'confirmed' | 'finalized'): Promise>; /** Get token accounts by delegate */ getTokenAccountsByDelegate(delegate: string, filter: { mint?: string; programId?: string; }, options?: { commitment?: 'processed' | 'confirmed' | 'finalized'; encoding?: 'base64' | 'jsonParsed'; dataSlice?: { offset: number; length: number; }; }): Promise>; /** Get token accounts by owner */ getTokenAccountsByOwner(owner: string, filter: { mint?: string; programId?: string; }, options?: { commitment?: 'processed' | 'confirmed' | 'finalized'; encoding?: 'base64' | 'jsonParsed'; dataSlice?: { offset: number; length: number; }; }): Promise>; /** Get token largest accounts */ getTokenLargestAccounts(mint: string, commitment?: 'processed' | 'confirmed' | 'finalized'): Promise>; /** Get token supply */ getTokenSupply(mint: string, commitment?: 'processed' | 'confirmed' | 'finalized'): Promise>; /** Get transaction */ getTransaction(signature: string, options?: { commitment?: 'confirmed' | 'finalized'; encoding?: 'json' | 'jsonParsed' | 'base58' | 'base64'; maxSupportedTransactionVersion?: number; }): Promise>; /** Get transaction count */ getTransactionCount(commitment?: 'processed' | 'confirmed' | 'finalized'): Promise>; /** Get version */ getVersion(): Promise>; /** Get vote accounts */ getVoteAccounts(options?: { commitment?: 'processed' | 'confirmed' | 'finalized'; votePubkey?: string; keepUnstakedDelinquents?: boolean; delinquentSlotDistance?: number; }): Promise>; /** Check if blockhash is valid */ isBlockhashValid(blockhash: string, options?: { commitment?: 'processed' | 'confirmed' | 'finalized'; minContextSlot?: number; }): Promise>; /** Minimum ledger slot */ minimumLedgerSlot(): Promise>; /** Request airdrop (devnet/testnet only) */ requestAirdrop(pubkey: string, lamports: number, commitment?: 'processed' | 'confirmed' | 'finalized'): Promise>; /** Send transaction */ sendTransaction(signedTransaction: string, options?: { encoding?: 'base58' | 'base64'; skipPreflight?: boolean; preflightCommitment?: 'processed' | 'confirmed' | 'finalized'; maxRetries?: number; minContextSlot?: number; }): Promise>; /** Simulate transaction */ simulateTransaction(transaction: string, options?: { commitment?: 'processed' | 'confirmed' | 'finalized'; encoding?: 'base58' | 'base64'; sigVerify?: boolean; replaceRecentBlockhash?: boolean; accounts?: { encoding?: 'base64' | 'base64+zstd' | 'jsonParsed'; addresses: string[]; }; minContextSlot?: number; }): Promise>; } //# sourceMappingURL=SolanaApi.d.ts.map