import { AxiosInstance } from 'axios'; import { DstimateGasInfo } from '../../types'; import { TransactionInfo } from '../data/transaction'; import { ExchangeRate } from '../data/index'; export default class SolanaRpc { connection: AxiosInstance; constructor(connection: AxiosInstance); rpcRequest(method: string, ...params: any): Promise; getPrice(addressList: string[], currency: string[]): Promise; getTokensAndNFTs(address: string): Promise; getTransactionsList(address: string, signature: string, direction?: string): Promise; getEnhancedGetTokenTransactionsByAddress(address: string, signature: string, mint: string, direction?: string): Promise; getTokensByTokenAddresses(address: string, tokens: string[]): Promise; getSuggestedGasFees(): Promise; getEstimateGas(params: DstimateGasInfo[]): Promise; getNftMetadata(uri: string): Promise; /** * * @param params * @returns */ serializeTransaction(type: string, data: any): Promise; getQuote(address: string, params: any): Promise; getSwapTransactions(address: string, route: any): Promise; }