/** * Solana client interfaces */ import { IQueryClient } from '@interchainjs/types'; import { GetHealthRequest, GetVersionRequest, GetSupplyRequest, GetLargestAccountsRequest, GetSlotRequest, GetBlockHeightRequest, GetEpochInfoRequest, GetMinimumBalanceForRentExemptionRequest, GetClusterNodesRequest, GetVoteAccountsRequest, GetAccountInfoRequest, GetBalanceRequest, GetLatestBlockhashRequest, GetMultipleAccountsRequest, GetTransactionCountRequest, GetSignatureStatusesRequest, GetTransactionRequest, RequestAirdropRequest, GetSignaturesForAddressRequest, GetFeeForMessageRequest, GetTokenAccountsByOwnerRequest, GetTokenAccountBalanceRequest, GetTokenSupplyRequest, GetTokenLargestAccountsRequest, GetProgramAccountsRequest, GetBlockRequest, GetBlocksRequest, GetBlockTimeRequest, GetSlotLeaderRequest, GetSlotLeadersRequest, GetInflationGovernorRequest, GetInflationRateRequest, GetInflationRewardRequest, GetRecentPerformanceSamplesRequest, GetStakeMinimumDelegationRequest, GetEpochScheduleRequest, GetGenesisHashRequest, GetIdentityRequest, GetLeaderScheduleRequest, GetFirstAvailableBlockRequest, GetMaxRetransmitSlotRequest, GetMaxShredInsertSlotRequest, GetHighestSnapshotSlotRequest, MinimumLedgerSlotRequest, GetBlockCommitmentRequest, GetBlockProductionRequest, GetBlocksWithLimitRequest, IsBlockhashValidRequest, GetRecentPrioritizationFeesRequest } from './requests'; import { VersionResponse, SupplyResponse, LargestAccountsResponse, SlotResponse, BlockHeightResponse, EpochInfoResponse, MinimumBalanceForRentExemptionResponse, ClusterNodesResponse, VoteAccountsResponse, AccountInfoRpcResponse, BalanceRpcResponse, LatestBlockhashRpcResponse, MultipleAccountsResponse, TransactionCountResponse, SignatureStatusesResponse, TransactionResponse, AirdropResponse, SignaturesForAddressResponse, FeeForMessageResponse, TokenAccountsByOwnerResponse, TokenAccountBalanceResponse, TokenSupplyResponse, TokenLargestAccountsResponse, ProgramAccountsResponse, ProgramAccountsContextResponse, BlockResponse, BlocksResponse, BlockTimeResponse, SlotLeaderResponse, SlotLeadersResponse, InflationGovernorResponse, InflationRateResponse, InflationRewardResponse, RecentPerformanceSamplesResponse, StakeMinimumDelegationResponse, EpochScheduleResponse, LeaderScheduleResponse, HighestSnapshotSlotResponse, BlockCommitmentResponse, BlockProductionResponse, RecentPrioritizationFeesResponse } from './responses'; import { SolanaProtocolInfo } from './protocol'; export interface ISolanaQueryClient extends IQueryClient { getProtocolInfo(): SolanaProtocolInfo; getHealth(request?: GetHealthRequest): Promise; getVersion(request?: GetVersionRequest): Promise; getSupply(request?: GetSupplyRequest): Promise; getLargestAccounts(request?: GetLargestAccountsRequest): Promise; getSlot(request?: GetSlotRequest): Promise; getBlockHeight(request?: GetBlockHeightRequest): Promise; getEpochInfo(request?: GetEpochInfoRequest): Promise; getMinimumBalanceForRentExemption(request: GetMinimumBalanceForRentExemptionRequest): Promise; getClusterNodes(request?: GetClusterNodesRequest): Promise; getVoteAccounts(request?: GetVoteAccountsRequest): Promise; getInflationGovernor(request?: GetInflationGovernorRequest): Promise; getInflationRate(request?: GetInflationRateRequest): Promise; getInflationReward(request: GetInflationRewardRequest): Promise; getRecentPerformanceSamples(request?: GetRecentPerformanceSamplesRequest): Promise; getStakeMinimumDelegation(request?: GetStakeMinimumDelegationRequest): Promise; getEpochSchedule(request?: GetEpochScheduleRequest): Promise; getGenesisHash(request?: GetGenesisHashRequest): Promise; getIdentity(request?: GetIdentityRequest): Promise; getLeaderSchedule(request?: GetLeaderScheduleRequest): Promise; getFirstAvailableBlock(request?: GetFirstAvailableBlockRequest): Promise; getMaxRetransmitSlot(request?: GetMaxRetransmitSlotRequest): Promise; getMaxShredInsertSlot(request?: GetMaxShredInsertSlotRequest): Promise; getHighestSnapshotSlot(request?: GetHighestSnapshotSlotRequest): Promise; minimumLedgerSlot(request?: MinimumLedgerSlotRequest): Promise; getBlockCommitment(request: GetBlockCommitmentRequest): Promise; getBlockProduction(request?: GetBlockProductionRequest): Promise; getBlocksWithLimit(request: GetBlocksWithLimitRequest): Promise; isBlockhashValid(request: IsBlockhashValidRequest): Promise; getRecentPrioritizationFees(request?: GetRecentPrioritizationFeesRequest): Promise; getAccountInfo(request: GetAccountInfoRequest): Promise; getBalance(request: GetBalanceRequest): Promise; getMultipleAccounts(request: GetMultipleAccountsRequest): Promise; getLatestBlockhash(request?: GetLatestBlockhashRequest): Promise; getBlock(request: GetBlockRequest): Promise; getBlocks(request: GetBlocksRequest): Promise; getBlockTime(request: GetBlockTimeRequest): Promise; getSlotLeader(request?: GetSlotLeaderRequest): Promise; getSlotLeaders(request: GetSlotLeadersRequest): Promise; getTransactionCount(request?: GetTransactionCountRequest): Promise; getSignatureStatuses(request: GetSignatureStatusesRequest): Promise; getTransaction(request: GetTransactionRequest): Promise; requestAirdrop(request: RequestAirdropRequest): Promise; getSignaturesForAddress(request: GetSignaturesForAddressRequest): Promise; getFeeForMessage(request: GetFeeForMessageRequest): Promise; sendTransactionBase64(txBase64: string, options: { skipPreflight?: boolean; preflightCommitment?: string; maxRetries?: number; encoding?: 'base64'; }): Promise; getTokenAccountsByOwner(request: GetTokenAccountsByOwnerRequest): Promise; getTokenAccountBalance(request: GetTokenAccountBalanceRequest): Promise; getTokenSupply(request: GetTokenSupplyRequest): Promise; getTokenLargestAccounts(request: GetTokenLargestAccountsRequest): Promise; getProgramAccounts(request: GetProgramAccountsRequest): Promise; }