Function parseQuoteResponse
- parseQuoteResponse(res): {
chainId: undefined | number;
makerAddress: `0x${string}`;
order: {
parameters: {
conduitKey: `0x${string}`;
consideration: {
endAmount: bigint;
identifierOrCriteria: bigint;
itemType: ItemType;
recipient: `0x${string}`;
startAmount: bigint;
token: `0x${string}`;
}[];
endTime: bigint;
offer: {
endAmount: bigint;
identifierOrCriteria: bigint;
itemType: ItemType;
startAmount: bigint;
token: `0x${string}`;
}[];
offerer: `0x${string}`;
orderType: OrderType;
salt: bigint;
startTime: bigint;
totalOriginalConsiderationItems: bigint;
zone: `0x${string}`;
zoneHash: `0x${string}`;
};
signature: `0x${string}`;
};
seaportAddress: `0x${string}`;
ulid: bigint;
} Returns {
chainId: undefined | number;
makerAddress: `0x${string}`;
order: {
parameters: {
conduitKey: `0x${string}`;
consideration: {
endAmount: bigint;
identifierOrCriteria: bigint;
itemType: ItemType;
recipient: `0x${string}`;
startAmount: bigint;
token: `0x${string}`;
}[];
endTime: bigint;
offer: {
endAmount: bigint;
identifierOrCriteria: bigint;
itemType: ItemType;
startAmount: bigint;
token: `0x${string}`;
}[];
offerer: `0x${string}`;
orderType: OrderType;
salt: bigint;
startTime: bigint;
totalOriginalConsiderationItems: bigint;
zone: `0x${string}`;
zoneHash: `0x${string}`;
};
signature: `0x${string}`;
};
seaportAddress: `0x${string}`;
ulid: bigint;
}
- An object representing the parsed quote response.
chainId: undefined | number
makerAddress: `0x${string}`
order: {
parameters: {
conduitKey: `0x${string}`;
consideration: {
endAmount: bigint;
identifierOrCriteria: bigint;
itemType: ItemType;
recipient: `0x${string}`;
startAmount: bigint;
token: `0x${string}`;
}[];
endTime: bigint;
offer: {
endAmount: bigint;
identifierOrCriteria: bigint;
itemType: ItemType;
startAmount: bigint;
token: `0x${string}`;
}[];
offerer: `0x${string}`;
orderType: OrderType;
salt: bigint;
startTime: bigint;
totalOriginalConsiderationItems: bigint;
zone: `0x${string}`;
zoneHash: `0x${string}`;
};
signature: `0x${string}`;
}
parameters: {
conduitKey: `0x${string}`;
consideration: {
endAmount: bigint;
identifierOrCriteria: bigint;
itemType: ItemType;
recipient: `0x${string}`;
startAmount: bigint;
token: `0x${string}`;
}[];
endTime: bigint;
offer: {
endAmount: bigint;
identifierOrCriteria: bigint;
itemType: ItemType;
startAmount: bigint;
token: `0x${string}`;
}[];
offerer: `0x${string}`;
orderType: OrderType;
salt: bigint;
startTime: bigint;
totalOriginalConsiderationItems: bigint;
zone: `0x${string}`;
zoneHash: `0x${string}`;
}
conduitKey: `0x${string}`
consideration: {
endAmount: bigint;
identifierOrCriteria: bigint;
itemType: ItemType;
recipient: `0x${string}`;
startAmount: bigint;
token: `0x${string}`;
}[]
endTime: bigint
offer: {
endAmount: bigint;
identifierOrCriteria: bigint;
itemType: ItemType;
startAmount: bigint;
token: `0x${string}`;
}[]
offerer: `0x${string}`
salt: bigint
startTime: bigint
totalOriginalConsiderationItems: bigint
zone: `0x${string}`
zoneHash: `0x${string}`
signature: `0x${string}`
seaportAddress: `0x${string}`
ulid: bigint
Parses a QuoteResponse from the RFQ service of the Valorem Trade API, transforming it into a more usable format and performing necessary validations.