Read data derived from the commitments to a sale contract. This includes the 100 latest commitments for a given sale, the total commitment amount, and the number of unique commitments. For auction sales, the current clearing price is also returned.
Success response
A list of commitments.
The number of decimals of the payment token. For example, USDC has 6 decimals. If your sale supports multiple payment tokens with different decimals, this will return the "normalized payment token decimals" configured for the sale.
x >= 0The total commitment amount in the smallest payment token units as a number string.
The number of unique commitment count.
x >= 0Set if the sale is using an auction pricing strategy. The current clearing price _denominator_ as a number string.
Set if the sale is using an auction pricing strategy and the payment token is a USD stablecoin and the offered token decimals are configured. It contains the current clearing price in micro-USD (1 USD = 1,000,000 micro-USD) for one human-readable offered token (1 human-readable token = 10^OfferedTokenDecimals smallest units). Warning: this could lose precision, so ClearingPriceNumerator and ClearingPriceDenominator should be used as the machine-readable value.
Set if the sale is using an auction pricing strategy. The current clearing price _numerator_ as a number string. You can divide this by the ClearingPriceDenominator to get the current price, but you might lose precision. The clearing price is in smallest units of the payment token per smallest unit of the offered token.
The number of decimals of the offered token, if configured. For example, a token with 18 decimals has 18 decimal places.
x >= 0