Difficulty accumulator and the next epoch's difficulty
/forwards/accumulatorThe chain's current epoch and difficulty, the next epoch's difficulty computed from block timestamps, the accumulator's recorded epochs and balance, and the limits an offer must meet right now. Answers on every network; deployed is false where no accumulator exists, and then nothing can be offered, filled or settled.
Responses
200The accumulator and the chain around itDFAccumulatorInfo▶
deployedbooleanrequiredWhether this network has an accumulator. Without one, nothing can be offered, filled or settled.
heightinteger · int32requiredThe newest block.
currentEpochinteger · int32requiredThe newest block's epoch,
(height - 1) / 128.blocksLeftInEpochinteger · int32requiredBlocks after the newest one before the epoch ends.
currentDifficultystringrequiredThe newest block's difficulty, which the whole epoch keeps.
▶
nextDifficultyDFNextDifficultyThe next epoch's difficulty, computed with Ergo's retarget rule from the last 9 epochs' final block timestamps.
epochinteger · int32requiredThe epoch it applies to, the one after the current epoch.
difficultystringrequiredexactbooleanrequiredTrue once the current epoch has ended, so this is the value the next blocks carry. Otherwise the current epoch's end is projected at its pace so far, which is close only late in the epoch.
fromHeightinteger · int32requiredThe newest block it was computed from.
changenumber · doublerequiredMove from the current difficulty, as a fraction.
nextDifficultyUnavailablestringWhy
nextDifficultyis absent, such as the difficulty table still loading.accumulatorNFTstringboxIdstringThe accumulator box, its newest one including unconfirmed spends.
lastEpochinteger · int32The newest epoch the accumulator has recorded.
balancestringLIT base units left to pay 5 LIT for each recorded epoch.
▶
recentDFEpochDifficulty[]requiredThe 128 epochs the accumulator holds, oldest first. Empty without an accumulator.
epochinteger · int32requireddifficultystringrequired
accumulatorUnavailablestringWhy the accumulator could not be read, when one is deployed.
▶
limitsDFOfferLimitsrequiredWhat an offer must satisfy to be created or filled by this client now.
minWindowStartinteger · int32requiredEarliest window start a fill in the next block accepts, 2 epochs after the current one.
maxWindowStartinteger · int32requiredLatest, 120 epochs after the current one.
maxWindowLengthinteger · int32requireddefaultExpiryinteger · int32requiredThe expiry an offer takes when none is given, the last block of the current epoch.
shortWindowEpochsinteger · int32requiredWindows shorter than this are size-limited (
forwards.offers.shortWindowEpochs).shortWindowMaxNotionalstringrequiredLargest notional for such a window, in LIT base units (
forwards.offers.shortWindowMaxNotionalLit).
503Node unavailable. Retry.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
defaultErrorApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description