Function findBestSuperStakeIxs

  • Parameters

    • __namedParameters: {
          amount: BN;
          driftClient: DriftClient;
          forceMarinade?: boolean;
          jupiterClient: JupiterClient;
          jupiterQuote?: QuoteResponse;
          marketIndex: number;
          onlyDirectRoutes?: boolean;
          price?: number;
          userAccountPublicKey?: PublicKey;
      }
      • amount: BN
      • driftClient: DriftClient
      • Optional forceMarinade?: boolean
      • jupiterClient: JupiterClient
      • Optional jupiterQuote?: QuoteResponse
      • marketIndex: number
      • Optional onlyDirectRoutes?: boolean
      • Optional price?: number
      • Optional userAccountPublicKey?: PublicKey

    Returns Promise<{
        ixs: TransactionInstruction[];
        lookupTables: AddressLookupTableAccount[];
        method: "jupiter" | "marinade";
        price?: number;
    }>

Generated using TypeDoc