ABCDEFGHIJKLMNOPQRST
1
2
Blockchain server API
3
MethodDescriptionRequest exampleResult exampleExceptions
4
blockchain.block.subscribe()Start receiving new blocks from P2P network
5
6
blockchain.block.unsubscribe()Stop receiving ^
7
8
blockchain.block.broadcast(blockdata)Broadcast new block to P2P network
9
10
blockchain.address.subscribe(address)Start receiving notifications about given Bitcoin address
11
blockchain.address.unsubscribe(address)Stop receiving ^
12
blockchain.address.get_history(address)Get transaction history of given address
13
blockchain.address.get_balance(address)Get current balance of given address
14
blockchain.transaction.broadcast(txdata)Broadcast new transaction to P2P network
15
blockchain.transaction.get(txhash)Get informaton for given transaction hash
16
blockchain.transactions.subscribe()Start receiving (unconfirmed) transactions from P2P network
17
blockchain.transactions.unsubscribe()Stop receiving ^
18
19
20
21
22
23
Not a part of blockchain service, was server.bannernode.get_banner()"Welcome to ecdsa.org, this is public Electrum server."
24
was server.peersnode.get_peers()Part of Stratum core services.[{"hostname": "stratum.bitcoin.cz", "trusted": True, "weight": 0, "transports": [{"type": "http", "proto": "ipv4", address: "192.168.1.1", "port": 80}, {"type": "http", "proto": "onion", "address": "56ufgh56ygh5.onion", "port": 80}]}]
25
26
Questionable:
27
blockchain.blocknum.subscribe
28
blockchain.blocknum.unsubscribe
29
blockchain.transactions.guess_fee()
30
31
32
33
34
Blockchain client API
35
was client.versionnode.version
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100