commit
						e58b10d552
					
				| @ -13,6 +13,7 @@ const showJsExamplesDefault = { "": true, "testnet": true, "signet": true, "liqu | |||||||
| const showJsExamplesDefaultFalse = { "": false, "testnet": false, "signet": false, "liquid": false, "liquidtestnet": false, "bisq": false }; | const showJsExamplesDefaultFalse = { "": false, "testnet": false, "signet": false, "liquid": false, "liquidtestnet": false, "bisq": false }; | ||||||
| 
 | 
 | ||||||
| export const wsApiDocsData = { | export const wsApiDocsData = { | ||||||
|  |   showJsExamples: showJsExamplesDefault, | ||||||
|   codeTemplate: { |   codeTemplate: { | ||||||
|     curl: `/api/v1/ws`, |     curl: `/api/v1/ws`, | ||||||
|     commonJS: ` |     commonJS: ` | ||||||
| @ -2967,7 +2968,7 @@ export const restApiDocsData = [ | |||||||
|     "weight": 3931749, |     "weight": 3931749, | ||||||
|     "previousblockhash": "00000000000000000002b5b2afc1c62e61e53f966b965a9a8ce99112e24066ae" |     "previousblockhash": "00000000000000000002b5b2afc1c62e61e53f966b965a9a8ce99112e24066ae" | ||||||
|   }, |   }, | ||||||
|   ...         |   ... | ||||||
| ]`,
 | ]`,
 | ||||||
|         }, |         }, | ||||||
|         codeSampleTestnet: { |         codeSampleTestnet: { | ||||||
| @ -3047,7 +3048,7 @@ export const restApiDocsData = [ | |||||||
|     "emptyBlocks": 0, |     "emptyBlocks": 0, | ||||||
|     "slug": "antpool" |     "slug": "antpool" | ||||||
|   }, |   }, | ||||||
|   ...   |   ... | ||||||
|   "oldestIndexedBlockTimestamp": 1231006505, |   "oldestIndexedBlockTimestamp": 1231006505, | ||||||
|   "blockCount": 1005, |   "blockCount": 1005, | ||||||
|   "lastEstimatedHashrate": 230086716765559200000 |   "lastEstimatedHashrate": 230086716765559200000 | ||||||
|  | |||||||
| @ -101,7 +101,7 @@ | |||||||
|             <div class="subtitle" i18n>Description</div> |             <div class="subtitle" i18n>Description</div> | ||||||
|             <div i18n="api-docs.websocket.websocket">Default push: <code>{{ '{' }} action: 'want', data: ['blocks', ...] {{ '}' }}</code> to express what you want pushed. Available: <code>blocks</code>, <code>mempool-blocks</code>, <code>live-2h-chart</code>, and <code>stats</code>.<br><br>Push transactions related to address: <code>{{ '{' }} 'track-address': '3PbJ...bF9B' {{ '}' }}</code> to receive all new transactions containing that address as input or output. Returns an array of transactions. <code>address-transactions</code> for new mempool transactions, and <code>block-transactions</code> for new block confirmed transactions.</div> |             <div i18n="api-docs.websocket.websocket">Default push: <code>{{ '{' }} action: 'want', data: ['blocks', ...] {{ '}' }}</code> to express what you want pushed. Available: <code>blocks</code>, <code>mempool-blocks</code>, <code>live-2h-chart</code>, and <code>stats</code>.<br><br>Push transactions related to address: <code>{{ '{' }} 'track-address': '3PbJ...bF9B' {{ '}' }}</code> to receive all new transactions containing that address as input or output. Returns an array of transactions. <code>address-transactions</code> for new mempool transactions, and <code>block-transactions</code> for new block confirmed transactions.</div> | ||||||
|           </div> |           </div> | ||||||
|           <app-code-template [method]="'websocket'" [hostname]="hostname" [code]="wsDocs" [network]="network.val" ></app-code-template> |           <app-code-template [method]="'websocket'" [hostname]="hostname" [code]="wsDocs" [network]="network.val" [showCodeExample]="wsDocs.showJsExamples"></app-code-template> | ||||||
|         </div> |         </div> | ||||||
|       </div> |       </div> | ||||||
|     </div> |     </div> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user