From ec52ae132126fe6ba8b33d94cf3f835dd1964084 Mon Sep 17 00:00:00 2001 From: Ben Date: Thu, 21 Mar 2024 22:35:25 +0100 Subject: [PATCH] Improve commands --- bip-0040.mediawiki | 93 ++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 81 insertions(+), 12 deletions(-) diff --git a/bip-0040.mediawiki b/bip-0040.mediawiki index 0acd3be4..f58c3222 100644 --- a/bip-0040.mediawiki +++ b/bip-0040.mediawiki @@ -133,16 +133,28 @@ Stratum over a WebSocket connection with SSL/TLS. Just the same as normal WebSoc * Method name: get_history {| -! -! Name -! Value +! [Request] +! Type +! Example +! Description |- ! Method -| colspan="2" | blockchain.address.get_history +| colspan="3" | blockchain.address.get_history |- ! Param [0] -| -| +| string +| 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L +| The address to get the history of. +|- +! [Response] +! Type +! Example +! Description +|- +! Result +| array +| +| 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: subscribe {| -! -! Name -! Value +! [Request] +! Type +! Example +! Description |- ! Method -| colspan="2" | blockchain.address.subscribe +| colspan="3" | blockchain.address.subscribe |- ! Param [0] -| -| +| string +| 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L +| The address to subscribe to. +|} + +===Service: Client=== + +* Service name: client + +====Method: Version==== + +Send the version of the client to the server. This command doesn't expect a response. + +* Method name: version + +{| +! [Request] +! Type +! Example +! Description +|- +! Method +| colspan="3" | client.version +|- +! Params [0] +| string +| 0.41 +| The client version. +|} + +===Service: Server=== + +* Service name: server + +====Method: Banner==== + +A command to get the server banner. + +* Method name: banner + +{| +! [Request] +! Type +! Example +! Description +|- +! Method +| colspan="3" | server.banner +|- +! [Response] +! Type +! Example +! Description +|- +! Result +| string +| Welcome to Electrum! +| The server banner. |} ==References==