1
0
Fork 0
mirror of https://github.com/bitcoin/bips.git synced 2025-03-04 11:08:05 +01:00
bitcoin-bips/bip-0040/service-node.mediawiki
2024-05-12 23:26:08 +02:00

76 lines
No EOL
1.1 KiB
Text

=Service: Node=
* Service type: <code>node</code>
* Service vendor: <code>Electrum</code>
==Method: Get Banner==
* Method name: <code>get_banner</code>
{|
! <ins>[Request]</ins>
! Type
! Example
! Description
|-
! Method
| colspan="3" | <code>node.get_banner</code>
|-
! <ins>[Response]</ins>
! Type
! Example
! Description
|-
! Result
| <code>string</code>
| <code>Dummy banner</code>
| The banner.
|}
==Method: Get Peers==
* Method name: <code>get_peers</code>
{|
! <ins>[Request]</ins>
! Type
! Example
! Description
|-
! Method
| colspan="3" | <code>node.get_peers</code>
|-
! <ins>[Response]</ins>
! Type
! Example
! Description
|-
! Result
| <code>array</code>
| <code>[ {"hostname":"","trusted":true,"weight":0,"ipv4":"1.2.3.4","ipv6":"2001:db8:85a3:8d3:1319:8a2e:370:7348"} ]</code>
| An array of peers.
|}
==Method: Stop==
* Method name: <code>stop</code>
{|
! <ins>[Request]</ins>
! Type
! Example
! Description
|-
! Method
| colspan="3" | <code>node.stop</code>
|-
! <ins>[Response]</ins>
! Type
! Example
! Description
|-
! Result
| <code>boolean</code>
| <code>true</code>
| True when the server will be stopped.
|}