From 2787db0163a6a4c032a556cfd92fd38f3ee70a57 Mon Sep 17 00:00:00 2001 From: Ben van Hartingsveldt Date: Sun, 12 May 2024 15:50:43 +0200 Subject: [PATCH] Add information about discovery service --- bip-0040/service-blockchain.address.mediawiki | 4 +- bip-0040/service-discovery.mediawiki | 113 +++++++++++++++++- 2 files changed, 114 insertions(+), 3 deletions(-) diff --git a/bip-0040/service-blockchain.address.mediawiki b/bip-0040/service-blockchain.address.mediawiki index 5237c57b..379953bd 100644 --- a/bip-0040/service-blockchain.address.mediawiki +++ b/bip-0040/service-blockchain.address.mediawiki @@ -16,7 +16,7 @@ ! Method | colspan="3" | blockchain.address.get_history |- -! Param [0] +! Params [0] | string | 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L | The address to get the history of. @@ -45,7 +45,7 @@ ! Method | colspan="3" | blockchain.address.subscribe |- -! Param [0] +! Params [0] | string | 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L | The address to subscribe to. diff --git a/bip-0040/service-discovery.mediawiki b/bip-0040/service-discovery.mediawiki index a843f22a..188d5283 100644 --- a/bip-0040/service-discovery.mediawiki +++ b/bip-0040/service-discovery.mediawiki @@ -1,4 +1,115 @@ =Service: Discovery= * Service type: discovery -* Service vendor: Stratum \ No newline at end of file +* Service vendor: Stratum + +==Method: List Services== + +* Method name: list_services + +{| +! [Request] +! Type +! Example +! Description +|- +! Method +| colspan="3" | discovery.list_services +|- +! [Response] +! Type +! Example +! Description +|- +! Result +| array +| ["discovery","example","example.pubsub"] +| The services that are implemented by the server. +|} + +==Method: List Vendors== + +* Method name: list_vendors + +{| +! [Request] +! Type +! Example +! Description +|- +! Method +| colspan="3" | discovery.list_vendors +|- +! Params [0] (service_type) +| string +| firstbits +| The service you want all the vendors of. +|- +! [Response] +! Type +! Example +! Description +|- +! Result +| array +| ["blockchain.info","firstbits.com"] +| The vendors of the requested service. +|} + +==Method: List Methods== + +* Method name: list_methods + +{| +! [Request] +! Type +! Example +! Description +|- +! Method +| colspan="3" | discovery.list_methods +|- +! Params [0] (service_name) +| string +| firstbits[firstbits.com] +| The service name (eventually including a service vendor in square brackets). +|- +! [Response] +! Type +! Example +! Description +|- +! Result +| array +| ["create","resolve"] +| The methods of the requested service. +|} + +==Method: List Params== + +* Method name: list_params + +{| +! [Request] +! Type +! Example +! Description +|- +! Method +| colspan="3" | discovery.list_params +|- +! Params [0] (method) +| string +| firstbits[firstbits.com].create +| The full method name, including the service name (and possibly the service vendor in square brackets). +|- +! [Response] +! Type +! Example +! Description +|- +! Result +| array +| ["Some method help text",[ ["address","string","String containing full Bitcoin address."] ]]. +| The parameters of the requested method. +|} \ No newline at end of file