Add skeleton for blocks-bulk endpoint

This commit is contained in:
hunicus 2023-02-24 09:44:15 -05:00
parent b585a90abd
commit 73b90fcd25
No known key found for this signature in database
GPG Key ID: 24837C51B6D81FD9

View File

@ -2907,6 +2907,54 @@ export const restApiDocsData = [
} }
}, },
... ...
]`
},
codeSampleLiquid: emptyCodeSample,
codeSampleLiquidTestnet: emptyCodeSample,
codeSampleBisq: emptyCodeSample,
}
}
},
{
type: "endpoint",
category: "blocks",
httpRequestMethod: "GET",
fragment: "get-blocks-bulk",
title: "GET Blocks (Bulk)",
description: {
default: "Returns details on the range of blocks between <code>:minHeight</code> and <code>:maxHeight</code>, inclusive, up to 100 blocks. If <code>:maxHeight</code> is not specified, <code>:maxHeight</code> defaults to the current tip."
},
urlString: "/v1/blocks-bulk/:minHeight[/:maxHeight]",
showConditions: bitcoinNetworks,
showJsExamples: showJsExamplesDefaultFalse,
codeExample: {
default: {
codeTemplate: {
curl: `/api/v1/blocks-bulk/%{1}/%{2}`,
commonJS: ``,
},
codeSampleMainnet: {
esModule: [],
commonJS: [],
curl: [730000, 730100],
response: `[
]`,
},
codeSampleTestnet: {
esModule: ['2091187'],
commonJS: ['2091187'],
curl: ['2091187'],
response: `[
]`
},
codeSampleSignet: {
esModule: ['53783'],
commonJS: ['53783'],
curl: ['53783'],
response: `[
]` ]`
}, },
codeSampleLiquid: emptyCodeSample, codeSampleLiquid: emptyCodeSample,