1
0
Fork 0
mirror of https://github.com/bitcoin/bips.git synced 2025-03-04 11:08:05 +01:00

Add information about discovery service

This commit is contained in:
Ben van Hartingsveldt 2024-05-12 15:50:43 +02:00
parent 73f8ad180a
commit 2787db0163
No known key found for this signature in database
GPG key ID: 261AA214130CE7AB
2 changed files with 114 additions and 3 deletions

View file

@ -16,7 +16,7 @@
! Method
| colspan="3" | <code>blockchain.address.get_history</code>
|-
! Param [0]
! Params [0]
| <code>string</code>
| <code>1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L</code>
| The address to get the history of.
@ -45,7 +45,7 @@
! Method
| colspan="3" | <code>blockchain.address.subscribe</code>
|-
! Param [0]
! Params [0]
| <code>string</code>
| <code>1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L</code>
| The address to subscribe to.

View file

@ -2,3 +2,114 @@
* Service type: <code>discovery</code>
* Service vendor: <code>Stratum</code>
==Method: List Services==
* Method name: <code>list_services</code>
{|
! <ins>[Request]</ins>
! Type
! Example
! Description
|-
! Method
| colspan="3" | <code>discovery.list_services</code>
|-
! <ins>[Response]</ins>
! Type
! Example
! Description
|-
! Result
| <code>array</code>
| <code>["discovery","example","example.pubsub"]</code>
| The services that are implemented by the server.
|}
==Method: List Vendors==
* Method name: <code>list_vendors</code>
{|
! <ins>[Request]</ins>
! Type
! Example
! Description
|-
! Method
| colspan="3" | <code>discovery.list_vendors</code>
|-
! Params [0] (<code>service_type</code>)
| <code>string</code>
| <code>firstbits</code>
| The service you want all the vendors of.
|-
! <ins>[Response]</ins>
! Type
! Example
! Description
|-
! Result
| <code>array</code>
| <code>["blockchain.info","firstbits.com"]</code>
| The vendors of the requested service.
|}
==Method: List Methods==
* Method name: <code>list_methods</code>
{|
! <ins>[Request]</ins>
! Type
! Example
! Description
|-
! Method
| colspan="3" | <code>discovery.list_methods</code>
|-
! Params [0] (<code>service_name</code>)
| <code>string</code>
| <code>firstbits[firstbits.com]</code>
| The service name (eventually including a service vendor in square brackets).
|-
! <ins>[Response]</ins>
! Type
! Example
! Description
|-
! Result
| <code>array</code>
| <code>["create","resolve"]</code>
| The methods of the requested service.
|}
==Method: List Params==
* Method name: <code>list_params</code>
{|
! <ins>[Request]</ins>
! Type
! Example
! Description
|-
! Method
| colspan="3" | <code>discovery.list_params</code>
|-
! Params [0] (<code>method</code>)
| <code>string</code>
| <code>firstbits[firstbits.com].create</code>
| The full method name, including the service name (and possibly the service vendor in square brackets).
|-
! <ins>[Response]</ins>
! Type
! Example
! Description
|-
! Result
| <code>array</code>
| <code>["Some method help text",[ ["address","string","String containing full Bitcoin address."] ]].</code>
| The parameters of the requested method.
|}