Configuration for the useRFQ hook. quoteRequest - An object or instance containing the details for requesting a quote. enabled - Flag to enable the hook. timeoutMs - Timeout for the quote request in milliseconds. onResponse - Callback function for handling responses. onError - Callback function for handling errors.

interface UseRFQConfig {
    enabled?: boolean;
    onError?: ((err) => void);
    onResponse?: ((res) => void);
    quoteRequest: undefined | QuoteRequest | {
        action: Action;
        amount: bigint;
        tokenId: undefined | bigint;
    };
    timeoutMs?: number;
}

Properties

enabled?: boolean
onError?: ((err) => void)

Type declaration

    • (err): void
    • Parameters

      Returns void

onResponse?: ((res) => void)

Type declaration

quoteRequest: undefined | QuoteRequest | {
    action: Action;
    amount: bigint;
    tokenId: undefined | bigint;
}

Type declaration

  • action: Action
  • amount: bigint
  • tokenId: undefined | bigint
timeoutMs?: number

Generated using TypeDoc