mirror of
https://github.com/mempool/mempool.git
synced 2025-01-18 05:12:35 +01:00
Merge pull request #772 from mempool/wiz/fix-api-docs-for-raspberry-pi-users
Fix API docs examples for Raspberry Pi users using romanz/electrs
This commit is contained in:
commit
2978d16148
@ -73,17 +73,17 @@ export class ApiDocsComponent implements OnInit {
|
|||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
codeSampleMainnet: {
|
codeSampleMainnet: {
|
||||||
esModule: [`1wizSAYSbuyXbt9d8JV8ytm5acqq2TorC`],
|
esModule: [`1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv`],
|
||||||
commonJS: [`1wizSAYSbuyXbt9d8JV8ytm5acqq2TorC`],
|
commonJS: [`1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv`],
|
||||||
curl: [`1wizSAYSbuyXbt9d8JV8ytm5acqq2TorC`],
|
curl: [`1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv`],
|
||||||
response: `{
|
response: `{
|
||||||
address: "1wizSAYSbuyXbt9d8JV8ytm5acqq2TorC",
|
address: "1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv",
|
||||||
chain_stats: {
|
chain_stats: {
|
||||||
funded_txo_count: 765,
|
funded_txo_count: 5,
|
||||||
funded_txo_sum: 87749875807,
|
funded_txo_sum: 15007599040,
|
||||||
spent_txo_count: 765,
|
spent_txo_count: 5,
|
||||||
spent_txo_sum: 87749875807,
|
spent_txo_sum: 15007599040,
|
||||||
tx_count: 875
|
tx_count: 7
|
||||||
},
|
},
|
||||||
mempool_stats: {
|
mempool_stats: {
|
||||||
funded_txo_count: 0,
|
funded_txo_count: 0,
|
||||||
@ -117,17 +117,17 @@ export class ApiDocsComponent implements OnInit {
|
|||||||
}`
|
}`
|
||||||
},
|
},
|
||||||
codeSampleSignet: {
|
codeSampleSignet: {
|
||||||
esModule: [`1wizSAYSbuyXbt9d8JV8ytm5acqq2TorC`],
|
esModule: [`1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv`],
|
||||||
commonJS: [`1wizSAYSbuyXbt9d8JV8ytm5acqq2TorC`],
|
commonJS: [`1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv`],
|
||||||
curl: [`1wizSAYSbuyXbt9d8JV8ytm5acqq2TorC`],
|
curl: [`1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv`],
|
||||||
response: `{
|
response: `{
|
||||||
address: "1wizSAYSbuyXbt9d8JV8ytm5acqq2TorC",
|
address: "1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv",
|
||||||
chain_stats: {
|
chain_stats: {
|
||||||
funded_txo_count: 765,
|
funded_txo_count: 5,
|
||||||
funded_txo_sum: 87749875807,
|
funded_txo_sum: 15007599040,
|
||||||
spent_txo_count: 765,
|
spent_txo_count: 5,
|
||||||
spent_txo_sum: 87749875807,
|
spent_txo_sum: 15007599040,
|
||||||
tx_count: 875
|
tx_count: 7
|
||||||
},
|
},
|
||||||
mempool_stats: {
|
mempool_stats: {
|
||||||
funded_txo_count: 0,
|
funded_txo_count: 0,
|
||||||
@ -199,24 +199,24 @@ export class ApiDocsComponent implements OnInit {
|
|||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
codeSampleMainnet: {
|
codeSampleMainnet: {
|
||||||
esModule: [`1wizSAYSbuyXbt9d8JV8ytm5acqq2TorC`],
|
esModule: [`1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv`],
|
||||||
commonJS: [`1wizSAYSbuyXbt9d8JV8ytm5acqq2TorC`],
|
commonJS: [`1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv`],
|
||||||
curl: [`1wizSAYSbuyXbt9d8JV8ytm5acqq2TorC`],
|
curl: [`1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv`],
|
||||||
response: `[
|
response: `[
|
||||||
{
|
{
|
||||||
txid: "f39fbfd2482ac8a7174fe27caddd66aec05eec0d0e988ddf0de2136a416394c4",
|
txid: "dba43fd04b7ae3df8e5b596f2e7fab247c58629d622e3a5213f03a5a09684430",
|
||||||
version: 2,
|
version: 1,
|
||||||
locktime: 0,
|
locktime: 0,
|
||||||
vin: [ [Object] ],
|
vin: [ [Object] ],
|
||||||
vout: [ [Object], [Object] ],
|
vout: [ [Object], [Object] ],
|
||||||
size: 251,
|
size: 255,
|
||||||
weight: 1004,
|
weight: 1020,
|
||||||
fee: 8212,
|
fee: 10000,
|
||||||
status: {
|
status: {
|
||||||
confirmed: true,
|
confirmed: true,
|
||||||
block_height: 684536,
|
block_height: 326148,
|
||||||
block_hash: "00000000000000000008df08f428ca4e8251ba9171d9060b056f1f94d4fefbc7",
|
block_hash: "00000000000000001e4118adcfbb02364bc13c41c210d8811e4f39aeb3687e36",
|
||||||
block_time: 1621687336
|
block_time: 1413798020
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
...
|
...
|
||||||
@ -247,17 +247,17 @@ export class ApiDocsComponent implements OnInit {
|
|||||||
]`
|
]`
|
||||||
},
|
},
|
||||||
codeSampleSignet: {
|
codeSampleSignet: {
|
||||||
esModule: [`1wizSAYSbuyXbt9d8JV8ytm5acqq2TorC`],
|
esModule: [`1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv`],
|
||||||
commonJS: [`1wizSAYSbuyXbt9d8JV8ytm5acqq2TorC`],
|
commonJS: [`1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv`],
|
||||||
curl: [`1wizSAYSbuyXbt9d8JV8ytm5acqq2TorC`],
|
curl: [`1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv`],
|
||||||
response: `{
|
response: `{
|
||||||
address: "1wizSAYSbuyXbt9d8JV8ytm5acqq2TorC",
|
address: "1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv",
|
||||||
chain_stats: {
|
chain_stats: {
|
||||||
funded_txo_count: 765,
|
funded_txo_count: 5,
|
||||||
funded_txo_sum: 87749875807,
|
funded_txo_sum: 15007599040,
|
||||||
spent_txo_count: 765,
|
spent_txo_count: 5,
|
||||||
spent_txo_sum: 87749875807,
|
spent_txo_sum: 15007599040,
|
||||||
tx_count: 875
|
tx_count: 7
|
||||||
},
|
},
|
||||||
mempool_stats: {
|
mempool_stats: {
|
||||||
funded_txo_count: 0,
|
funded_txo_count: 0,
|
||||||
@ -319,9 +319,9 @@ export class ApiDocsComponent implements OnInit {
|
|||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
codeSampleMainnet: {
|
codeSampleMainnet: {
|
||||||
esModule: [`1wizSAYSbuyXbt9d8JV8ytm5acqq2TorC`],
|
esModule: [`1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv`],
|
||||||
commonJS: [`1wizSAYSbuyXbt9d8JV8ytm5acqq2TorC`],
|
commonJS: [`1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv`],
|
||||||
curl: [`1wizSAYSbuyXbt9d8JV8ytm5acqq2TorC`],
|
curl: [`1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv`],
|
||||||
response: `[
|
response: `[
|
||||||
{
|
{
|
||||||
txid: "c4e53c2e37f4fac759fdb0d8380e4d49e6c7211233ae276a44ce7074a1d6d168",
|
txid: "c4e53c2e37f4fac759fdb0d8380e4d49e6c7211233ae276a44ce7074a1d6d168",
|
||||||
@ -367,11 +367,11 @@ export class ApiDocsComponent implements OnInit {
|
|||||||
],`
|
],`
|
||||||
},
|
},
|
||||||
codeSampleSignet: {
|
codeSampleSignet: {
|
||||||
esModule: [`1wizSAYSbuyXbt9d8JV8ytm5acqq2TorC`],
|
esModule: [`1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv`],
|
||||||
commonJS: [`1wizSAYSbuyXbt9d8JV8ytm5acqq2TorC`],
|
commonJS: [`1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv`],
|
||||||
curl: [`1wizSAYSbuyXbt9d8JV8ytm5acqq2TorC`],
|
curl: [`1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv`],
|
||||||
response: `{
|
response: `{
|
||||||
address: "1wizSAYSbuyXbt9d8JV8ytm5acqq2TorC",
|
address: "1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv",
|
||||||
chain_stats: {
|
chain_stats: {
|
||||||
funded_txo_count: 765,
|
funded_txo_count: 765,
|
||||||
funded_txo_sum: 87749875807,
|
funded_txo_sum: 87749875807,
|
||||||
@ -439,9 +439,9 @@ export class ApiDocsComponent implements OnInit {
|
|||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
codeSampleMainnet: {
|
codeSampleMainnet: {
|
||||||
esModule: [`1wizSAYSbuyXbt9d8JV8ytm5acqq2TorC`],
|
esModule: [`1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv`],
|
||||||
commonJS: [`1wizSAYSbuyXbt9d8JV8ytm5acqq2TorC`],
|
commonJS: [`1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv`],
|
||||||
curl: [`1wizSAYSbuyXbt9d8JV8ytm5acqq2TorC`],
|
curl: [`1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv`],
|
||||||
response: `[
|
response: `[
|
||||||
{
|
{
|
||||||
txid: "16cd9bbc6b62313a22d16671fa559aec6bf581df8b5853d37775c84b0fddfa90",
|
txid: "16cd9bbc6b62313a22d16671fa559aec6bf581df8b5853d37775c84b0fddfa90",
|
||||||
@ -475,9 +475,9 @@ export class ApiDocsComponent implements OnInit {
|
|||||||
]`
|
]`
|
||||||
},
|
},
|
||||||
codeSampleSignet: {
|
codeSampleSignet: {
|
||||||
esModule: [`1wizSAYSbuyXbt9d8JV8ytm5acqq2TorC`],
|
esModule: [`1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv`],
|
||||||
commonJS: [`1wizSAYSbuyXbt9d8JV8ytm5acqq2TorC`],
|
commonJS: [`1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv`],
|
||||||
curl: [`1wizSAYSbuyXbt9d8JV8ytm5acqq2TorC`],
|
curl: [`1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv`],
|
||||||
response: `[
|
response: `[
|
||||||
{
|
{
|
||||||
txid: "16cd9bbc6b62313a22d16671fa559aec6bf581df8b5853d37775c84b0fddfa90",
|
txid: "16cd9bbc6b62313a22d16671fa559aec6bf581df8b5853d37775c84b0fddfa90",
|
||||||
@ -575,9 +575,9 @@ export class ApiDocsComponent implements OnInit {
|
|||||||
]`
|
]`
|
||||||
},
|
},
|
||||||
codeSampleSignet: {
|
codeSampleSignet: {
|
||||||
esModule: [`1wizSAYSbuyXbt9d8JV8ytm5acqq2TorC`],
|
esModule: [`1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv`],
|
||||||
commonJS: [`1wizSAYSbuyXbt9d8JV8ytm5acqq2TorC`],
|
commonJS: [`1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv`],
|
||||||
curl: [`1wizSAYSbuyXbt9d8JV8ytm5acqq2TorC`],
|
curl: [`1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv`],
|
||||||
response: `[
|
response: `[
|
||||||
{
|
{
|
||||||
txid: "e58b47f657b496a083ad9a4fb10c744d5e993028efd9cfba149885334d98bdf5",
|
txid: "e58b47f657b496a083ad9a4fb10c744d5e993028efd9cfba149885334d98bdf5",
|
||||||
|
Loading…
Reference in New Issue
Block a user