Update API docs for Difficulty API (REST)

This commit is contained in:
junderw 2022-08-19 22:01:04 +09:00
parent 772765959b
commit bb1adf41e7
No known key found for this signature in database
GPG Key ID: A9273B5AD3E47B45

View File

@ -114,11 +114,14 @@ export const restApiDocsData = [
curl: [], curl: [],
response: `{ response: `{
progressPercent: 44.397234501112074, progressPercent: 44.397234501112074,
difficultyChange: 0.9845932018381687, difficultyChange: 98.45932018381687,
estimatedRetargetDate: 1627762478.9111245, estimatedRetargetDate: 1627762478,
remainingBlocks: 1121, remainingBlocks: 1121,
remainingTime: 665977.6261244365, remainingTime: 665977,
previousRetarget: -4.807005268478962 previousRetarget: -4.807005268478962,
nextRetargetHeight: 741888,
timeAvg: 302328,
timeOffset: 0
}` }`
}, },
codeSampleTestnet: { codeSampleTestnet: {
@ -127,11 +130,14 @@ export const restApiDocsData = [
curl: [], curl: [],
response: `{ response: `{
progressPercent: 44.397234501112074, progressPercent: 44.397234501112074,
difficultyChange: 0.9845932018381687, difficultyChange: 98.45932018381687,
estimatedRetargetDate: 1627762478.9111245, estimatedRetargetDate: 1627762478,
remainingBlocks: 1121, remainingBlocks: 1121,
remainingTime: 665977.6261244365, remainingTime: 665977,
previousRetarget: -4.807005268478962 previousRetarget: -4.807005268478962,
nextRetargetHeight: 741888,
timeAvg: 302328,
timeOffset: 0
}` }`
}, },
codeSampleSignet: { codeSampleSignet: {
@ -140,11 +146,14 @@ export const restApiDocsData = [
curl: [], curl: [],
response: `{ response: `{
progressPercent: 44.397234501112074, progressPercent: 44.397234501112074,
difficultyChange: 0.9845932018381687, difficultyChange: 98.45932018381687,
estimatedRetargetDate: 1627762478.9111245, estimatedRetargetDate: 1627762478,
remainingBlocks: 1121, remainingBlocks: 1121,
remainingTime: 665977.6261244365, remainingTime: 665977,
previousRetarget: -4.807005268478962 previousRetarget: -4.807005268478962,
nextRetargetHeight: 741888,
timeAvg: 302328,
timeOffset: 0
}` }`
}, },
codeSampleLiquid: { codeSampleLiquid: {
@ -153,11 +162,14 @@ export const restApiDocsData = [
curl: [], curl: [],
response: `{ response: `{
progressPercent: 44.397234501112074, progressPercent: 44.397234501112074,
difficultyChange: 0.9845932018381687, difficultyChange: 98.45932018381687,
estimatedRetargetDate: 1627762478.9111245, estimatedRetargetDate: 1627762478,
remainingBlocks: 1121, remainingBlocks: 1121,
remainingTime: 665977.6261244365, remainingTime: 665977,
previousRetarget: -4.807005268478962 previousRetarget: -4.807005268478962,
nextRetargetHeight: 741888,
timeAvg: 302328,
timeOffset: 0
}` }`
} }
} }