Properties of a TitanTask.

interface ITitanTask {
    accessToken?: null | string;
    amount?: null | string;
    apiEndpoint?: null | string;
    dexes?: null | OracleJob.TitanTask.IFilterList;
    excludeDexes?: null | OracleJob.TitanTask.IFilterList;
    inTokenAddress?: null | string;
    onlyDirectRoutes?: null | boolean;
    outTokenAddress?: null | string;
    providers?: null | string[];
    slippageBps?: null | number;
    swapMode?: null | SwapMode;
    userPublicKey?: null | string;
}

Implemented by

Properties

accessToken?: null | string

Optional API access token for authenticated requests

amount?: null | string

The amount of tokens to swap (raw atoms, not scaled by decimals).

apiEndpoint?: null | string

Optional API endpoint override (defaults to partners.api.titan.exchange)

If set, constrain quotes to the given set of DEXes.

excludeDexes?: null | OracleJob.TitanTask.IFilterList

If set, exclude the following DEXes when determining routes.

inTokenAddress?: null | string

The input token mint address (base58 encoded).

onlyDirectRoutes?: null | boolean

If set to true, only direct routes between the input and output mint will be considered.

outTokenAddress?: null | string

The output token mint address (base58 encoded).

providers?: null | string[]

If set, limit quotes to the given set of provider IDs.

slippageBps?: null | number

Allowed slippage in basis points (e.g., 50 = 0.5%).

swapMode?: null | SwapMode

Whether the amount is in terms of input or output token. Defaults to ExactIn.

userPublicKey?: null | string

Optional user public key for transaction generation (base58 encoded).