1
0
Fork 0
mirror of https://github.com/bitcoin/bips.git synced 2025-03-03 18:57:18 +01:00

Add remaining Stratum services

This commit is contained in:
Ben van Hartingsveldt 2024-11-27 22:31:02 +01:00
parent db5ed7530c
commit 996724fe79
No known key found for this signature in database
GPG key ID: 261AA214130CE7AB
6 changed files with 42 additions and 177 deletions

View file

@ -137,14 +137,18 @@ On top of Stratum, some services are defined. They are listed below, grouped by
* [[bip-0040/service-discovery.mediawiki|Discovery]]
* [[bip-0040/service-example.mediawiki|Example]]
* [[bip-0040/service-example.pubsub.mediawiki|Example Publish-Subscribe]]
* [[bip-0040/service-server.mediawiki|Server]]
* [[bip-0040/service-server.peers.mediawiki|Server Peers]]
===Vendor: Electrum===
* [[bip-0040/service-blockchain.mediawiki|Blockchain]]
* [[bip-0040/service-blockchain.address.mediawiki|Blockchain Address]]
* [[bip-0040/service-blockchain.block.mediawiki|Blockchain Block]]
* [[bip-0040/service-blockchain.headers.mediawiki|Blockchain Headers]]
* [[bip-0040/service-blockchain.numblocks.mediawiki|Blockchain Number of Blocks]]
* [[bip-0040/service-blockchain.transaction.mediawiki|Blockchain Transaction]]
* [[bip-0040/service-node.mediawiki|Node]]
* [[bip-0040/service-wallet.mediawiki|Wallet]]
* [[bip-0040/service-blockchain.utxo.mediawiki|Blockchain Unspent Transaction Output]]
===Vendor: blockchain.info===

View file

@ -0,0 +1,8 @@
=Service: Blockchain Headers=
* Service type: <code>blockchain.headers</code>
* Service vendor: <code>Electrum</code>
==Method: Subscribe==
* Method name: <code>subscribe</code>

View file

@ -0,0 +1,12 @@
=Service: Blockchain=
* Service type: <code>blockchain</code>
* Service vendor: <code>Electrum</code>
==Method: Estimate Fee==
* Method name: <code>estimatefee</code>
==Method: Relay Fee==
* Method name: <code>relayfee</code>

View file

@ -0,0 +1,8 @@
=Service: Blockchain Number of Blocks=
* Service type: <code>blockchain.numblocks</code>
* Service vendor: <code>Electrum</code>
==Method: Subscribe==
* Method name: <code>subscribe</code>

View file

@ -0,0 +1,8 @@
=Service: Blockchain Unspent Transaction Output=
* Service type: <code>blockchain.utxo</code>
* Service vendor: <code>Electrum</code>
==Method: Get Address==
* Method name: <code>get_address</code>

View file

@ -1,175 +0,0 @@
=Service: Wallet=
<span style="color:red;">This service has never been properly defined. It is therefore not standardized and may be removed.</span>
* Service type: <code>wallet</code>
* Service vendor: <code>Electrum</code>
==Method: Import Seed==
* Method name: <code>import_seed</code>
{|
! <ins>[Request]</ins>
! Type
! Example
! Description
|-
! Method
| colspan="3" | <code>wallet.import_seed</code>
|-
! Params [0] (<code>seed</code>)
| <code>string</code>
| <code>update stomach couch actress cart dose coral slice frozen settle alarm boost</code>
| The seed.
|-
! <ins>[Response]</ins>
! Type
! Example
! Description
|-
! Result
| <code>boolean</code>
| <code>true</code>
| Unknown
|}
==Method: Add Public Key==
* Method name: <code>add_pubkey</code>
{|
! <ins>[Request]</ins>
! Type
! Example
! Description
|-
! Method
| colspan="3" | <code>wallet.add_pubkey</code>
|-
! Params [0] (<code>pubkey</code>)
| <code>string</code>
| Unknown
| The public key.
|-
! <ins>[Response]</ins>
! Type
! Example
! Description
|-
! Result
| <code>boolean</code>
| <code>true</code>
| Unknown
|}
==Method: Remove Public Key==
* Method name: <code>remove_pubkey</code>
{|
! <ins>[Request]</ins>
! Type
! Example
! Description
|-
! Method
| colspan="3" | <code>wallet.remove_pubkey</code>
|-
! Params [0] (<code>pubkey</code>)
| <code>string</code>
| Unknown
| The public key.
|-
! <ins>[Response]</ins>
! Type
! Example
! Description
|-
! Result
| <code>boolean</code>
| <code>true</code>
| Unknown
|}
==Method: Create transaction==
* Method name: <code>create_transaction</code>
{|
! <ins>[Request]</ins>
! Type
! Example
! Description
|-
! Method
| colspan="3" | <code>wallet.create_transaction</code>
|-
! Params [0] (<code>address</code>)
| <code>string</code>
| <code>1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L</code>
| The address.
|-
! Params [1] (<code>amount</code>)
| Unknown
| Unknown
| The amount.
|-
! <ins>[Response]</ins>
! Type
! Example
! Description
|-
! Result
| <code>string</code>
| <code></code>
| Unknown
|}
==Method: Save==
* Method name: <code>save</code>
{|
! <ins>[Request]</ins>
! Type
! Example
! Description
|-
! Method
| colspan="3" | <code>wallet.save</code>
|-
! <ins>[Response]</ins>
! Type
! Example
! Description
|-
! Result
| <code>boolean</code>
| <code>true</code>
| Unknown
|}
==Method: Load==
* Method name: <code>load</code>
{|
! <ins>[Request]</ins>
! Type
! Example
! Description
|-
! Method
| colspan="3" | <code>wallet.load</code>
|-
! <ins>[Response]</ins>
! Type
! Example
! Description
|-
! Result
| <code>boolean</code>
| <code>true</code>
| Unknown
|}