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

Improve commands

This commit is contained in:
Ben 2024-03-21 22:35:25 +01:00
parent 805559f695
commit ec52ae1321

View file

@ -133,16 +133,28 @@ Stratum over a WebSocket connection with SSL/TLS. Just the same as normal WebSoc
* Method name: <code>get_history</code> * Method name: <code>get_history</code>
{| {|
! ! <ins>[Request]</ins>
! Name ! Type
! Value ! Example
! Description
|- |-
! Method ! Method
| colspan="2" | <code>blockchain.address.get_history</code> | colspan="3" | <code>blockchain.address.get_history</code>
|- |-
! Param [0] ! Param [0]
| <code></code> | <code>string</code>
| <code></code> | <code>1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L</code>
| The address to get the history of.
|-
! <ins>[Response]</ins>
! Type
! Example
! Description
|-
! Result
| <code>array</code>
|
| The history of the a blockchain address.
|} |}
====Method: Subscribe==== ====Method: Subscribe====
@ -150,16 +162,73 @@ Stratum over a WebSocket connection with SSL/TLS. Just the same as normal WebSoc
* Method name: <code>subscribe</code> * Method name: <code>subscribe</code>
{| {|
! ! <ins>[Request]</ins>
! Name ! Type
! Value ! Example
! Description
|- |-
! Method ! Method
| colspan="2" | <code>blockchain.address.subscribe</code> | colspan="3" | <code>blockchain.address.subscribe</code>
|- |-
! Param [0] ! Param [0]
| <code></code> | <code>string</code>
| <code></code> | <code>1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L</code>
| The address to subscribe to.
|}
===Service: Client===
* Service name: <code>client</code>
====Method: Version====
Send the version of the client to the server. This command doesn't expect a response.
* Method name: <code>version</code>
{|
! <ins>[Request]</ins>
! Type
! Example
! Description
|-
! Method
| colspan="3" | <code>client.version</code>
|-
! Params [0]
| <code>string</code>
| <code>0.41</code>
| The client version.
|}
===Service: Server===
* Service name: <code>server</code>
====Method: Banner====
A command to get the server banner.
* Method name: <code>banner</code>
{|
! <ins>[Request]</ins>
! Type
! Example
! Description
|-
! Method
| colspan="3" | <code>server.banner</code>
|-
! <ins>[Response]</ins>
! Type
! Example
! Description
|-
! Result
| <code>string</code>
| <code>Welcome to Electrum!</code>
| The server banner.
|} |}
==References== ==References==