/** * OpenApiClient — GMGN OpenAPI external client * * Auth modes: * Exist (market/token/portfolio): X-APIKEY + timestamp + client_id * Signed (swap and order routes): X-APIKEY + timestamp + client_id + X-Signature (private key signature) */ export interface Config { apiKey: string; privateKeyPem?: string; host: string; } export interface SwapParams { chain: string; from_address: string; input_token: string; output_token: string; input_amount: string; swap_mode?: string; input_amount_bps?: string; output_amount?: string; slippage?: number; auto_slippage?: boolean; min_output_amount?: string; is_anti_mev?: boolean; priority_fee?: string; tip_fee?: string; gas_price?: string; gas_level?: string; auto_fee?: boolean; max_fee_per_gas?: string; max_priority_fee_per_gas?: string; condition_orders?: StrategyConditionOrder[]; sell_ratio_type?: string; } export interface StrategyConditionOrder { order_type: string; side: string; price_scale?: string; sell_ratio: string; drawdown_rate?: string; } export interface MultiSwapParams { chain: string; accounts: string[]; input_token: string; output_token: string; input_amount?: Record; input_amount_bps?: Record; output_amount?: Record; swap_mode?: string; slippage?: number; auto_slippage?: boolean; is_anti_mev?: boolean; priority_fee?: string; tip_fee?: string; gas_price?: string; gas_level?: string; auto_fee?: boolean; max_fee_per_gas?: string; max_priority_fee_per_gas?: string; condition_orders?: StrategyConditionOrder[]; sell_ratio_type?: string; } export interface StrategyCreateParams { chain: string; from_address: string; base_token: string; quote_token: string; order_type: string; sub_order_type: string; check_price?: string; open_price?: string; amount_in?: string; amount_in_percent?: string; limit_price_mode?: string; price_gap_ratio?: string; expire_in?: number; sell_ratio_type?: string; slippage?: number; auto_slippage?: boolean; fee?: string; auto_fee?: boolean; gas_price?: string; gas_level?: string; max_fee_per_gas?: string; max_priority_fee_per_gas?: string; is_anti_mev?: boolean; anti_mev_mode?: string; priority_fee?: string; tip_fee?: string; custom_rpc?: string; condition_orders?: StrategyConditionOrder[]; quote_investment?: string; sell_param?: TradeParam; buy_param?: TradeParam; } export interface StrategyCancelParams { chain: string; from_address: string; order_id: string; order_type?: string; close_sell_model?: string; } export interface TokenSignalGroup { signal_type?: number[]; mc_min?: number; mc_max?: number; trigger_mc_min?: number; trigger_mc_max?: number; total_fee_min?: number; total_fee_max?: number; min_create_or_open_ts?: string; max_create_or_open_ts?: string; } export interface HotSearchesParam { label?: string; interval: string; chain: string; filters?: string[]; limit?: number; [key: string]: string[] | number | string | undefined; } export interface PumpFeeShareInfo { provider: string; username: string; basic_points: number; } export interface BAGSFeeShareInfo { provider: string; username: string; basic_points: number; } export interface FlapRateConf { tax_rate?: number; buy_tax_rate?: number; sell_tax_rate?: number; mkt_bps?: number; deflation_bps?: number; dividend_bps?: number; lp_bps?: number; minimum_share_balance?: number; recipient_type?: string; beneficiary?: string; twitter_account?: string; split_conf?: Array<{ recipient: string; bps: number; }>; } export interface FourmemeRateConf { fee_plan?: boolean; fee_rate?: number; burn_rate?: number; divide_rate?: number; liquidity_rate?: number; recipient_rate?: number; recipient_address?: string; min_sharing?: number; } export interface BuyWalletInfo { from_address: string; buy_amt: string; } export interface TradeParam { slippage?: number; auto_slippage?: boolean; fee?: string; priority_fee?: string; tip_fee?: string; gas_price?: string; max_priority_fee_per_gas?: string; max_fee_per_gas?: string; is_anti_mev?: boolean; anti_mev_mode?: string; } export interface CookingSellConfig { sell_type: string; delay_sec?: number; delay_mili_sec?: number; sell_ratio: string; check_price?: string; wallet_addresses: string[]; } export interface CreateTokenParams { chain: string; dex: string; from_address: string; name: string; symbol: string; buy_amt: string; image?: string; image_url?: string; description?: string; website?: string; twitter?: string; telegram?: string; slippage?: number; auto_slippage?: boolean; fee?: string; priority_fee?: string; tip_fee?: string; gas_price?: string; max_priority_fee_per_gas?: string; max_fee_per_gas?: string; is_anti_mev?: boolean; anti_mev_mode?: string; raised_token?: string; dev_gas?: string; dev_priority?: string; dev_tip?: string; dev_max_fee_per_gas?: string; approve_vision?: string; source?: string; dev_wallet_bps?: number; buy_trade_config?: TradeParam; sell_trade_config?: TradeParam; sell_configs?: CookingSellConfig[]; is_mayhem?: boolean; is_cashback?: boolean; is_buy_back?: boolean; pump_fee_share_list?: PumpFeeShareInfo[]; flap_rate_conf?: FlapRateConf; fourmeme_rate_conf?: FourmemeRateConf; bags_fee_share_list?: BAGSFeeShareInfo[]; bonk_model?: string; buy_wallets?: BuyWalletInfo[]; snip_buy_wallets?: BuyWalletInfo[]; } export declare class OpenApiClient { private readonly apiKey; private readonly privateKeyPem; private readonly host; constructor(config: Config); getTokenInfo(chain: string, address: string): Promise; getTokenSecurity(chain: string, address: string): Promise; getTokenPoolInfo(chain: string, address: string): Promise; getTokenTopHolders(chain: string, address: string, extra?: Record): Promise; getTokenTopTraders(chain: string, address: string, extra?: Record): Promise; getTokenKline(chain: string, address: string, resolution: string, from?: number, to?: number): Promise; getWalletHoldings(chain: string, walletAddress: string, extra?: Record): Promise; getWalletActivity(chain: string, walletAddress: string, extra?: Record): Promise; getWalletStats(chain: string, walletAddresses: string[], period?: string): Promise; getWalletTokenBalance(chain: string, walletAddress: string, tokenAddress: string): Promise; getTrenches(chain: string, types?: string[], platforms?: string[], limit?: number, filters?: Record): Promise; getTrendingSwaps(chain: string, interval: string, extra?: Record): Promise; getTokenSignalV2(chain: string, groups: TokenSignalGroup[]): Promise; getHotSearches(params: HotSearchesParam[]): Promise; getUserInfo(): Promise; getFollowWallet(chain: string, extra?: Record): Promise; getFollowTokens(chain: string, walletAddress: string, extra?: Record): Promise; getFollowGroupNames(chain: string, walletAddress: string): Promise; getKol(chain?: string, limit?: number): Promise; getSmartMoney(chain?: string, limit?: number): Promise; getCreatedTokens(chain: string, walletAddress: string, extra?: Record): Promise; quoteOrder(chain: string, from_address: string, input_token: string, output_token: string, input_amount: string, slippage: number): Promise; swap(params: SwapParams): Promise; multiSwap(params: MultiSwapParams): Promise; queryOrder(orderId: string, chain: string): Promise; getGasPrice(chain: string): Promise; createStrategyOrder(params: StrategyCreateParams): Promise; getStrategyOrders(chain: string, extra?: Record): Promise; cancelStrategyOrder(params: StrategyCancelParams): Promise; getCookingStatistics(): Promise; createToken(params: CreateTokenParams): Promise; private authExistRequest; private authSignedRequest; private executePreparedRequest; private doFetch; private parseResponse; } //# sourceMappingURL=OpenApiClient.d.ts.map