Type alias DriftClientConfig

DriftClientConfig: {
    accountSubscription?: DriftClientSubscriptionConfig;
    activeSubAccountId?: number;
    authority?: PublicKey;
    authoritySubAccountMap?: Map<string, number[]>;
    connection: Connection;
    delistedMarketSetting?: DelistedMarketSetting;
    enableMetricsEvents?: boolean;
    env?: DriftEnv;
    includeDelegates?: boolean;
    marketLookupTable?: PublicKey;
    opts?: ConfirmOptions;
    oracleInfos?: OracleInfo[];
    perpMarketIndexes?: number[];
    programID?: PublicKey;
    skipLoadUsers?: boolean;
    spotMarketIndexes?: number[];
    subAccountIds?: number[];
    swiftID?: PublicKey;
    txHandler?: TxHandler;
    txHandlerConfig?: TxHandlerConfig;
    txParams?: TxParams;
    txSender?: TxSender;
    txVersion?: TransactionVersion;
    userStats?: boolean;
    wallet: IWallet;
}

Type declaration

  • Optional accountSubscription?: DriftClientSubscriptionConfig
  • Optional activeSubAccountId?: number
  • Optional authority?: PublicKey
  • Optional authoritySubAccountMap?: Map<string, number[]>
  • connection: Connection
  • Optional delistedMarketSetting?: DelistedMarketSetting
  • Optional enableMetricsEvents?: boolean
  • Optional env?: DriftEnv
  • Optional includeDelegates?: boolean
  • Optional marketLookupTable?: PublicKey
  • Optional opts?: ConfirmOptions
  • Optional oracleInfos?: OracleInfo[]
  • Optional perpMarketIndexes?: number[]
  • Optional programID?: PublicKey
  • Optional skipLoadUsers?: boolean
  • Optional spotMarketIndexes?: number[]
  • Optional subAccountIds?: number[]
  • Optional swiftID?: PublicKey
  • Optional txHandler?: TxHandler
  • Optional txHandlerConfig?: TxHandlerConfig
  • Optional txParams?: TxParams
  • Optional txSender?: TxSender
  • Optional txVersion?: TransactionVersion
  • Optional userStats?: boolean
  • wallet: IWallet

Generated using TypeDoc