Update blocks endpoints

This commit is contained in:
hunicus 2022-01-12 10:26:04 -05:00
parent 27ce863735
commit 10df6985fc
No known key found for this signature in database
GPG Key ID: 24837C51B6D81FD9

View File

@ -1306,9 +1306,9 @@ export class ApiDocsComponent implements OnInit {
response: '', response: '',
}, },
codeSampleLiquidTestnet: { codeSampleLiquidTestnet: {
esModule: [`86aefdd3cf7be8e5781f783fe5d80513e8b3f52f2f1ef61e8e056b7faffc4b78`], esModule: [`67d5eb1aee63c6c2058a088985503ff0626fd3f7f8022bdc74fab36a359164db`],
commonJS: [`86aefdd3cf7be8e5781f783fe5d80513e8b3f52f2f1ef61e8e056b7faffc4b78`], commonJS: [`67d5eb1aee63c6c2058a088985503ff0626fd3f7f8022bdc74fab36a359164db`],
curl: [`86aefdd3cf7be8e5781f783fe5d80513e8b3f52f2f1ef61e8e056b7faffc4b78`], curl: [`67d5eb1aee63c6c2058a088985503ff0626fd3f7f8022bdc74fab36a359164db`],
response: '', response: '',
}, },
codeSampleBisq: { codeSampleBisq: {
@ -1378,13 +1378,13 @@ export class ApiDocsComponent implements OnInit {
}`, }`,
}, },
codeSampleLiquidTestnet: { codeSampleLiquidTestnet: {
esModule: [`86aefdd3cf7be8e5781f783fe5d80513e8b3f52f2f1ef61e8e056b7faffc4b78`], esModule: [`67d5eb1aee63c6c2058a088985503ff0626fd3f7f8022bdc74fab36a359164db`],
commonJS: [`86aefdd3cf7be8e5781f783fe5d80513e8b3f52f2f1ef61e8e056b7faffc4b78`], commonJS: [`67d5eb1aee63c6c2058a088985503ff0626fd3f7f8022bdc74fab36a359164db`],
curl: [`86aefdd3cf7be8e5781f783fe5d80513e8b3f52f2f1ef61e8e056b7faffc4b78`], curl: [`67d5eb1aee63c6c2058a088985503ff0626fd3f7f8022bdc74fab36a359164db`],
response: `{ response: `{
in_best_chain: true, in_best_chain: true,
height: 1471971, height: 150000,
next_best: "1ce5b14c5fbc05be73d8833839e049fd34212da902a78118cd8502a95bf9c134" next_best: "2f24f3d94c006971b86fe2c9cdc92a7ed0aa7ec3b0643a836b8d8b5a54103bab"
}`, }`,
}, },
codeSampleBisq: { codeSampleBisq: {
@ -1439,7 +1439,7 @@ export class ApiDocsComponent implements OnInit {
esModule: [''], esModule: [''],
commonJS: [''], commonJS: [''],
curl: [''], curl: [''],
response: `1472119`, response: `162495`,
}, },
codeSampleBisq: { codeSampleBisq: {
esModule: [''], esModule: [''],
@ -1493,7 +1493,7 @@ export class ApiDocsComponent implements OnInit {
esModule: [''], esModule: [''],
commonJS: [''], commonJS: [''],
curl: [''], curl: [''],
response: `ec8fed6f33cba86f99b39ae65af948bfc2fdb95cceaa7331bbfd88f5daa823a2`, response: `ff643a1e102b555103d8feb20b296ee5cf3b4a202fa284e5d6ce82945b738ae7`,
}, },
codeSampleBisq: { codeSampleBisq: {
esModule: [''], esModule: [''],
@ -1546,10 +1546,10 @@ export class ApiDocsComponent implements OnInit {
response: `36e47770c306ae5d4ddcc2ce50f6ce6e23d6bdc692b9a9a347fb68d19255f598` response: `36e47770c306ae5d4ddcc2ce50f6ce6e23d6bdc692b9a9a347fb68d19255f598`
}, },
codeSampleLiquidTestnet: { codeSampleLiquidTestnet: {
esModule: ['dbbf73007879859f2c55b8605751498ad0d2848db0fdedeadcbdc0cf4f02ee13', '1'], esModule: ['b6b4aeefa220c6a17da116bda666e869b3146967d2479656448a8bce1e799b8f', '1'],
commonJS: ['dbbf73007879859f2c55b8605751498ad0d2848db0fdedeadcbdc0cf4f02ee13', '1'], commonJS: ['b6b4aeefa220c6a17da116bda666e869b3146967d2479656448a8bce1e799b8f', '1'],
curl: ['dbbf73007879859f2c55b8605751498ad0d2848db0fdedeadcbdc0cf4f02ee13', '1'], curl: ['b6b4aeefa220c6a17da116bda666e869b3146967d2479656448a8bce1e799b8f', '1'],
response: `36e47770c306ae5d4ddcc2ce50f6ce6e23d6bdc692b9a9a347fb68d19255f598` response: `41493aa0eec8b6d359c2defc90e2fafb42fb5b8633456648553467a4d3a16c4a`
}, },
codeSampleBisq: { codeSampleBisq: {
esModule: [''], esModule: [''],
@ -1627,12 +1627,13 @@ export class ApiDocsComponent implements OnInit {
]` ]`
}, },
codeSampleLiquidTestnet: { codeSampleLiquidTestnet: {
esModule: ['dbbf73007879859f2c55b8605751498ad0d2848db0fdedeadcbdc0cf4f02ee13', '1'], esModule: ['b6b4aeefa220c6a17da116bda666e869b3146967d2479656448a8bce1e799b8f', '1'],
commonJS: ['dbbf73007879859f2c55b8605751498ad0d2848db0fdedeadcbdc0cf4f02ee13', '1'], commonJS: ['b6b4aeefa220c6a17da116bda666e869b3146967d2479656448a8bce1e799b8f', '1'],
curl: ['dbbf73007879859f2c55b8605751498ad0d2848db0fdedeadcbdc0cf4f02ee13', '1'], curl: ['b6b4aeefa220c6a17da116bda666e869b3146967d2479656448a8bce1e799b8f', '1'],
response: `[ response: `[
"45abcc4572f519155cd65686c3be9cc744d79d6f36c928b0aa3c989f8ee094be", "95422f140e3d88e6ddaf0625ee523dbf9d38934d67ce32baf6c162d83a08f89f",
"36e47770c306ae5d4ddcc2ce50f6ce6e23d6bdc692b9a9a347fb68d19255f598" "41493aa0eec8b6d359c2defc90e2fafb42fb5b8633456648553467a4d3a16c4a",
"fa6b8dda9037f8284a659627005ad32dbb81e22b102c1d3d8a9bab0893ce2ab7"
]` ]`
}, },
codeSampleBisq: { codeSampleBisq: {
@ -1758,24 +1759,24 @@ export class ApiDocsComponent implements OnInit {
]` ]`
}, },
codeSampleLiquidTestnet: { codeSampleLiquidTestnet: {
esModule: ['dbbf73007879859f2c55b8605751498ad0d2848db0fdedeadcbdc0cf4f02ee13', '1'], esModule: ['b6b4aeefa220c6a17da116bda666e869b3146967d2479656448a8bce1e799b8f', '1'],
commonJS: ['dbbf73007879859f2c55b8605751498ad0d2848db0fdedeadcbdc0cf4f02ee13', '1'], commonJS: ['b6b4aeefa220c6a17da116bda666e869b3146967d2479656448a8bce1e799b8f', '1'],
curl: ['dbbf73007879859f2c55b8605751498ad0d2848db0fdedeadcbdc0cf4f02ee13', '1'], curl: ['b6b4aeefa220c6a17da116bda666e869b3146967d2479656448a8bce1e799b8f', '1'],
response: `[ response: `[
{ {
txid: "45abcc4572f519155cd65686c3be9cc744d79d6f36c928b0aa3c989f8ee094be", txid: "95422f140e3d88e6ddaf0625ee523dbf9d38934d67ce32baf6c162d83a08f89f",
version: 2, version: 2,
locktime: 0, locktime: 0,
vin: [], vin: [],
vout: [], vout: [],
size: 250, size: 226,
weight: 877, weight: 781,
fee: 0, fee: 0,
status: { status: {
confirmed: true, confirmed: true,
block_height: 1472142, block_height: 142834,
block_hash: "dbbf73007879859f2c55b8605751498ad0d2848db0fdedeadcbdc0cf4f02ee13", block_hash: "b6b4aeefa220c6a17da116bda666e869b3146967d2479656448a8bce1e799b8f",
block_time: 1630635778 block_time: 1640441533
} }
}, },
... ...
@ -1895,21 +1896,21 @@ export class ApiDocsComponent implements OnInit {
]` ]`
}, },
codeSampleLiquidTestnet: { codeSampleLiquidTestnet: {
esModule: ['1472246'], esModule: ['150000'],
commonJS: ['1472246'], commonJS: ['150000'],
curl: ['1472246'], curl: ['150000'],
response: `[ response: `[
{ {
id: "0bd348c08101fef863b7263b2b44b2f6575f707f1e397da95cfe2afdd5e9ccdb", id: "67d5eb1aee63c6c2058a088985503ff0626fd3f7f8022bdc74fab36a359164db",
height: 1472246, height: 150000,
version: 570425344, version: 536870912,
timestamp: 1630642018, timestamp: 1640871913,
tx_count: 2, tx_count: 2,
size: 10838, size: 3527,
weight: 16901, weight: 7430,
merkle_root: "a8cdc1ba96d1f862ca7c9aec4133a6efd14138f54c17efdbc968632a6b9cb8c8", merkle_root: "40538ff1fcac07c65e36fcc230fc60f58e3a885ce9898e41bc27bcf28227e5ff",
previousblockhash: "a06c327cdd76301de57ba0cf86c5ae8b1fd8a785945065ac9e2128322bd01f31", previousblockhash: "2d8c28042b03219e7e9bc6853cc3ae536e36be5639869c545a0f3dbd1309e2a5",
mediantime: 1630641718 mediantime: 1640871614
}, },
... ...
]` ]`