forked from ruimarinho/bitcoin-core
-
Notifications
You must be signed in to change notification settings - Fork 1
/
methods.js
executable file
·189 lines (185 loc) · 6.37 KB
/
methods.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
/* eslint-disable no-inline-comments */
/**
* Module dependencies.
*/
import { map, set } from 'lodash';
/**
* Export available rpc methods.
*/
export default {
abandonTransaction: { version: '>=0.12.0' },
abortRescan: { version: '>=0.15.0' },
addMultiSigAddress: { version: '>=0.1.0' },
addNode: { version: '>=0.8.0' },
addWitnessAddress: { version: '>=0.13.0' },
backupWallet: { version: '>=0.3.12' },
bumpFee: { version: '>=0.14.0' },
clearBanned: { version: '>=0.12.0' },
combineRawTransaction: { version: '>=0.15.0' },
createMultiSig: { version: '>=0.1.0' },
createRawTransaction: { version: '>=0.7.0' },
createWitnessAddress: { version: '=0.13.0' },
decodeRawTransaction: { version: '>=0.7.0' },
decodeScript: { version: '>=0.9.0' },
disconnectNode: { version: '>=0.12.0' },
dumpPrivKey: {
obfuscate: {
response: () => '******'
},
version: '>=0.6.0'
},
dumpWallet: { version: '>=0.9.0' },
encryptWallet: {
obfuscate: {
request: {
default: params => set([...params], '[0]', '******'),
named: params => set(params, 'passphrase', '******')
}
},
version: '>=0.1.0'
},
estimateFee: { version: '>=0.10.0' },
estimatePriority: { version: '>=0.10.0 <0.15.0' },
estimateSmartFee: { version: '>=0.12.0' },
estimateSmartPriority: { version: '>=0.12.0 <0.15.0' },
fundRawTransaction: { version: '>=0.12.0' },
generate: { version: '>=0.11.0' },
generateToAddress: { version: '>=0.13.0' },
getAccount: { version: '>=0.1.0' },
getAccountAddress: { version: '>=0.3.18' },
getAddedNodeInfo: { version: '>=0.8.0' },
getAddressesByAccount: { version: '>=0.1.0' },
getBalance: { version: '>=0.3.18' },
getBestBlockHash: { version: '>=0.9.0' },
getBlock: { version: '>=0.6.0' },
getBlockCount: { version: '>=0.1.0' },
getBlockHash: { version: '>=0.6.0' },
getBlockHeader: { version: '>=0.12.0' },
getBlockTemplate: { version: '>=0.7.0' },
getBlockchainInfo: { version: '>=0.9.2' },
getChainTips: { version: '>=0.10.0' },
getChainTxStats: { version: '>=0.15.0' },
getConnectionCount: { version: '>=0.1.0' },
getDifficulty: { version: '>=0.1.0' },
getGenerate: { version: '<0.13.0' },
getHashesPerSec: { version: '<0.10.0' },
getInfo: { version: '>=0.1.0' },
getMemoryInfo: { version: '>=0.14.0' },
getMempoolAncestors: { version: '>=0.13.0' },
getMempoolDescendants: { version: '>=0.13.0' },
getMempoolEntry: { version: '>=0.13.0' },
getMempoolInfo: { version: '>=0.10.0' },
getMiningInfo: { version: '>=0.6.0' },
getNetTotals: { version: '>=0.1.0' },
getNetworkHashPs: { version: '>=0.9.0' },
getNetworkInfo: { version: '>=0.9.2' },
getNewAddress: { version: '>=0.1.0' },
getPeerInfo: { version: '>=0.7.0' },
getRawChangeAddress: { version: '>=0.9.0' },
getRawMempool: { version: '>=0.7.0' },
getRawTransaction: { version: '>=0.7.0' },
getReceivedByAccount: { version: '>=0.1.0' },
getReceivedByAddress: { version: '>=0.1.0' },
getTransaction: { version: '>=0.1.0' },
getTxOut: { version: '>=0.7.0' },
getTxOutProof: { version: '>=0.11.0' },
getTxOutSetInfo: { version: '>=0.7.0' },
getUnconfirmedBalance: { version: '>=0.9.0' },
getWalletInfo: { version: '>=0.9.2' },
getWork: { version: '<0.10.0' },
help: { version: '>=0.1.0' },
importAddress: { version: '>=0.10.0' },
importMulti: {
obfuscate: {
request: {
default: params => set(params, '[0]', map(params[0], request => set(request, 'keys', map(request.keys, () => '******')))),
named: params => set(params, 'requests', map(params.requests, request => set(request, 'keys', map(request.keys, () => '******'))))
}
},
version: '>=0.14.0'
},
importPrivKey: {
obfuscate: {
request: {
default: () => ['******'],
named: params => set(params, 'privkey', '******')
}
},
version: '>=0.6.0'
},
importPrunedFunds: { version: '>=0.13.0' },
importPubKey: { version: '>=0.12.0' },
importWallet: { version: '>=0.9.0' },
keypoolRefill: { version: '>=0.1.0' },
listAccounts: { version: '>=0.1.0' },
listAddressGroupings: { version: '>=0.7.0' },
listBanned: { version: '>=0.12.0' },
listLockUnspent: { version: '>=0.8.0' },
listReceivedByAccount: { version: '>=0.1.0' },
listReceivedByAddress: { version: '>=0.1.0' },
listSinceBlock: { version: '>=0.5.0' },
listTransactions: { version: '>=0.3.18' },
listUnspent: { version: '>=0.7.0' },
listWallets: { version: '>=0.15.0' },
lockUnspent: { version: '>=0.8.0' },
move: { version: '>=0.3.18' },
ping: { version: '>=0.9.0' },
preciousBlock: { version: '>=0.14.0' },
prioritiseTransaction: { version: '>=0.10.0' },
pruneBlockchain: { version: '>=0.14.0' },
removePrunedFunds: { version: '>=0.13.0' },
sendFrom: { version: '>=0.3.18' },
sendMany: { version: '>=0.3.21' },
sendRawTransaction: { version: '>=0.7.0' },
sendToAddress: { version: '>=0.1.0' },
setAccount: { version: '>=0.1.0' },
setBan: { version: '>=0.12.0' },
setGenerate: { version: '<0.13.0' },
setNetworkActive: { version: '>=0.14.0' },
setTxFee: { version: '>=0.3.22' },
signMessage: { version: '>=0.5.0' },
signMessageWithPrivKey: {
obfuscate: {
request: {
default: params => set([...params], '[0]', '******'),
named: params => set(params, 'privkey', '******')
}
},
version: '>=0.13.0'
},
signRawTransaction: {
obfuscate: {
request: {
default: params => set([...params], '[2]', map(params[2], () => '******')),
named: params => set(params, 'privkeys', map(params.privkeys || [], () => '******'))
}
},
version: '>=0.7.0'
},
stop: { version: '>=0.1.0' },
submitBlock: { version: '>=0.7.0' },
upTime: { version: '>=0.15.0' },
validateAddress: { version: '>=0.3.14' },
verifyChain: { version: '>=0.9.0' },
verifyMessage: { version: '>=0.5.0' },
verifyTxOutProof: { version: '>0.11.0' },
walletLock: { version: '>=0.1.0' },
walletPassphrase: {
obfuscate: {
request: {
default: params => set([...params], '[0]', '******'),
named: params => set(params, 'passphrase', '******')
}
},
version: '>=0.1.0'
},
walletPassphraseChange: {
obfuscate: {
request: {
default: params => set(set([...params], '[0]', '******'), '[1]', '******'),
named: params => set(set(params, 'oldpassphrase', '******'), 'newpassphrase', '******')
}
},
version: '>=0.1.0'
}
};