• Parses a QuoteResponse from the RFQ service of the Valorem Trade API, transforming it into a more usable format and performing necessary validations.

    Parameters

    Returns {
        chainId: undefined | number;
        makerAddress: undefined | `0x${string}`;
        order: {
            conduitKey: `0x${string}`;
            consideration: undefined | {
                endAmount: bigint;
                identifierOrCriteria: bigint;
                itemType: ItemType;
                recipient: `0x${string}`;
                startAmount: bigint;
                token: `0x${string}`;
            }[];
            endTime: undefined | bigint;
            offer: undefined | {
                endAmount: bigint;
                identifierOrCriteria: bigint;
                itemType: ItemType;
                startAmount: bigint;
                token: `0x${string}`;
            }[];
            offerer: undefined | `0x${string}`;
            orderType: undefined | OrderType;
            salt: bigint;
            startTime: undefined | bigint;
            zone: undefined | `0x${string}`;
            zoneHash: `0x${string}`;
        };
        seaportAddress: undefined | `0x${string}`;
        ulid: undefined | bigint;
    }

    • An object representing the parsed quote response.
    • chainId: undefined | number
    • makerAddress: undefined | `0x${string}`
    • order: {
          conduitKey: `0x${string}`;
          consideration: undefined | {
              endAmount: bigint;
              identifierOrCriteria: bigint;
              itemType: ItemType;
              recipient: `0x${string}`;
              startAmount: bigint;
              token: `0x${string}`;
          }[];
          endTime: undefined | bigint;
          offer: undefined | {
              endAmount: bigint;
              identifierOrCriteria: bigint;
              itemType: ItemType;
              startAmount: bigint;
              token: `0x${string}`;
          }[];
          offerer: undefined | `0x${string}`;
          orderType: undefined | OrderType;
          salt: bigint;
          startTime: undefined | bigint;
          zone: undefined | `0x${string}`;
          zoneHash: `0x${string}`;
      }
      • conduitKey: `0x${string}`
      • consideration: undefined | {
            endAmount: bigint;
            identifierOrCriteria: bigint;
            itemType: ItemType;
            recipient: `0x${string}`;
            startAmount: bigint;
            token: `0x${string}`;
        }[]
      • endTime: undefined | bigint
      • offer: undefined | {
            endAmount: bigint;
            identifierOrCriteria: bigint;
            itemType: ItemType;
            startAmount: bigint;
            token: `0x${string}`;
        }[]
      • offerer: undefined | `0x${string}`
      • orderType: undefined | OrderType
      • salt: bigint
      • startTime: undefined | bigint
      • zone: undefined | `0x${string}`
      • zoneHash: `0x${string}`
    • seaportAddress: undefined | `0x${string}`
    • ulid: undefined | bigint

    Throws

    • Errors if the response is missing essential data.

Generated using TypeDoc