UNPKG

@gorbchain-xyz/chaindecode

Version:

GorbchainSDK V1.3+ - Complete Solana development toolkit with advanced cryptography, messaging, and collaboration features. Build secure applications with blockchain, DeFi, and end-to-end encryption.

52 lines (51 loc) 1.32 kB
export interface AccountInfo { executable: boolean; owner: string; lamports: number; data: string; rentEpoch: number; } export interface RpcResponse<T> { jsonrpc: string; id: number; result: T | null; error?: { code: number; message: string; }; } /** * Get account information for a given public key */ export declare function getAccountInfo(connection: any, pubkey: string, options?: { encoding?: string; commitment?: string; }): Promise<AccountInfo | null>; /** * Get multiple account information at once */ export declare function getMultipleAccounts(connection: any, pubkeys: string[], options?: { encoding?: string; commitment?: string; }): Promise<(AccountInfo | null)[]>; /** * Get all accounts owned by a specific program */ export declare function getProgramAccounts(connection: any, programId: string, options?: { encoding?: string; commitment?: string; filters?: Array<{ memcmp?: { offset: number; bytes: string; }; dataSize?: number; }>; }): Promise<Array<{ pubkey: string; account: AccountInfo; }>>; /** * Get the balance of an account in lamports */ export declare function getBalance(connection: any, pubkey: string, commitment?: string): Promise<number>;