mirror of
https://github.com/bitcoin/bips.git
synced 2025-03-04 11:08:05 +01:00
Improve commands
This commit is contained in:
parent
805559f695
commit
ec52ae1321
1 changed files with 81 additions and 12 deletions
|
@ -133,16 +133,28 @@ Stratum over a WebSocket connection with SSL/TLS. Just the same as normal WebSoc
|
|||
* Method name: <code>get_history</code>
|
||||
|
||||
{|
|
||||
!
|
||||
! Name
|
||||
! Value
|
||||
! <ins>[Request]</ins>
|
||||
! Type
|
||||
! Example
|
||||
! Description
|
||||
|-
|
||||
! Method
|
||||
| colspan="2" | <code>blockchain.address.get_history</code>
|
||||
| colspan="3" | <code>blockchain.address.get_history</code>
|
||||
|-
|
||||
! Param [0]
|
||||
| <code></code>
|
||||
| <code></code>
|
||||
| <code>string</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====
|
||||
|
@ -150,16 +162,73 @@ Stratum over a WebSocket connection with SSL/TLS. Just the same as normal WebSoc
|
|||
* Method name: <code>subscribe</code>
|
||||
|
||||
{|
|
||||
!
|
||||
! Name
|
||||
! Value
|
||||
! <ins>[Request]</ins>
|
||||
! Type
|
||||
! Example
|
||||
! Description
|
||||
|-
|
||||
! Method
|
||||
| colspan="2" | <code>blockchain.address.subscribe</code>
|
||||
| colspan="3" | <code>blockchain.address.subscribe</code>
|
||||
|-
|
||||
! Param [0]
|
||||
| <code></code>
|
||||
| <code></code>
|
||||
| <code>string</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==
|
||||
|
|
Loading…
Add table
Reference in a new issue