Type alias QuoteRequest

QuoteRequest: {
    fromChainId: ChainId;
    fromToken: Web3Address;
    toChainId: ChainId;
    toToken: Web3Address;
    amount?: string;
    user?: Web3Address;
    slippagePercentage?: number;
    recipient?: Web3Address;
    varsOverride?: Record<string, number | string | unknown>;
    partner?: Web3Address;
}

Type declaration

  • fromChainId: ChainId

    ChainId of from_token. See https://chainlist.org/.

  • fromToken: Web3Address

    Address of from_token.

  • toChainId: ChainId

    ChainId of the to_token. See https://chainlist.org/.

  • toToken: Web3Address

    Address of the to token.

  • Optional amount?: string

    Amount of the fromToken to spend on the user's behalf.

  • Optional user?: Web3Address

    Address of user placing the order. Required to receive a valid unsigned tx.

  • Optional slippagePercentage?: number

    The maximum acceptable slippage of the to_token amount. A number between 0 and 1. E.g.: 0.01 for 1% slippage tolerance.

    Default

    0.01

  • Optional recipient?: Web3Address

    Address of where the zapped funds should be sent after the order executes.

  • Optional varsOverride?: Record<string, number | string | unknown>
  • Optional partner?: Web3Address

    Address of partner referring the user.

Generated using TypeDoc