@neuraiproject/neurai-rpc 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/index.cjs +192 -172
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +192 -172
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -1
- package/docs.json +1 -0
- package/docs.ts +1231 -517
- package/package.json +1 -1
- package/test-getpubkey.js +149 -0
- package/neurai_methods.md +0 -4580
package/docs.ts
CHANGED
|
@@ -1,179 +1,187 @@
|
|
|
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
|
-
|
|
1
|
+
|
|
2
|
+
interface IMethods{
|
|
3
|
+
abandontransaction: string;
|
|
4
|
+
abortrescan: string;
|
|
5
|
+
addmultisigaddress: string;
|
|
6
|
+
addnode: string;
|
|
7
|
+
addtagtoaddress: string;
|
|
8
|
+
addwitnessaddress: string;
|
|
9
|
+
backupwallet: string;
|
|
10
|
+
bumpfee: string;
|
|
11
|
+
cancelsnapshotrequest: string;
|
|
12
|
+
checkaddressrestriction: string;
|
|
13
|
+
checkaddresstag: string;
|
|
14
|
+
checkglobalrestriction: string;
|
|
15
|
+
clearbanned: string;
|
|
16
|
+
clearmempool: string;
|
|
17
|
+
clearmessages: string;
|
|
18
|
+
combinerawtransaction: string;
|
|
19
|
+
createmultisig: string;
|
|
20
|
+
createrawtransaction: string;
|
|
21
|
+
decodeblock: string;
|
|
22
|
+
decoderawtransaction: string;
|
|
23
|
+
decodescript: string;
|
|
24
|
+
disconnectnode: string;
|
|
25
|
+
distributereward: string;
|
|
26
|
+
dumpprivkey: string;
|
|
27
|
+
dumpwallet: string;
|
|
28
|
+
encryptwallet: string;
|
|
29
|
+
estimatefee: string;
|
|
30
|
+
estimatesmartfee: string;
|
|
31
|
+
freezeaddress: string;
|
|
32
|
+
freezerestrictedasset: string;
|
|
33
|
+
fundrawtransaction: string;
|
|
34
|
+
generate: string;
|
|
35
|
+
generatetoaddress: string;
|
|
36
|
+
getaccount: string;
|
|
37
|
+
getaccountaddress: string;
|
|
38
|
+
getaddednodeinfo: string;
|
|
39
|
+
getaddressbalance: string;
|
|
40
|
+
getaddressdeltas: string;
|
|
41
|
+
getaddressesbyaccount: string;
|
|
42
|
+
getaddressmempool: string;
|
|
43
|
+
getaddresstxids: string;
|
|
44
|
+
getaddressutxos: string;
|
|
45
|
+
getassetdata: string;
|
|
46
|
+
getbalance: string;
|
|
47
|
+
getbestblockhash: string;
|
|
48
|
+
getblock: string;
|
|
49
|
+
getblockchaininfo: string;
|
|
50
|
+
getblockcount: string;
|
|
51
|
+
getblockhash: string;
|
|
52
|
+
getblockhashes: string;
|
|
53
|
+
getblockheader: string;
|
|
54
|
+
getblocktemplate: string;
|
|
55
|
+
getcacheinfo: string;
|
|
56
|
+
getchaintips: string;
|
|
57
|
+
getchaintxstats: string;
|
|
58
|
+
getconnectioncount: string;
|
|
59
|
+
getdifficulty: string;
|
|
60
|
+
getdistributestatus: string;
|
|
61
|
+
getgenerate: string;
|
|
62
|
+
getinfo: string;
|
|
63
|
+
getkawpowhash: string;
|
|
64
|
+
getmasterkeyinfo: string;
|
|
65
|
+
getmemoryinfo: string;
|
|
66
|
+
getmempoolancestors: string;
|
|
67
|
+
getmempooldescendants: string;
|
|
68
|
+
getmempoolentry: string;
|
|
69
|
+
getmempoolinfo: string;
|
|
70
|
+
getmininginfo: string;
|
|
71
|
+
getmywords: string;
|
|
72
|
+
getnettotals: string;
|
|
73
|
+
getnetworkhashps: string;
|
|
74
|
+
getnetworkinfo: string;
|
|
75
|
+
getnewaddress: string;
|
|
76
|
+
getpeerinfo: string;
|
|
77
|
+
getpubkey: string;
|
|
78
|
+
getrawchangeaddress: string;
|
|
79
|
+
getrawmempool: string;
|
|
80
|
+
getrawtransaction: string;
|
|
81
|
+
getreceivedbyaccount: string;
|
|
82
|
+
getreceivedbyaddress: string;
|
|
83
|
+
getrpcinfo: string;
|
|
84
|
+
getsnapshot: string;
|
|
85
|
+
getsnapshotrequest: string;
|
|
86
|
+
getspentinfo: string;
|
|
87
|
+
gettransaction: string;
|
|
88
|
+
gettxout: string;
|
|
89
|
+
gettxoutproof: string;
|
|
90
|
+
gettxoutsetinfo: string;
|
|
91
|
+
getunconfirmedbalance: string;
|
|
92
|
+
getverifierstring: string;
|
|
93
|
+
getwalletinfo: string;
|
|
94
|
+
help: string;
|
|
95
|
+
importaddress: string;
|
|
96
|
+
importmulti: string;
|
|
97
|
+
importprivkey: string;
|
|
98
|
+
importprunedfunds: string;
|
|
99
|
+
importpubkey: string;
|
|
100
|
+
importwallet: string;
|
|
101
|
+
issue: string;
|
|
102
|
+
issuequalifierasset: string;
|
|
103
|
+
issuerestrictedasset: string;
|
|
104
|
+
issueunique: string;
|
|
105
|
+
isvalidverifierstring: string;
|
|
106
|
+
keypoolrefill: string;
|
|
107
|
+
listaccounts: string;
|
|
108
|
+
listaddressesbyasset: string;
|
|
109
|
+
listaddressesfortag: string;
|
|
110
|
+
listaddressgroupings: string;
|
|
111
|
+
listaddressrestrictions: string;
|
|
112
|
+
listassetbalancesbyaddress: string;
|
|
113
|
+
listassets: string;
|
|
114
|
+
listbanned: string;
|
|
115
|
+
listglobalrestrictions: string;
|
|
116
|
+
listlockunspent: string;
|
|
117
|
+
listmyassets: string;
|
|
118
|
+
listreceivedbyaccount: string;
|
|
119
|
+
listreceivedbyaddress: string;
|
|
120
|
+
listsinceblock: string;
|
|
121
|
+
listsnapshotrequests: string;
|
|
122
|
+
listtagsforaddress: string;
|
|
123
|
+
listtransactions: string;
|
|
124
|
+
listunspent: string;
|
|
125
|
+
listwallets: string;
|
|
126
|
+
lockunspent: string;
|
|
127
|
+
move: string;
|
|
128
|
+
ping: string;
|
|
129
|
+
pprpcsb: string;
|
|
130
|
+
preciousblock: string;
|
|
131
|
+
prioritisetransaction: string;
|
|
132
|
+
pruneblockchain: string;
|
|
133
|
+
purgesnapshot: string;
|
|
134
|
+
reissue: string;
|
|
135
|
+
reissuerestrictedasset: string;
|
|
136
|
+
removeprunedfunds: string;
|
|
137
|
+
removetagfromaddress: string;
|
|
138
|
+
requestsnapshot: string;
|
|
139
|
+
rescanblockchain: string;
|
|
140
|
+
savemempool: string;
|
|
141
|
+
sendfrom: string;
|
|
142
|
+
sendfromaddress: string;
|
|
143
|
+
sendmany: string;
|
|
144
|
+
sendmessage: string;
|
|
145
|
+
sendrawtransaction: string;
|
|
146
|
+
sendtoaddress: string;
|
|
147
|
+
setaccount: string;
|
|
148
|
+
setban: string;
|
|
149
|
+
setgenerate: string;
|
|
150
|
+
setnetworkactive: string;
|
|
151
|
+
settxfee: string;
|
|
152
|
+
signmessage: string;
|
|
153
|
+
signmessagewithprivkey: string;
|
|
154
|
+
signrawtransaction: string;
|
|
155
|
+
stop: string;
|
|
156
|
+
submitblock: string;
|
|
157
|
+
subscribetochannel: string;
|
|
158
|
+
testmempoolaccept: string;
|
|
159
|
+
transfer: string;
|
|
160
|
+
transferfromaddress: string;
|
|
161
|
+
transferfromaddresses: string;
|
|
162
|
+
transferqualifier: string;
|
|
163
|
+
unfreezeaddress: string;
|
|
164
|
+
unfreezerestrictedasset: string;
|
|
165
|
+
unsubscribefromchannel: string;
|
|
166
|
+
uptime: string;
|
|
167
|
+
validateaddress: string;
|
|
168
|
+
verifychain: string;
|
|
169
|
+
verifymessage: string;
|
|
170
|
+
verifytxoutproof: string;
|
|
171
|
+
viewallmessagechannels: string;
|
|
172
|
+
viewallmessages: string;
|
|
173
|
+
viewmyrestrictedaddresses: string;
|
|
174
|
+
viewmytaggedaddresses: string;
|
|
173
175
|
}
|
|
174
176
|
|
|
175
|
-
export const methods:
|
|
176
|
-
|
|
177
|
+
export const methods:IMethods ={
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
/** abandontransaction "txid"
|
|
177
185
|
|
|
178
186
|
Mark in-wallet transaction <txid> as abandoned
|
|
179
187
|
This will mark this transaction and all its in-wallet descendants as abandoned which will allow
|
|
@@ -190,9 +198,13 @@ Examples:
|
|
|
190
198
|
> neurai-cli abandontransaction "1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"
|
|
191
199
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "abandontransaction", "params": ["1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
192
200
|
**/
|
|
193
|
-
|
|
201
|
+
abandontransaction:'abandontransaction',
|
|
202
|
+
|
|
194
203
|
|
|
195
|
-
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
/** abortrescan
|
|
196
208
|
|
|
197
209
|
Stops current wallet rescan triggered e.g. by an importprivkey call.
|
|
198
210
|
|
|
@@ -207,9 +219,13 @@ Abort the running wallet rescan
|
|
|
207
219
|
As a JSON-RPC call
|
|
208
220
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "abortrescan", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
209
221
|
**/
|
|
210
|
-
|
|
222
|
+
abortrescan:'abortrescan',
|
|
223
|
+
|
|
211
224
|
|
|
212
|
-
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
/** addmultisigaddress nrequired ["key",...] ( "account" )
|
|
213
229
|
|
|
214
230
|
Add a nrequired-to-sign multisignature address to the wallet.
|
|
215
231
|
Each key is a Neurai address or hex-encoded public key.
|
|
@@ -235,9 +251,13 @@ Add a multisig address from 2 addresses
|
|
|
235
251
|
As json rpc call
|
|
236
252
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "addmultisigaddress", "params": [2, "[\"16sSauSf5pF2UkUwvKGq4qjNRzBZYqgEL5\",\"171sgjn4YtPu27adkKGrdDwzRTxnRkBfKV\"]"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
237
253
|
**/
|
|
238
|
-
|
|
254
|
+
addmultisigaddress:'addmultisigaddress',
|
|
255
|
+
|
|
239
256
|
|
|
240
|
-
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
/** addnode "node" "add|remove|onetry"
|
|
241
261
|
|
|
242
262
|
Attempts to add or remove a node from the addnode list.
|
|
243
263
|
Or try a connection to a node once.
|
|
@@ -252,9 +272,13 @@ Examples:
|
|
|
252
272
|
> neurai-cli addnode "192.168.0.6:8767" "onetry"
|
|
253
273
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "addnode", "params": ["192.168.0.6:8767", "onetry"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
254
274
|
**/
|
|
255
|
-
|
|
275
|
+
addnode:'addnode',
|
|
276
|
+
|
|
256
277
|
|
|
257
|
-
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
/** addtagtoaddress tag_name to_address (change_address) (asset_data)
|
|
258
282
|
|
|
259
283
|
Assign a tag to a address
|
|
260
284
|
|
|
@@ -273,9 +297,13 @@ Examples:
|
|
|
273
297
|
> neurai-cli addtagtoaddress "#TAG" "to_address" "change_address"
|
|
274
298
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "addtagtoaddress", "params": ["#TAG" "to_address" "change_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
275
299
|
**/
|
|
276
|
-
|
|
300
|
+
addtagtoaddress:'addtagtoaddress',
|
|
301
|
+
|
|
277
302
|
|
|
278
|
-
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
/** addwitnessaddress "address"
|
|
279
307
|
|
|
280
308
|
Add a witness address for a script (with pubkey or redeemscript known).
|
|
281
309
|
It returns the witness script.
|
|
@@ -287,9 +315,13 @@ Result:
|
|
|
287
315
|
"witnessaddress", (string) The value of the new address (P2SH of witness script).
|
|
288
316
|
}
|
|
289
317
|
**/
|
|
290
|
-
|
|
318
|
+
addwitnessaddress:'addwitnessaddress',
|
|
319
|
+
|
|
291
320
|
|
|
292
|
-
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
/** backupwallet "destination"
|
|
293
325
|
|
|
294
326
|
Safely copies current wallet file to destination, which can be a directory or a path with filename.
|
|
295
327
|
|
|
@@ -300,12 +332,20 @@ Examples:
|
|
|
300
332
|
> neurai-cli backupwallet "backup.dat"
|
|
301
333
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "backupwallet", "params": ["backup.dat"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
302
334
|
**/
|
|
303
|
-
|
|
335
|
+
backupwallet:'backupwallet',
|
|
336
|
+
|
|
304
337
|
|
|
305
|
-
/** bumpfee has been deprecated on the XNA Wallet.**/
|
|
306
|
-
bumpfee: "bumpfee",
|
|
307
338
|
|
|
308
|
-
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
/** bumpfee has been deprecated on the XNA Wallet.**/
|
|
342
|
+
bumpfee:'bumpfee',
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
/** cancelsnapshotrequest "asset_name" block_height
|
|
309
349
|
|
|
310
350
|
Cancels the specified snapshot request.
|
|
311
351
|
|
|
@@ -322,9 +362,13 @@ Examples:
|
|
|
322
362
|
> neurai-cli cancelsnapshotrequest "TRONCO" 12345
|
|
323
363
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "cancelsnapshotrequest", "params": ["PHATSTACKS" 34987] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
324
364
|
**/
|
|
325
|
-
|
|
365
|
+
cancelsnapshotrequest:'cancelsnapshotrequest',
|
|
366
|
+
|
|
326
367
|
|
|
327
|
-
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
/** checkaddressrestriction address restricted_name
|
|
328
372
|
|
|
329
373
|
Checks to see if an address has been frozen by the given restricted asset
|
|
330
374
|
|
|
@@ -339,9 +383,13 @@ Examples:
|
|
|
339
383
|
> neurai-cli checkaddressrestriction "address" "restricted_name"
|
|
340
384
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "checkaddressrestriction", "params": ["address" "restricted_name"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
341
385
|
**/
|
|
342
|
-
|
|
386
|
+
checkaddressrestriction:'checkaddressrestriction',
|
|
387
|
+
|
|
343
388
|
|
|
344
|
-
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
/** checkaddresstag address tag_name
|
|
345
393
|
|
|
346
394
|
Checks to see if an address has the given tag
|
|
347
395
|
|
|
@@ -356,9 +404,13 @@ Examples:
|
|
|
356
404
|
> neurai-cli checkaddresstag "address" "tag_name"
|
|
357
405
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "checkaddresstag", "params": ["address" "tag_name"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
358
406
|
**/
|
|
359
|
-
|
|
407
|
+
checkaddresstag:'checkaddresstag',
|
|
408
|
+
|
|
360
409
|
|
|
361
|
-
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
/** checkglobalrestriction restricted_name
|
|
362
414
|
|
|
363
415
|
Checks to see if a restricted asset is globally frozen
|
|
364
416
|
|
|
@@ -372,9 +424,13 @@ Examples:
|
|
|
372
424
|
> neurai-cli checkglobalrestriction "restricted_name"
|
|
373
425
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "checkglobalrestriction", "params": ["restricted_name"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
374
426
|
**/
|
|
375
|
-
|
|
427
|
+
checkglobalrestriction:'checkglobalrestriction',
|
|
428
|
+
|
|
376
429
|
|
|
377
|
-
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
/** clearbanned
|
|
378
434
|
|
|
379
435
|
Clear all banned IPs.
|
|
380
436
|
|
|
@@ -382,9 +438,13 @@ Examples:
|
|
|
382
438
|
> neurai-cli clearbanned
|
|
383
439
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearbanned", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
384
440
|
**/
|
|
385
|
-
|
|
441
|
+
clearbanned:'clearbanned',
|
|
442
|
+
|
|
386
443
|
|
|
387
|
-
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
/** clearmempool
|
|
388
448
|
|
|
389
449
|
Removes all transaction from the mempool
|
|
390
450
|
|
|
@@ -392,9 +452,13 @@ Examples:
|
|
|
392
452
|
> neurai-cli clearmempool
|
|
393
453
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearmempool", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
394
454
|
**/
|
|
395
|
-
|
|
455
|
+
clearmempool:'clearmempool',
|
|
456
|
+
|
|
396
457
|
|
|
397
|
-
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
/** clearmessages
|
|
398
462
|
|
|
399
463
|
Delete current database of messages
|
|
400
464
|
|
|
@@ -406,9 +470,13 @@ Examples:
|
|
|
406
470
|
> neurai-cli clearmessages
|
|
407
471
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearmessages", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
408
472
|
**/
|
|
409
|
-
|
|
473
|
+
clearmessages:'clearmessages',
|
|
474
|
+
|
|
410
475
|
|
|
411
|
-
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
/** combinerawtransaction ["hexstring",...]
|
|
412
480
|
|
|
413
481
|
Combine multiple partially signed transactions into one transaction.
|
|
414
482
|
The combined transaction may be another partially signed transaction or a
|
|
@@ -426,9 +494,13 @@ Result:
|
|
|
426
494
|
Examples:
|
|
427
495
|
> neurai-cli combinerawtransaction ["myhex1", "myhex2", "myhex3"]
|
|
428
496
|
**/
|
|
429
|
-
|
|
497
|
+
combinerawtransaction:'combinerawtransaction',
|
|
498
|
+
|
|
430
499
|
|
|
431
|
-
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
/** createmultisig nrequired ["key",...]
|
|
432
504
|
|
|
433
505
|
Creates a multi-signature address with n signature of m keys required.
|
|
434
506
|
It returns a json object with the address and redeemScript.
|
|
@@ -455,9 +527,13 @@ Create a multisig address from 2 addresses
|
|
|
455
527
|
As a json rpc call
|
|
456
528
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "createmultisig", "params": [2, "[\"16sSauSf5pF2UkUwvKGq4qjNRzBZYqgEL5\",\"171sgjn4YtPu27adkKGrdDwzRTxnRkBfKV\"]"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
457
529
|
**/
|
|
458
|
-
|
|
530
|
+
createmultisig:'createmultisig',
|
|
531
|
+
|
|
459
532
|
|
|
460
|
-
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
/** createrawtransaction [{"txid":"id","vout":n},...] {"address":(amount or object),"data":"hex",...}
|
|
461
537
|
( locktime ) ( replaceable )
|
|
462
538
|
|
|
463
539
|
Create a transaction spending the given inputs and creating new outputs.
|
|
@@ -702,9 +778,13 @@ Examples:
|
|
|
702
778
|
> neurai-cli createrawtransaction "[{\"txid\":\"mycoin\",\"vout\":0},{\"txid\":\"myownership\",\"vout\":0}]" "{\"issuer_address\":{\"reissue\":{\"asset_name\":\"MYASSET\",\"asset_quantity\":2000000}}}"
|
|
703
779
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "createrawtransaction", "params": ["[{\"txid\":\"mycoin\",\"vout\":0}]", "{\"data\":\"00010203\"}"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
704
780
|
**/
|
|
705
|
-
|
|
781
|
+
createrawtransaction:'createrawtransaction',
|
|
782
|
+
|
|
706
783
|
|
|
707
|
-
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
/** decodeblock "blockhex"
|
|
708
788
|
|
|
709
789
|
Arguments:
|
|
710
790
|
1. "blockhex" (string, required) The block hex
|
|
@@ -732,9 +812,13 @@ Examples:
|
|
|
732
812
|
> neurai-cli decodeblock "xxxx"
|
|
733
813
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "decodeblock", "params": ["xxxx"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
734
814
|
**/
|
|
735
|
-
|
|
815
|
+
decodeblock:'decodeblock',
|
|
816
|
+
|
|
736
817
|
|
|
737
|
-
|
|
818
|
+
|
|
819
|
+
|
|
820
|
+
|
|
821
|
+
/** decoderawtransaction "hexstring"
|
|
738
822
|
|
|
739
823
|
Return a JSON object representing the serialized, hex-encoded transaction.
|
|
740
824
|
|
|
@@ -790,9 +874,13 @@ Examples:
|
|
|
790
874
|
> neurai-cli decoderawtransaction "hexstring"
|
|
791
875
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "decoderawtransaction", "params": ["hexstring"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
792
876
|
**/
|
|
793
|
-
|
|
877
|
+
decoderawtransaction:'decoderawtransaction',
|
|
878
|
+
|
|
794
879
|
|
|
795
|
-
|
|
880
|
+
|
|
881
|
+
|
|
882
|
+
|
|
883
|
+
/** decodescript "hexstring"
|
|
796
884
|
|
|
797
885
|
Decode a hex-encoded script.
|
|
798
886
|
|
|
@@ -829,9 +917,13 @@ Examples:
|
|
|
829
917
|
> neurai-cli decodescript "hexstring"
|
|
830
918
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "decodescript", "params": ["hexstring"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
831
919
|
**/
|
|
832
|
-
|
|
920
|
+
decodescript:'decodescript',
|
|
921
|
+
|
|
833
922
|
|
|
834
|
-
|
|
923
|
+
|
|
924
|
+
|
|
925
|
+
|
|
926
|
+
/** disconnectnode "[address]" [nodeid]
|
|
835
927
|
|
|
836
928
|
Immediately disconnects from the specified peer node.
|
|
837
929
|
|
|
@@ -849,9 +941,13 @@ Examples:
|
|
|
849
941
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "disconnectnode", "params": ["192.168.0.6:8767"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
850
942
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "disconnectnode", "params": ["", 1] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
851
943
|
**/
|
|
852
|
-
|
|
944
|
+
disconnectnode:'disconnectnode',
|
|
945
|
+
|
|
853
946
|
|
|
854
|
-
|
|
947
|
+
|
|
948
|
+
|
|
949
|
+
|
|
950
|
+
/** distributereward "asset_name" snapshot_height "distribution_asset_name" gross_distribution_amount ( "exception_addresses" ) ("change_address") ("dry_run")
|
|
855
951
|
|
|
856
952
|
Splits the specified amount of the distribution asset to all owners of asset_name that are not in the optional exclusion_addresses
|
|
857
953
|
|
|
@@ -887,9 +983,13 @@ Examples:
|
|
|
887
983
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "distributereward", "params": ["TRONCO" 34987 "DIVIDENDS" 100000] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
888
984
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "distributereward", "params": ["PHATSTACKS" 34987 "XNA" 100000 "mwN7xC3yomYdvJuVXkVC7ymY9wNBjWNduD,n4Rf18edydDaRBh7t6gHUbuByLbWEoWUTg"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
889
985
|
**/
|
|
890
|
-
|
|
986
|
+
distributereward:'distributereward',
|
|
987
|
+
|
|
891
988
|
|
|
892
|
-
|
|
989
|
+
|
|
990
|
+
|
|
991
|
+
|
|
992
|
+
/** dumpprivkey "address"
|
|
893
993
|
|
|
894
994
|
Reveals the private key corresponding to 'address'.
|
|
895
995
|
Then the importprivkey can be used with this output
|
|
@@ -905,9 +1005,13 @@ Examples:
|
|
|
905
1005
|
> neurai-cli importprivkey "mykey"
|
|
906
1006
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "dumpprivkey", "params": ["myaddress"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
907
1007
|
**/
|
|
908
|
-
|
|
1008
|
+
dumpprivkey:'dumpprivkey',
|
|
1009
|
+
|
|
909
1010
|
|
|
910
|
-
|
|
1011
|
+
|
|
1012
|
+
|
|
1013
|
+
|
|
1014
|
+
/** dumpwallet "filename"
|
|
911
1015
|
|
|
912
1016
|
Dumps all wallet keys in a human-readable format to a server-side file. This does not allow overwriting existing files.
|
|
913
1017
|
|
|
@@ -923,9 +1027,13 @@ Examples:
|
|
|
923
1027
|
> neurai-cli dumpwallet "test"
|
|
924
1028
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "dumpwallet", "params": ["test"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
925
1029
|
**/
|
|
926
|
-
|
|
1030
|
+
dumpwallet:'dumpwallet',
|
|
1031
|
+
|
|
927
1032
|
|
|
928
|
-
|
|
1033
|
+
|
|
1034
|
+
|
|
1035
|
+
|
|
1036
|
+
/** encryptwallet "passphrase"
|
|
929
1037
|
|
|
930
1038
|
Encrypts the wallet with 'passphrase'. This is for first time encryption.
|
|
931
1039
|
After this, any calls that interact with private keys such as sending or signing
|
|
@@ -954,9 +1062,13 @@ Now lock the wallet again by removing the passphrase
|
|
|
954
1062
|
As a json rpc call
|
|
955
1063
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "encryptwallet", "params": ["my pass phrase"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
956
1064
|
**/
|
|
957
|
-
|
|
1065
|
+
encryptwallet:'encryptwallet',
|
|
1066
|
+
|
|
958
1067
|
|
|
959
|
-
|
|
1068
|
+
|
|
1069
|
+
|
|
1070
|
+
|
|
1071
|
+
/** estimatefee nblocks
|
|
960
1072
|
|
|
961
1073
|
DEPRECATED. Please use estimatesmartfee for more intelligent estimates.
|
|
962
1074
|
Estimates the approximate fee per kilobyte needed for a transaction to begin
|
|
@@ -977,9 +1089,13 @@ a fee that is high enough to get reliably included in the next block.
|
|
|
977
1089
|
Example:
|
|
978
1090
|
> neurai-cli estimatefee 6
|
|
979
1091
|
**/
|
|
980
|
-
|
|
1092
|
+
estimatefee:'estimatefee',
|
|
1093
|
+
|
|
981
1094
|
|
|
982
|
-
|
|
1095
|
+
|
|
1096
|
+
|
|
1097
|
+
|
|
1098
|
+
/** estimatesmartfee conf_target ("estimate_mode")
|
|
983
1099
|
|
|
984
1100
|
Estimates the approximate fee per kilobyte needed for a transaction to begin
|
|
985
1101
|
confirmation within conf_target blocks if possible and return the number of blocks
|
|
@@ -1013,9 +1129,13 @@ have been observed to make an estimate for any number of blocks.
|
|
|
1013
1129
|
Example:
|
|
1014
1130
|
> neurai-cli estimatesmartfee 6
|
|
1015
1131
|
**/
|
|
1016
|
-
|
|
1132
|
+
estimatesmartfee:'estimatesmartfee',
|
|
1133
|
+
|
|
1017
1134
|
|
|
1018
|
-
|
|
1135
|
+
|
|
1136
|
+
|
|
1137
|
+
|
|
1138
|
+
/** freezeaddress asset_name address (change_address) (asset_data)
|
|
1019
1139
|
|
|
1020
1140
|
Freeze an address from transferring a restricted asset
|
|
1021
1141
|
|
|
@@ -1034,9 +1154,13 @@ Examples:
|
|
|
1034
1154
|
> neurai-cli freezeaddress "$RESTRICTED_ASSET" "address" "change_address"
|
|
1035
1155
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "freezeaddress", "params": ["$RESTRICTED_ASSET" "address" "change_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1036
1156
|
**/
|
|
1037
|
-
|
|
1157
|
+
freezeaddress:'freezeaddress',
|
|
1158
|
+
|
|
1038
1159
|
|
|
1039
|
-
|
|
1160
|
+
|
|
1161
|
+
|
|
1162
|
+
|
|
1163
|
+
/** freezerestrictedasset asset_name (change_address) (asset_data)
|
|
1040
1164
|
|
|
1041
1165
|
Freeze all trading for a specific restricted asset
|
|
1042
1166
|
|
|
@@ -1054,9 +1178,13 @@ Examples:
|
|
|
1054
1178
|
> neurai-cli freezerestrictedasset "$RESTRICTED_ASSET" "change_address"
|
|
1055
1179
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "freezerestrictedasset", "params": ["$RESTRICTED_ASSET" "change_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1056
1180
|
**/
|
|
1057
|
-
|
|
1181
|
+
freezerestrictedasset:'freezerestrictedasset',
|
|
1182
|
+
|
|
1058
1183
|
|
|
1059
|
-
|
|
1184
|
+
|
|
1185
|
+
|
|
1186
|
+
|
|
1187
|
+
/** fundrawtransaction "hexstring" ( options )
|
|
1060
1188
|
|
|
1061
1189
|
Add inputs to a transaction until it has enough in value to meet its out value.
|
|
1062
1190
|
This will not modify existing inputs, and will add at most one change output to the outputs.
|
|
@@ -1114,9 +1242,13 @@ Sign the transaction
|
|
|
1114
1242
|
Send the transaction
|
|
1115
1243
|
> neurai-cli sendrawtransaction "signedtransactionhex"
|
|
1116
1244
|
**/
|
|
1117
|
-
|
|
1245
|
+
fundrawtransaction:'fundrawtransaction',
|
|
1246
|
+
|
|
1118
1247
|
|
|
1119
|
-
|
|
1248
|
+
|
|
1249
|
+
|
|
1250
|
+
|
|
1251
|
+
/** generate nblocks ( maxtries )
|
|
1120
1252
|
|
|
1121
1253
|
Mine up to nblocks blocks immediately (before the RPC call returns) to an address in the wallet.
|
|
1122
1254
|
|
|
@@ -1132,9 +1264,13 @@ Examples:
|
|
|
1132
1264
|
Generate 11 blocks
|
|
1133
1265
|
> neurai-cli generate 11
|
|
1134
1266
|
**/
|
|
1135
|
-
|
|
1267
|
+
generate:'generate',
|
|
1268
|
+
|
|
1136
1269
|
|
|
1137
|
-
|
|
1270
|
+
|
|
1271
|
+
|
|
1272
|
+
|
|
1273
|
+
/** generatetoaddress nblocks address (maxtries)
|
|
1138
1274
|
|
|
1139
1275
|
Mine blocks immediately to a specified address (before the RPC call returns)
|
|
1140
1276
|
|
|
@@ -1151,9 +1287,13 @@ Examples:
|
|
|
1151
1287
|
Generate 11 blocks to myaddress
|
|
1152
1288
|
> neurai-cli generatetoaddress 11 "myaddress"
|
|
1153
1289
|
**/
|
|
1154
|
-
|
|
1290
|
+
generatetoaddress:'generatetoaddress',
|
|
1291
|
+
|
|
1155
1292
|
|
|
1156
|
-
|
|
1293
|
+
|
|
1294
|
+
|
|
1295
|
+
|
|
1296
|
+
/** getaccount "address"
|
|
1157
1297
|
|
|
1158
1298
|
DEPRECATED. Returns the account associated with the given address.
|
|
1159
1299
|
|
|
@@ -1167,9 +1307,13 @@ Examples:
|
|
|
1167
1307
|
> neurai-cli getaccount "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX"
|
|
1168
1308
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaccount", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1169
1309
|
**/
|
|
1170
|
-
|
|
1310
|
+
getaccount:'getaccount',
|
|
1311
|
+
|
|
1171
1312
|
|
|
1172
|
-
|
|
1313
|
+
|
|
1314
|
+
|
|
1315
|
+
|
|
1316
|
+
/** getaccountaddress "account"
|
|
1173
1317
|
|
|
1174
1318
|
DEPRECATED. Returns the current Neurai address for receiving payments to this account.
|
|
1175
1319
|
|
|
@@ -1185,9 +1329,13 @@ Examples:
|
|
|
1185
1329
|
> neurai-cli getaccountaddress "myaccount"
|
|
1186
1330
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaccountaddress", "params": ["myaccount"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1187
1331
|
**/
|
|
1188
|
-
|
|
1332
|
+
getaccountaddress:'getaccountaddress',
|
|
1333
|
+
|
|
1189
1334
|
|
|
1190
|
-
|
|
1335
|
+
|
|
1336
|
+
|
|
1337
|
+
|
|
1338
|
+
/** getaddednodeinfo ( "node" )
|
|
1191
1339
|
|
|
1192
1340
|
Returns information about the given added node, or all added nodes
|
|
1193
1341
|
(note that onetry addnodes are not listed here)
|
|
@@ -1214,9 +1362,13 @@ Examples:
|
|
|
1214
1362
|
> neurai-cli getaddednodeinfo "192.168.0.201"
|
|
1215
1363
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddednodeinfo", "params": ["192.168.0.201"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1216
1364
|
**/
|
|
1217
|
-
|
|
1365
|
+
getaddednodeinfo:'getaddednodeinfo',
|
|
1366
|
+
|
|
1218
1367
|
|
|
1219
|
-
|
|
1368
|
+
|
|
1369
|
+
|
|
1370
|
+
|
|
1371
|
+
/** getaddressbalance
|
|
1220
1372
|
|
|
1221
1373
|
Returns the balance for an address(es) (requires addressindex to be enabled).
|
|
1222
1374
|
|
|
@@ -1251,9 +1403,13 @@ Examples:
|
|
|
1251
1403
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressbalance", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1252
1404
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressbalance", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}, true] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1253
1405
|
**/
|
|
1254
|
-
|
|
1406
|
+
getaddressbalance:'getaddressbalance',
|
|
1407
|
+
|
|
1255
1408
|
|
|
1256
|
-
|
|
1409
|
+
|
|
1410
|
+
|
|
1411
|
+
|
|
1412
|
+
/** getaddressdeltas
|
|
1257
1413
|
|
|
1258
1414
|
Returns all changes for an address (requires addressindex to be enabled).
|
|
1259
1415
|
|
|
@@ -1288,9 +1444,13 @@ Examples:
|
|
|
1288
1444
|
> neurai-cli getaddressdeltas '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"],"assetName":"MY_ASSET"}'
|
|
1289
1445
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressdeltas", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"],"assetName":"MY_ASSET"}] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1290
1446
|
**/
|
|
1291
|
-
|
|
1447
|
+
getaddressdeltas:'getaddressdeltas',
|
|
1448
|
+
|
|
1292
1449
|
|
|
1293
|
-
|
|
1450
|
+
|
|
1451
|
+
|
|
1452
|
+
|
|
1453
|
+
/** getaddressesbyaccount "account"
|
|
1294
1454
|
|
|
1295
1455
|
DEPRECATED. Returns the list of addresses for the given account.
|
|
1296
1456
|
|
|
@@ -1307,9 +1467,13 @@ Examples:
|
|
|
1307
1467
|
> neurai-cli getaddressesbyaccount "tabby"
|
|
1308
1468
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressesbyaccount", "params": ["tabby"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1309
1469
|
**/
|
|
1310
|
-
|
|
1470
|
+
getaddressesbyaccount:'getaddressesbyaccount',
|
|
1471
|
+
|
|
1311
1472
|
|
|
1312
|
-
|
|
1473
|
+
|
|
1474
|
+
|
|
1475
|
+
|
|
1476
|
+
/** getaddressmempool
|
|
1313
1477
|
|
|
1314
1478
|
Returns all mempool deltas for an address (requires addressindex to be enabled).
|
|
1315
1479
|
|
|
@@ -1343,9 +1507,13 @@ Examples:
|
|
|
1343
1507
|
> neurai-cli getaddressmempool '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}', true
|
|
1344
1508
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressmempool", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}, true] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1345
1509
|
**/
|
|
1346
|
-
|
|
1510
|
+
getaddressmempool:'getaddressmempool',
|
|
1511
|
+
|
|
1347
1512
|
|
|
1348
|
-
|
|
1513
|
+
|
|
1514
|
+
|
|
1515
|
+
|
|
1516
|
+
/** getaddresstxids
|
|
1349
1517
|
|
|
1350
1518
|
Returns the txids for an address(es) (requires addressindex to be enabled).
|
|
1351
1519
|
|
|
@@ -1373,9 +1541,13 @@ Examples:
|
|
|
1373
1541
|
> neurai-cli getaddresstxids '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}', true
|
|
1374
1542
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddresstxids", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}, true] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1375
1543
|
**/
|
|
1376
|
-
|
|
1544
|
+
getaddresstxids:'getaddresstxids',
|
|
1545
|
+
|
|
1377
1546
|
|
|
1378
|
-
|
|
1547
|
+
|
|
1548
|
+
|
|
1549
|
+
|
|
1550
|
+
/** getaddressutxos
|
|
1379
1551
|
|
|
1380
1552
|
Returns all unspent outputs for an address (requires addressindex to be enabled).
|
|
1381
1553
|
|
|
@@ -1409,9 +1581,13 @@ Examples:
|
|
|
1409
1581
|
> neurai-cli getaddressutxos '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"],"assetName":"MY_ASSET"}'
|
|
1410
1582
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressutxos", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"],"assetName":"MY_ASSET"}] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1411
1583
|
**/
|
|
1412
|
-
|
|
1584
|
+
getaddressutxos:'getaddressutxos',
|
|
1585
|
+
|
|
1413
1586
|
|
|
1414
|
-
|
|
1587
|
+
|
|
1588
|
+
|
|
1589
|
+
|
|
1590
|
+
/** getassetdata "asset_name"
|
|
1415
1591
|
|
|
1416
1592
|
Returns assets metadata if that asset exists
|
|
1417
1593
|
|
|
@@ -1434,9 +1610,13 @@ Examples:
|
|
|
1434
1610
|
> neurai-cli getassetdata "ASSET_NAME"
|
|
1435
1611
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getassetdata", "params": ["ASSET_NAME"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1436
1612
|
**/
|
|
1437
|
-
|
|
1613
|
+
getassetdata:'getassetdata',
|
|
1614
|
+
|
|
1438
1615
|
|
|
1439
|
-
|
|
1616
|
+
|
|
1617
|
+
|
|
1618
|
+
|
|
1619
|
+
/** getbalance ( "account" minconf include_watchonly )
|
|
1440
1620
|
|
|
1441
1621
|
If account is not specified, returns the server's total available balance.
|
|
1442
1622
|
If account is specified (DEPRECATED), returns the balance in the account.
|
|
@@ -1473,9 +1653,13 @@ The total amount in the wallet at least 6 blocks confirmed
|
|
|
1473
1653
|
As a json rpc call
|
|
1474
1654
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getbalance", "params": ["*", 6] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1475
1655
|
**/
|
|
1476
|
-
|
|
1656
|
+
getbalance:'getbalance',
|
|
1657
|
+
|
|
1477
1658
|
|
|
1478
|
-
|
|
1659
|
+
|
|
1660
|
+
|
|
1661
|
+
|
|
1662
|
+
/** getbestblockhash
|
|
1479
1663
|
|
|
1480
1664
|
Returns the hash of the best (tip) block in the longest blockchain.
|
|
1481
1665
|
|
|
@@ -1486,9 +1670,13 @@ Examples:
|
|
|
1486
1670
|
> neurai-cli getbestblockhash
|
|
1487
1671
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getbestblockhash", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1488
1672
|
**/
|
|
1489
|
-
|
|
1673
|
+
getbestblockhash:'getbestblockhash',
|
|
1674
|
+
|
|
1490
1675
|
|
|
1491
|
-
|
|
1676
|
+
|
|
1677
|
+
|
|
1678
|
+
|
|
1679
|
+
/** getblock "blockhash" ( verbosity )
|
|
1492
1680
|
|
|
1493
1681
|
If verbosity is 0, returns a string that is serialized, hex-encoded data for block 'hash'.
|
|
1494
1682
|
If verbosity is 1, returns an Object with information about block <hash>.
|
|
@@ -1539,9 +1727,13 @@ Examples:
|
|
|
1539
1727
|
> neurai-cli getblock "00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"
|
|
1540
1728
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblock", "params": ["00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1541
1729
|
**/
|
|
1542
|
-
|
|
1730
|
+
getblock:'getblock',
|
|
1731
|
+
|
|
1543
1732
|
|
|
1544
|
-
|
|
1733
|
+
|
|
1734
|
+
|
|
1735
|
+
|
|
1736
|
+
/** getblockchaininfo
|
|
1545
1737
|
Returns an object containing various state info regarding blockchain processing.
|
|
1546
1738
|
|
|
1547
1739
|
Result:
|
|
@@ -1591,9 +1783,13 @@ Examples:
|
|
|
1591
1783
|
> neurai-cli getblockchaininfo
|
|
1592
1784
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockchaininfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1593
1785
|
**/
|
|
1594
|
-
|
|
1786
|
+
getblockchaininfo:'getblockchaininfo',
|
|
1787
|
+
|
|
1595
1788
|
|
|
1596
|
-
|
|
1789
|
+
|
|
1790
|
+
|
|
1791
|
+
|
|
1792
|
+
/** getblockcount
|
|
1597
1793
|
|
|
1598
1794
|
Returns the number of blocks in the longest blockchain.
|
|
1599
1795
|
|
|
@@ -1604,9 +1800,13 @@ Examples:
|
|
|
1604
1800
|
> neurai-cli getblockcount
|
|
1605
1801
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockcount", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1606
1802
|
**/
|
|
1607
|
-
|
|
1803
|
+
getblockcount:'getblockcount',
|
|
1804
|
+
|
|
1608
1805
|
|
|
1609
|
-
|
|
1806
|
+
|
|
1807
|
+
|
|
1808
|
+
|
|
1809
|
+
/** getblockhash height
|
|
1610
1810
|
|
|
1611
1811
|
Returns hash of block in best-block-chain at height provided.
|
|
1612
1812
|
|
|
@@ -1620,9 +1820,13 @@ Examples:
|
|
|
1620
1820
|
> neurai-cli getblockhash 1000
|
|
1621
1821
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockhash", "params": [1000] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1622
1822
|
**/
|
|
1623
|
-
|
|
1823
|
+
getblockhash:'getblockhash',
|
|
1824
|
+
|
|
1624
1825
|
|
|
1625
|
-
|
|
1826
|
+
|
|
1827
|
+
|
|
1828
|
+
|
|
1829
|
+
/** getblockhashes timestamp
|
|
1626
1830
|
|
|
1627
1831
|
Returns array of hashes of blocks within the timestamp range provided.
|
|
1628
1832
|
|
|
@@ -1651,9 +1855,13 @@ Examples:
|
|
|
1651
1855
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockhashes", "params": [1231614698, 1231024505] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1652
1856
|
> neurai-cli getblockhashes 1231614698 1231024505 '{"noOrphans":false, "logicalTimes":true}'
|
|
1653
1857
|
**/
|
|
1654
|
-
|
|
1858
|
+
getblockhashes:'getblockhashes',
|
|
1859
|
+
|
|
1655
1860
|
|
|
1656
|
-
|
|
1861
|
+
|
|
1862
|
+
|
|
1863
|
+
|
|
1864
|
+
/** getblockheader "hash" ( verbose )
|
|
1657
1865
|
|
|
1658
1866
|
If verbose is false, returns a string that is serialized, hex-encoded data for blockheader 'hash'.
|
|
1659
1867
|
If verbose is true, returns an Object with information about blockheader <hash>.
|
|
@@ -1687,9 +1895,13 @@ Examples:
|
|
|
1687
1895
|
> neurai-cli getblockheader "00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"
|
|
1688
1896
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockheader", "params": ["00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1689
1897
|
**/
|
|
1690
|
-
|
|
1898
|
+
getblockheader:'getblockheader',
|
|
1899
|
+
|
|
1691
1900
|
|
|
1692
|
-
|
|
1901
|
+
|
|
1902
|
+
|
|
1903
|
+
|
|
1904
|
+
/** getblocktemplate ( TemplateRequest )
|
|
1693
1905
|
|
|
1694
1906
|
If the request parameters include a 'mode' key, that is used to explicitly select between the default 'template' request or a 'proposal'.
|
|
1695
1907
|
It returns data needed to construct a block to work on.
|
|
@@ -1764,9 +1976,13 @@ Examples:
|
|
|
1764
1976
|
> neurai-cli getblocktemplate
|
|
1765
1977
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblocktemplate", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1766
1978
|
**/
|
|
1767
|
-
|
|
1979
|
+
getblocktemplate:'getblocktemplate',
|
|
1980
|
+
|
|
1768
1981
|
|
|
1769
|
-
|
|
1982
|
+
|
|
1983
|
+
|
|
1984
|
+
|
|
1985
|
+
/** getcacheinfo
|
|
1770
1986
|
|
|
1771
1987
|
Result:
|
|
1772
1988
|
[
|
|
@@ -1785,9 +2001,13 @@ Examples:
|
|
|
1785
2001
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getcacheinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1786
2002
|
> neurai-cli getcacheinfo
|
|
1787
2003
|
**/
|
|
1788
|
-
|
|
2004
|
+
getcacheinfo:'getcacheinfo',
|
|
2005
|
+
|
|
1789
2006
|
|
|
1790
|
-
|
|
2007
|
+
|
|
2008
|
+
|
|
2009
|
+
|
|
2010
|
+
/** getchaintips
|
|
1791
2011
|
Return information about all known tips in the block tree, including the main chain as well as orphaned branches.
|
|
1792
2012
|
|
|
1793
2013
|
Result:
|
|
@@ -1816,9 +2036,13 @@ Examples:
|
|
|
1816
2036
|
> neurai-cli getchaintips
|
|
1817
2037
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getchaintips", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1818
2038
|
**/
|
|
1819
|
-
|
|
2039
|
+
getchaintips:'getchaintips',
|
|
2040
|
+
|
|
1820
2041
|
|
|
1821
|
-
|
|
2042
|
+
|
|
2043
|
+
|
|
2044
|
+
|
|
2045
|
+
/** getchaintxstats ( nblocks blockhash )
|
|
1822
2046
|
|
|
1823
2047
|
Compute statistics about the total number and rate of transactions in the chain.
|
|
1824
2048
|
|
|
@@ -1840,9 +2064,13 @@ Examples:
|
|
|
1840
2064
|
> neurai-cli getchaintxstats
|
|
1841
2065
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getchaintxstats", "params": [2016] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1842
2066
|
**/
|
|
1843
|
-
|
|
2067
|
+
getchaintxstats:'getchaintxstats',
|
|
2068
|
+
|
|
1844
2069
|
|
|
1845
|
-
|
|
2070
|
+
|
|
2071
|
+
|
|
2072
|
+
|
|
2073
|
+
/** getconnectioncount
|
|
1846
2074
|
|
|
1847
2075
|
Returns the number of connections to other nodes.
|
|
1848
2076
|
|
|
@@ -1853,9 +2081,13 @@ Examples:
|
|
|
1853
2081
|
> neurai-cli getconnectioncount
|
|
1854
2082
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getconnectioncount", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1855
2083
|
**/
|
|
1856
|
-
|
|
2084
|
+
getconnectioncount:'getconnectioncount',
|
|
2085
|
+
|
|
1857
2086
|
|
|
1858
|
-
|
|
2087
|
+
|
|
2088
|
+
|
|
2089
|
+
|
|
2090
|
+
/** getdifficulty
|
|
1859
2091
|
|
|
1860
2092
|
Returns the proof-of-work difficulty as a multiple of the minimum difficulty.
|
|
1861
2093
|
|
|
@@ -1866,9 +2098,13 @@ Examples:
|
|
|
1866
2098
|
> neurai-cli getdifficulty
|
|
1867
2099
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getdifficulty", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1868
2100
|
**/
|
|
1869
|
-
|
|
2101
|
+
getdifficulty:'getdifficulty',
|
|
2102
|
+
|
|
1870
2103
|
|
|
1871
|
-
|
|
2104
|
+
|
|
2105
|
+
|
|
2106
|
+
|
|
2107
|
+
/** getdistributestatus "asset_name" snapshot_height "distribution_asset_name" gross_distribution_amount ( "exception_addresses" )
|
|
1872
2108
|
|
|
1873
2109
|
Give information about the status of the distribution
|
|
1874
2110
|
|
|
@@ -1885,9 +2121,13 @@ Examples:
|
|
|
1885
2121
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getdistributestatus", "params": ["TRONCO" 34987 "DIVIDENDS" 100000] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1886
2122
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getdistributestatus", "params": ["PHATSTACKS" 34987 "XNA" 100000 "mwN7xC3yomYdvJuVXkVC7ymY9wNBjWNduD,n4Rf18edydDaRBh7t6gHUbuByLbWEoWUTg"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1887
2123
|
**/
|
|
1888
|
-
|
|
2124
|
+
getdistributestatus:'getdistributestatus',
|
|
2125
|
+
|
|
1889
2126
|
|
|
1890
|
-
|
|
2127
|
+
|
|
2128
|
+
|
|
2129
|
+
|
|
2130
|
+
/** getgenerate
|
|
1891
2131
|
|
|
1892
2132
|
Return if the server is set to generate coins or not. The default is false.
|
|
1893
2133
|
It is set with the command line argument -gen (or neurai.conf setting gen)
|
|
@@ -1900,9 +2140,13 @@ Examples:
|
|
|
1900
2140
|
> neurai-cli getgenerate
|
|
1901
2141
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getgenerate", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1902
2142
|
**/
|
|
1903
|
-
|
|
2143
|
+
getgenerate:'getgenerate',
|
|
2144
|
+
|
|
1904
2145
|
|
|
1905
|
-
|
|
2146
|
+
|
|
2147
|
+
|
|
2148
|
+
|
|
2149
|
+
/** getinfo
|
|
1906
2150
|
|
|
1907
2151
|
DEPRECATED. Returns an object containing various state info.
|
|
1908
2152
|
|
|
@@ -1931,9 +2175,13 @@ Examples:
|
|
|
1931
2175
|
> neurai-cli getinfo
|
|
1932
2176
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1933
2177
|
**/
|
|
1934
|
-
|
|
2178
|
+
getinfo:'getinfo',
|
|
2179
|
+
|
|
1935
2180
|
|
|
1936
|
-
|
|
2181
|
+
|
|
2182
|
+
|
|
2183
|
+
|
|
2184
|
+
/** getkawpowhash "header_hash" "mix_hash" nonce, height, "target"
|
|
1937
2185
|
|
|
1938
2186
|
Get the kawpow hash for a block given its block data
|
|
1939
2187
|
|
|
@@ -1950,9 +2198,13 @@ Examples:
|
|
|
1950
2198
|
> neurai-cli getkawpowhash "header_hash" "mix_hash" "0x100000" 2456
|
|
1951
2199
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getkawpowhash", "params": ["header_hash" "mix_hash" "0x100000" 2456] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1952
2200
|
**/
|
|
1953
|
-
|
|
2201
|
+
getkawpowhash:'getkawpowhash',
|
|
2202
|
+
|
|
1954
2203
|
|
|
1955
|
-
|
|
2204
|
+
|
|
2205
|
+
|
|
2206
|
+
|
|
2207
|
+
/** getmasterkeyinfo
|
|
1956
2208
|
|
|
1957
2209
|
Fetches and displays the master private key and the master public key.
|
|
1958
2210
|
|
|
@@ -1969,9 +2221,13 @@ Examples:
|
|
|
1969
2221
|
> neurai-cli getmasterkeyinfo
|
|
1970
2222
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmasterkeyinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1971
2223
|
**/
|
|
1972
|
-
|
|
2224
|
+
getmasterkeyinfo:'getmasterkeyinfo',
|
|
2225
|
+
|
|
1973
2226
|
|
|
1974
|
-
|
|
2227
|
+
|
|
2228
|
+
|
|
2229
|
+
|
|
2230
|
+
/** getmemoryinfo ("mode")
|
|
1975
2231
|
Returns an object containing information about memory usage.
|
|
1976
2232
|
Arguments:
|
|
1977
2233
|
1. "mode" determines what kind of information is returned. This argument is optional, the default mode is "stats".
|
|
@@ -1997,11 +2253,15 @@ Examples:
|
|
|
1997
2253
|
> neurai-cli getmemoryinfo
|
|
1998
2254
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmemoryinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1999
2255
|
**/
|
|
2000
|
-
|
|
2256
|
+
getmemoryinfo:'getmemoryinfo',
|
|
2001
2257
|
|
|
2002
|
-
/** getmempoolancestors txid (verbose)
|
|
2003
2258
|
|
|
2004
|
-
|
|
2259
|
+
|
|
2260
|
+
|
|
2261
|
+
|
|
2262
|
+
/** getmempoolancestors txid (verbose)
|
|
2263
|
+
|
|
2264
|
+
If txid is in the mempool, returns all in-mempool ancestors.
|
|
2005
2265
|
|
|
2006
2266
|
Arguments:
|
|
2007
2267
|
1. "txid" (string, required) The transaction id (must be in mempool)
|
|
@@ -2038,9 +2298,13 @@ Examples:
|
|
|
2038
2298
|
> neurai-cli getmempoolancestors "mytxid"
|
|
2039
2299
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempoolancestors", "params": ["mytxid"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2040
2300
|
**/
|
|
2041
|
-
|
|
2301
|
+
getmempoolancestors:'getmempoolancestors',
|
|
2302
|
+
|
|
2303
|
+
|
|
2042
2304
|
|
|
2043
|
-
|
|
2305
|
+
|
|
2306
|
+
|
|
2307
|
+
/** getmempooldescendants txid (verbose)
|
|
2044
2308
|
|
|
2045
2309
|
If txid is in the mempool, returns all in-mempool descendants.
|
|
2046
2310
|
|
|
@@ -2079,9 +2343,13 @@ Examples:
|
|
|
2079
2343
|
> neurai-cli getmempooldescendants "mytxid"
|
|
2080
2344
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempooldescendants", "params": ["mytxid"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2081
2345
|
**/
|
|
2082
|
-
|
|
2346
|
+
getmempooldescendants:'getmempooldescendants',
|
|
2347
|
+
|
|
2348
|
+
|
|
2083
2349
|
|
|
2084
|
-
|
|
2350
|
+
|
|
2351
|
+
|
|
2352
|
+
/** getmempoolentry txid
|
|
2085
2353
|
|
|
2086
2354
|
Returns mempool data for given transaction
|
|
2087
2355
|
|
|
@@ -2111,9 +2379,13 @@ Examples:
|
|
|
2111
2379
|
> neurai-cli getmempoolentry "mytxid"
|
|
2112
2380
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempoolentry", "params": ["mytxid"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2113
2381
|
**/
|
|
2114
|
-
|
|
2382
|
+
getmempoolentry:'getmempoolentry',
|
|
2383
|
+
|
|
2115
2384
|
|
|
2116
|
-
|
|
2385
|
+
|
|
2386
|
+
|
|
2387
|
+
|
|
2388
|
+
/** getmempoolinfo
|
|
2117
2389
|
|
|
2118
2390
|
Returns details on the active state of the TX memory pool.
|
|
2119
2391
|
|
|
@@ -2130,9 +2402,13 @@ Examples:
|
|
|
2130
2402
|
> neurai-cli getmempoolinfo
|
|
2131
2403
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempoolinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2132
2404
|
**/
|
|
2133
|
-
|
|
2405
|
+
getmempoolinfo:'getmempoolinfo',
|
|
2406
|
+
|
|
2407
|
+
|
|
2408
|
+
|
|
2409
|
+
|
|
2134
2410
|
|
|
2135
|
-
|
|
2411
|
+
/** getmininginfo
|
|
2136
2412
|
|
|
2137
2413
|
Returns a json object containing mining-related information.
|
|
2138
2414
|
Result:
|
|
@@ -2153,9 +2429,13 @@ Examples:
|
|
|
2153
2429
|
> neurai-cli getmininginfo
|
|
2154
2430
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmininginfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2155
2431
|
**/
|
|
2156
|
-
|
|
2432
|
+
getmininginfo:'getmininginfo',
|
|
2157
2433
|
|
|
2158
|
-
|
|
2434
|
+
|
|
2435
|
+
|
|
2436
|
+
|
|
2437
|
+
|
|
2438
|
+
/** getmywords ( "account" )
|
|
2159
2439
|
|
|
2160
2440
|
Returns the 12 words and passphrase used by BIP39 to generate the wallets private keys
|
|
2161
2441
|
Only returns value if wallet was created by the 12 words import/generation
|
|
@@ -2168,9 +2448,13 @@ Examples:
|
|
|
2168
2448
|
> neurai-cli getmywords
|
|
2169
2449
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmywords", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2170
2450
|
**/
|
|
2171
|
-
|
|
2451
|
+
getmywords:'getmywords',
|
|
2452
|
+
|
|
2453
|
+
|
|
2454
|
+
|
|
2172
2455
|
|
|
2173
|
-
|
|
2456
|
+
|
|
2457
|
+
/** getnettotals
|
|
2174
2458
|
|
|
2175
2459
|
Returns information about network traffic, including bytes in, bytes out,
|
|
2176
2460
|
and current time.
|
|
@@ -2195,9 +2479,13 @@ Examples:
|
|
|
2195
2479
|
> neurai-cli getnettotals
|
|
2196
2480
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnettotals", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2197
2481
|
**/
|
|
2198
|
-
|
|
2482
|
+
getnettotals:'getnettotals',
|
|
2483
|
+
|
|
2484
|
+
|
|
2485
|
+
|
|
2199
2486
|
|
|
2200
|
-
|
|
2487
|
+
|
|
2488
|
+
/** getnetworkhashps ( nblocks height )
|
|
2201
2489
|
|
|
2202
2490
|
Returns the estimated network hashes per second based on the last n blocks.
|
|
2203
2491
|
Pass in [blocks] to override # of blocks, -1 specifies since last difficulty change.
|
|
@@ -2214,9 +2502,13 @@ Examples:
|
|
|
2214
2502
|
> neurai-cli getnetworkhashps
|
|
2215
2503
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnetworkhashps", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2216
2504
|
**/
|
|
2217
|
-
|
|
2505
|
+
getnetworkhashps:'getnetworkhashps',
|
|
2506
|
+
|
|
2507
|
+
|
|
2218
2508
|
|
|
2219
|
-
|
|
2509
|
+
|
|
2510
|
+
|
|
2511
|
+
/** getnetworkinfo
|
|
2220
2512
|
Returns an object containing various state info regarding P2P networking.
|
|
2221
2513
|
|
|
2222
2514
|
Result:
|
|
@@ -2256,9 +2548,13 @@ Examples:
|
|
|
2256
2548
|
> neurai-cli getnetworkinfo
|
|
2257
2549
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnetworkinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2258
2550
|
**/
|
|
2259
|
-
|
|
2551
|
+
getnetworkinfo:'getnetworkinfo',
|
|
2552
|
+
|
|
2553
|
+
|
|
2260
2554
|
|
|
2261
|
-
|
|
2555
|
+
|
|
2556
|
+
|
|
2557
|
+
/** getnewaddress ( "account" )
|
|
2262
2558
|
|
|
2263
2559
|
Returns a new Neurai address for receiving payments.
|
|
2264
2560
|
If 'account' is specified (DEPRECATED), it is added to the address book
|
|
@@ -2274,9 +2570,13 @@ Examples:
|
|
|
2274
2570
|
> neurai-cli getnewaddress
|
|
2275
2571
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnewaddress", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2276
2572
|
**/
|
|
2277
|
-
|
|
2573
|
+
getnewaddress:'getnewaddress',
|
|
2574
|
+
|
|
2278
2575
|
|
|
2279
|
-
|
|
2576
|
+
|
|
2577
|
+
|
|
2578
|
+
|
|
2579
|
+
/** getpeerinfo
|
|
2280
2580
|
|
|
2281
2581
|
Returns data about each connected network node as a json array of objects.
|
|
2282
2582
|
|
|
@@ -2327,9 +2627,39 @@ Examples:
|
|
|
2327
2627
|
> neurai-cli getpeerinfo
|
|
2328
2628
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getpeerinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2329
2629
|
**/
|
|
2330
|
-
|
|
2630
|
+
getpeerinfo:'getpeerinfo',
|
|
2631
|
+
|
|
2632
|
+
|
|
2633
|
+
|
|
2634
|
+
|
|
2635
|
+
|
|
2636
|
+
/** getpubkey "address"
|
|
2637
|
+
|
|
2638
|
+
Returns the public key for an address that has revealed it by spending (requires pubkeyindex to be enabled).
|
|
2639
|
+
|
|
2640
|
+
Arguments:
|
|
2641
|
+
1. "address" (string, required) The Neurai address
|
|
2642
|
+
|
|
2643
|
+
Result:
|
|
2644
|
+
{
|
|
2645
|
+
"address": "address", (string) The Neurai address
|
|
2646
|
+
"pubkey": "hex", (string) The public key in hex format
|
|
2647
|
+
"revealed": true|false, (boolean) Whether the public key has been revealed
|
|
2648
|
+
"height": n, (numeric) Block height where it was revealed
|
|
2649
|
+
"txid": "hash" (string) Transaction ID where it was revealed
|
|
2650
|
+
}
|
|
2651
|
+
|
|
2652
|
+
Examples:
|
|
2653
|
+
> neurai-cli getpubkey "NXa1b2c3d4e5f6..."
|
|
2654
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getpubkey", "params": ["NXa1b2c3d4e5f6..."] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2655
|
+
**/
|
|
2656
|
+
getpubkey:'getpubkey',
|
|
2657
|
+
|
|
2658
|
+
|
|
2659
|
+
|
|
2331
2660
|
|
|
2332
|
-
|
|
2661
|
+
|
|
2662
|
+
/** getrawchangeaddress
|
|
2333
2663
|
|
|
2334
2664
|
Returns a new Neurai address, for receiving change.
|
|
2335
2665
|
This is for use with raw transactions, NOT normal use.
|
|
@@ -2341,9 +2671,13 @@ Examples:
|
|
|
2341
2671
|
> neurai-cli getrawchangeaddress
|
|
2342
2672
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrawchangeaddress", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2343
2673
|
**/
|
|
2344
|
-
|
|
2674
|
+
getrawchangeaddress:'getrawchangeaddress',
|
|
2675
|
+
|
|
2676
|
+
|
|
2677
|
+
|
|
2345
2678
|
|
|
2346
|
-
|
|
2679
|
+
|
|
2680
|
+
/** getrawmempool ( verbose )
|
|
2347
2681
|
|
|
2348
2682
|
Returns all transaction ids in memory pool as a json array of string transaction ids.
|
|
2349
2683
|
|
|
@@ -2383,9 +2717,13 @@ Examples:
|
|
|
2383
2717
|
> neurai-cli getrawmempool true
|
|
2384
2718
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrawmempool", "params": [true] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2385
2719
|
**/
|
|
2386
|
-
|
|
2720
|
+
getrawmempool:'getrawmempool',
|
|
2721
|
+
|
|
2722
|
+
|
|
2387
2723
|
|
|
2388
|
-
|
|
2724
|
+
|
|
2725
|
+
|
|
2726
|
+
/** getrawtransaction "txid" ( verbose )
|
|
2389
2727
|
|
|
2390
2728
|
NOTE: By default this function only works for mempool transactions. If the -txindex option is
|
|
2391
2729
|
enabled, it also works for blockchain transactions.
|
|
@@ -2453,9 +2791,13 @@ Examples:
|
|
|
2453
2791
|
> neurai-cli getrawtransaction "mytxid" true
|
|
2454
2792
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrawtransaction", "params": ["mytxid", true] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2455
2793
|
**/
|
|
2456
|
-
|
|
2794
|
+
getrawtransaction:'getrawtransaction',
|
|
2795
|
+
|
|
2796
|
+
|
|
2457
2797
|
|
|
2458
|
-
|
|
2798
|
+
|
|
2799
|
+
|
|
2800
|
+
/** getreceivedbyaccount "account" ( minconf )
|
|
2459
2801
|
|
|
2460
2802
|
DEPRECATED. Returns the total amount received by addresses with <account> in transactions with at least [minconf] confirmations.
|
|
2461
2803
|
|
|
@@ -2480,9 +2822,13 @@ The amount with at least 6 confirmations
|
|
|
2480
2822
|
As a json rpc call
|
|
2481
2823
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getreceivedbyaccount", "params": ["tabby", 6] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2482
2824
|
**/
|
|
2483
|
-
|
|
2825
|
+
getreceivedbyaccount:'getreceivedbyaccount',
|
|
2826
|
+
|
|
2484
2827
|
|
|
2485
|
-
|
|
2828
|
+
|
|
2829
|
+
|
|
2830
|
+
|
|
2831
|
+
/** getreceivedbyaddress "address" ( minconf )
|
|
2486
2832
|
|
|
2487
2833
|
Returns the total amount received by the given address in transactions with at least minconf confirmations.
|
|
2488
2834
|
|
|
@@ -2507,9 +2853,13 @@ The amount with at least 6 confirmations
|
|
|
2507
2853
|
As a json rpc call
|
|
2508
2854
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getreceivedbyaddress", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX", 6] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2509
2855
|
**/
|
|
2510
|
-
|
|
2856
|
+
getreceivedbyaddress:'getreceivedbyaddress',
|
|
2857
|
+
|
|
2858
|
+
|
|
2859
|
+
|
|
2860
|
+
|
|
2511
2861
|
|
|
2512
|
-
|
|
2862
|
+
/** getrpcinfo
|
|
2513
2863
|
Returns details of the RPC server.
|
|
2514
2864
|
|
|
2515
2865
|
Result:
|
|
@@ -2525,9 +2875,13 @@ Result:
|
|
|
2525
2875
|
> neurai-cli getrpcinfo
|
|
2526
2876
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrpcinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2527
2877
|
**/
|
|
2528
|
-
|
|
2878
|
+
getrpcinfo:'getrpcinfo',
|
|
2529
2879
|
|
|
2530
|
-
|
|
2880
|
+
|
|
2881
|
+
|
|
2882
|
+
|
|
2883
|
+
|
|
2884
|
+
/** getsnapshot "asset_name" block_height
|
|
2531
2885
|
|
|
2532
2886
|
Returns details for the asset snapshot, at the specified height
|
|
2533
2887
|
|
|
@@ -2549,9 +2903,13 @@ Result:
|
|
|
2549
2903
|
Examples:
|
|
2550
2904
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getsnapshot", "params": ["ASSET_NAME" 28546] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2551
2905
|
**/
|
|
2552
|
-
|
|
2906
|
+
getsnapshot:'getsnapshot',
|
|
2907
|
+
|
|
2908
|
+
|
|
2909
|
+
|
|
2553
2910
|
|
|
2554
|
-
|
|
2911
|
+
|
|
2912
|
+
/** getsnapshotrequest "asset_name" block_height
|
|
2555
2913
|
|
|
2556
2914
|
Retrieves the specified snapshot request details.
|
|
2557
2915
|
|
|
@@ -2569,9 +2927,13 @@ Examples:
|
|
|
2569
2927
|
> neurai-cli getsnapshotrequest "TRONCO" 12345
|
|
2570
2928
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getsnapshotrequest", "params": ["PHATSTACKS" 34987] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2571
2929
|
**/
|
|
2572
|
-
|
|
2930
|
+
getsnapshotrequest:'getsnapshotrequest',
|
|
2931
|
+
|
|
2932
|
+
|
|
2933
|
+
|
|
2573
2934
|
|
|
2574
|
-
|
|
2935
|
+
|
|
2936
|
+
/** getspentinfo
|
|
2575
2937
|
|
|
2576
2938
|
Returns the txid and index where an output is spent.
|
|
2577
2939
|
|
|
@@ -2592,9 +2954,13 @@ Examples:
|
|
|
2592
2954
|
> neurai-cli getspentinfo '{"txid": "0437cd7f8525ceed2324359c2d0ba26006d92d856a9c20fa0241106ee5a597c9", "index": 0}'
|
|
2593
2955
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getspentinfo", "params": [{"txid": "0437cd7f8525ceed2324359c2d0ba26006d92d856a9c20fa0241106ee5a597c9", "index": 0}] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2594
2956
|
**/
|
|
2595
|
-
|
|
2957
|
+
getspentinfo:'getspentinfo',
|
|
2958
|
+
|
|
2959
|
+
|
|
2596
2960
|
|
|
2597
|
-
|
|
2961
|
+
|
|
2962
|
+
|
|
2963
|
+
/** gettransaction "txid" ( include_watchonly )
|
|
2598
2964
|
|
|
2599
2965
|
Get detailed information about in-wallet transaction <txid>
|
|
2600
2966
|
|
|
@@ -2650,9 +3016,13 @@ Examples:
|
|
|
2650
3016
|
> neurai-cli gettransaction "1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d" true
|
|
2651
3017
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettransaction", "params": ["1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2652
3018
|
**/
|
|
2653
|
-
|
|
3019
|
+
gettransaction:'gettransaction',
|
|
3020
|
+
|
|
3021
|
+
|
|
2654
3022
|
|
|
2655
|
-
|
|
3023
|
+
|
|
3024
|
+
|
|
3025
|
+
/** gettxout "txid" n ( include_mempool )
|
|
2656
3026
|
|
|
2657
3027
|
Returns details about an unspent transaction output.
|
|
2658
3028
|
|
|
@@ -2690,9 +3060,13 @@ View the details
|
|
|
2690
3060
|
As a json rpc call
|
|
2691
3061
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettxout", "params": ["txid", 1] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2692
3062
|
**/
|
|
2693
|
-
|
|
3063
|
+
gettxout:'gettxout',
|
|
3064
|
+
|
|
2694
3065
|
|
|
2695
|
-
|
|
3066
|
+
|
|
3067
|
+
|
|
3068
|
+
|
|
3069
|
+
/** gettxoutproof ["txid",...] ( blockhash )
|
|
2696
3070
|
|
|
2697
3071
|
Returns a hex-encoded proof that "txid" was included in a block.
|
|
2698
3072
|
|
|
@@ -2712,9 +3086,13 @@ Arguments:
|
|
|
2712
3086
|
Result:
|
|
2713
3087
|
"data" (string) A string that is a serialized, hex-encoded data for the proof.
|
|
2714
3088
|
**/
|
|
2715
|
-
|
|
3089
|
+
gettxoutproof:'gettxoutproof',
|
|
3090
|
+
|
|
3091
|
+
|
|
3092
|
+
|
|
3093
|
+
|
|
2716
3094
|
|
|
2717
|
-
|
|
3095
|
+
/** gettxoutsetinfo
|
|
2718
3096
|
|
|
2719
3097
|
Returns statistics about the unspent transaction output set.
|
|
2720
3098
|
Note this call may take some time.
|
|
@@ -2735,14 +3113,22 @@ Examples:
|
|
|
2735
3113
|
> neurai-cli gettxoutsetinfo
|
|
2736
3114
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettxoutsetinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2737
3115
|
**/
|
|
2738
|
-
|
|
3116
|
+
gettxoutsetinfo:'gettxoutsetinfo',
|
|
2739
3117
|
|
|
2740
|
-
|
|
3118
|
+
|
|
3119
|
+
|
|
3120
|
+
|
|
3121
|
+
|
|
3122
|
+
/** getunconfirmedbalance
|
|
2741
3123
|
Returns the server's total unconfirmed balance
|
|
2742
3124
|
**/
|
|
2743
|
-
|
|
3125
|
+
getunconfirmedbalance:'getunconfirmedbalance',
|
|
3126
|
+
|
|
3127
|
+
|
|
3128
|
+
|
|
2744
3129
|
|
|
2745
|
-
|
|
3130
|
+
|
|
3131
|
+
/** getverifierstring restricted_name
|
|
2746
3132
|
|
|
2747
3133
|
Retrieve the verifier string that belongs to the given restricted asset
|
|
2748
3134
|
|
|
@@ -2756,9 +3142,13 @@ Examples:
|
|
|
2756
3142
|
> neurai-cli getverifierstring "restricted_name"
|
|
2757
3143
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getverifierstring", "params": ["restricted_name"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2758
3144
|
**/
|
|
2759
|
-
|
|
3145
|
+
getverifierstring:'getverifierstring',
|
|
3146
|
+
|
|
3147
|
+
|
|
3148
|
+
|
|
2760
3149
|
|
|
2761
|
-
|
|
3150
|
+
|
|
3151
|
+
/** getwalletinfo
|
|
2762
3152
|
Returns an object containing various wallet state info.
|
|
2763
3153
|
|
|
2764
3154
|
Result:
|
|
@@ -2782,9 +3172,13 @@ Examples:
|
|
|
2782
3172
|
> neurai-cli getwalletinfo
|
|
2783
3173
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getwalletinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2784
3174
|
**/
|
|
2785
|
-
|
|
3175
|
+
getwalletinfo:'getwalletinfo',
|
|
3176
|
+
|
|
3177
|
+
|
|
2786
3178
|
|
|
2787
|
-
|
|
3179
|
+
|
|
3180
|
+
|
|
3181
|
+
/** help ( "command" )
|
|
2788
3182
|
|
|
2789
3183
|
List all commands, or get help for a specified command.
|
|
2790
3184
|
|
|
@@ -2794,9 +3188,13 @@ Arguments:
|
|
|
2794
3188
|
Result:
|
|
2795
3189
|
"text" (string) The help text
|
|
2796
3190
|
**/
|
|
2797
|
-
|
|
3191
|
+
help:'help',
|
|
3192
|
+
|
|
3193
|
+
|
|
2798
3194
|
|
|
2799
|
-
|
|
3195
|
+
|
|
3196
|
+
|
|
3197
|
+
/** importaddress "address" ( "label" rescan p2sh )
|
|
2800
3198
|
|
|
2801
3199
|
Adds a script (in hex) or address that can be watched as if it were in your wallet but cannot be used to spend.
|
|
2802
3200
|
|
|
@@ -2823,9 +3221,13 @@ Import using a label without rescan
|
|
|
2823
3221
|
As a JSON-RPC call
|
|
2824
3222
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importaddress", "params": ["myscript", "testing", false] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2825
3223
|
**/
|
|
2826
|
-
|
|
3224
|
+
importaddress:'importaddress',
|
|
3225
|
+
|
|
2827
3226
|
|
|
2828
|
-
|
|
3227
|
+
|
|
3228
|
+
|
|
3229
|
+
|
|
3230
|
+
/** importmulti "requests" ( "options" )
|
|
2829
3231
|
|
|
2830
3232
|
Import addresses/scripts (with private or public keys, redeem script (P2SH)), rescanning all addresses in one-shot-only (rescan can be disabled via options).
|
|
2831
3233
|
|
|
@@ -2861,9 +3263,13 @@ Examples:
|
|
|
2861
3263
|
Response is an array with the same size as the input that has the execution result :
|
|
2862
3264
|
[{ "success": true } , { "success": false, "error": { "code": -1, "message": "Internal Server Error"} }, ... ]
|
|
2863
3265
|
**/
|
|
2864
|
-
|
|
3266
|
+
importmulti:'importmulti',
|
|
3267
|
+
|
|
3268
|
+
|
|
3269
|
+
|
|
3270
|
+
|
|
2865
3271
|
|
|
2866
|
-
|
|
3272
|
+
/** importprivkey "privkey" ( "label" ) ( rescan )
|
|
2867
3273
|
|
|
2868
3274
|
Adds a private key (as returned by dumpprivkey) to your wallet.
|
|
2869
3275
|
|
|
@@ -2891,9 +3297,13 @@ Import using default blank label and without rescan
|
|
|
2891
3297
|
As a JSON-RPC call
|
|
2892
3298
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importprivkey", "params": ["mykey", "testing", false] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2893
3299
|
**/
|
|
2894
|
-
|
|
3300
|
+
importprivkey:'importprivkey',
|
|
2895
3301
|
|
|
2896
|
-
|
|
3302
|
+
|
|
3303
|
+
|
|
3304
|
+
|
|
3305
|
+
|
|
3306
|
+
/** importprunedfunds
|
|
2897
3307
|
|
|
2898
3308
|
Imports funds without rescan. Corresponding address or script must previously be included in wallet. Aimed towards pruned wallets. The end-user is responsible to import additional transactions that subsequently spend the imported outputs or rescan after the point in the blockchain the transaction is included.
|
|
2899
3309
|
|
|
@@ -2901,9 +3311,13 @@ Arguments:
|
|
|
2901
3311
|
1. "rawtransaction" (string, required) A raw transaction in hex funding an already-existing address in wallet
|
|
2902
3312
|
2. "txoutproof" (string, required) The hex output from gettxoutproof that contains the transaction
|
|
2903
3313
|
**/
|
|
2904
|
-
|
|
3314
|
+
importprunedfunds:'importprunedfunds',
|
|
3315
|
+
|
|
3316
|
+
|
|
3317
|
+
|
|
2905
3318
|
|
|
2906
|
-
|
|
3319
|
+
|
|
3320
|
+
/** importpubkey "pubkey" ( "label" rescan )
|
|
2907
3321
|
|
|
2908
3322
|
Adds a public key (in hex) that can be watched as if it were in your wallet but cannot be used to spend.
|
|
2909
3323
|
|
|
@@ -2925,9 +3339,13 @@ Import using a label without rescan
|
|
|
2925
3339
|
As a JSON-RPC call
|
|
2926
3340
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importpubkey", "params": ["mypubkey", "testing", false] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2927
3341
|
**/
|
|
2928
|
-
|
|
3342
|
+
importpubkey:'importpubkey',
|
|
3343
|
+
|
|
3344
|
+
|
|
3345
|
+
|
|
2929
3346
|
|
|
2930
|
-
|
|
3347
|
+
|
|
3348
|
+
/** importwallet "filename"
|
|
2931
3349
|
|
|
2932
3350
|
Imports keys from a wallet dump file (see dumpwallet).
|
|
2933
3351
|
|
|
@@ -2945,9 +3363,13 @@ Import the wallet
|
|
|
2945
3363
|
Import using the json rpc call
|
|
2946
3364
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importwallet", "params": ["test"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2947
3365
|
**/
|
|
2948
|
-
|
|
3366
|
+
importwallet:'importwallet',
|
|
3367
|
+
|
|
3368
|
+
|
|
2949
3369
|
|
|
2950
|
-
|
|
3370
|
+
|
|
3371
|
+
|
|
3372
|
+
/** issue "asset_name" qty "( to_address )" "( change_address )" ( units ) ( reissuable ) ( has_ipfs ) "( ipfs_hash )"
|
|
2951
3373
|
|
|
2952
3374
|
Issue an asset, subasset or unique asset.
|
|
2953
3375
|
Asset name must not conflict with any existing asset.
|
|
@@ -2977,9 +3399,13 @@ Examples:
|
|
|
2977
3399
|
> neurai-cli issue "ASSET_NAME/SUB_ASSET" 1000 "myaddress" "changeaddress" 2 true
|
|
2978
3400
|
> neurai-cli issue "ASSET_NAME#uniquetag"
|
|
2979
3401
|
**/
|
|
2980
|
-
|
|
3402
|
+
issue:'issue',
|
|
3403
|
+
|
|
3404
|
+
|
|
2981
3405
|
|
|
2982
|
-
|
|
3406
|
+
|
|
3407
|
+
|
|
3408
|
+
/** issuequalifierasset "asset_name" qty "( to_address )" "( change_address )" ( has_ipfs ) "( ipfs_hash )"
|
|
2983
3409
|
|
|
2984
3410
|
Issue an qualifier or sub qualifier asset
|
|
2985
3411
|
If the '#' character isn't added, it will be added automatically
|
|
@@ -3008,9 +3434,13 @@ Examples:
|
|
|
3008
3434
|
> neurai-cli issuequalifierasset "ASSET_NAME/SUB_QUALIFIER" 1000 "myaddress" "changeaddress"
|
|
3009
3435
|
> neurai-cli issuequalifierasset "#ASSET_NAME"
|
|
3010
3436
|
**/
|
|
3011
|
-
|
|
3437
|
+
issuequalifierasset:'issuequalifierasset',
|
|
3438
|
+
|
|
3012
3439
|
|
|
3013
|
-
|
|
3440
|
+
|
|
3441
|
+
|
|
3442
|
+
|
|
3443
|
+
/** issuerestrictedasset "asset_name" qty "verifier" "to_address" "( change_address )" (units) ( reissuable ) ( has_ipfs ) "( ipfs_hash )"
|
|
3014
3444
|
|
|
3015
3445
|
Issue a restricted asset.
|
|
3016
3446
|
Restricted asset names must not conflict with any existing restricted asset.
|
|
@@ -3038,9 +3468,13 @@ Examples:
|
|
|
3038
3468
|
> neurai-cli issuerestrictedasset "$ASSET_NAME" 1000 "#KYC & !#AML" "myaddress" "changeaddress" 8 true
|
|
3039
3469
|
> neurai-cli issuerestrictedasset "$ASSET_NAME" 1000 "#KYC & !#AML" "myaddress" "changeaddress" 0 false true QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E
|
|
3040
3470
|
**/
|
|
3041
|
-
|
|
3471
|
+
issuerestrictedasset:'issuerestrictedasset',
|
|
3472
|
+
|
|
3473
|
+
|
|
3474
|
+
|
|
3475
|
+
|
|
3042
3476
|
|
|
3043
|
-
|
|
3477
|
+
/** issueunique "root_name" [asset_tags] ( [ipfs_hashes] ) "( to_address )" "( change_address )"
|
|
3044
3478
|
|
|
3045
3479
|
Issue unique asset(s).
|
|
3046
3480
|
root_name must be an asset you own.
|
|
@@ -3062,9 +3496,13 @@ Examples:
|
|
|
3062
3496
|
> neurai-cli issueunique "MY_ASSET" '["primo","secundo"]'
|
|
3063
3497
|
> neurai-cli issueunique "MY_ASSET" '["primo","secundo"]' '["first_hash","second_hash"]'
|
|
3064
3498
|
**/
|
|
3065
|
-
|
|
3499
|
+
issueunique:'issueunique',
|
|
3066
3500
|
|
|
3067
|
-
|
|
3501
|
+
|
|
3502
|
+
|
|
3503
|
+
|
|
3504
|
+
|
|
3505
|
+
/** isvalidverifierstring verifier_string
|
|
3068
3506
|
|
|
3069
3507
|
Checks to see if the given verifier string is valid
|
|
3070
3508
|
|
|
@@ -3078,9 +3516,13 @@ Examples:
|
|
|
3078
3516
|
> neurai-cli isvalidverifierstring "verifier_string"
|
|
3079
3517
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "isvalidverifierstring", "params": ["verifier_string"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3080
3518
|
**/
|
|
3081
|
-
|
|
3519
|
+
isvalidverifierstring:'isvalidverifierstring',
|
|
3520
|
+
|
|
3521
|
+
|
|
3522
|
+
|
|
3082
3523
|
|
|
3083
|
-
|
|
3524
|
+
|
|
3525
|
+
/** keypoolrefill ( newsize )
|
|
3084
3526
|
|
|
3085
3527
|
Fills the keypool.
|
|
3086
3528
|
|
|
@@ -3091,9 +3533,13 @@ Examples:
|
|
|
3091
3533
|
> neurai-cli keypoolrefill
|
|
3092
3534
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "keypoolrefill", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3093
3535
|
**/
|
|
3094
|
-
|
|
3536
|
+
keypoolrefill:'keypoolrefill',
|
|
3537
|
+
|
|
3538
|
+
|
|
3539
|
+
|
|
3095
3540
|
|
|
3096
|
-
|
|
3541
|
+
|
|
3542
|
+
/** listaccounts ( minconf include_watchonly)
|
|
3097
3543
|
|
|
3098
3544
|
DEPRECATED. Returns Object that has account names as keys, account balances as values.
|
|
3099
3545
|
|
|
@@ -3121,9 +3567,13 @@ List account balances for 6 or more confirmations
|
|
|
3121
3567
|
As json rpc call
|
|
3122
3568
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaccounts", "params": [6] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3123
3569
|
**/
|
|
3124
|
-
|
|
3570
|
+
listaccounts:'listaccounts',
|
|
3571
|
+
|
|
3572
|
+
|
|
3125
3573
|
|
|
3126
|
-
|
|
3574
|
+
|
|
3575
|
+
|
|
3576
|
+
/** listaddressesbyasset "asset_name" (onlytotal) (count) (start)
|
|
3127
3577
|
|
|
3128
3578
|
Returns a list of all address that own the given asset (with balances)
|
|
3129
3579
|
Or returns the total size of how many address own the given asset
|
|
@@ -3143,9 +3593,13 @@ Examples:
|
|
|
3143
3593
|
> neurai-cli listaddressesbyasset "ASSET_NAME" true
|
|
3144
3594
|
> neurai-cli listaddressesbyasset "ASSET_NAME"
|
|
3145
3595
|
**/
|
|
3146
|
-
|
|
3596
|
+
listaddressesbyasset:'listaddressesbyasset',
|
|
3597
|
+
|
|
3598
|
+
|
|
3147
3599
|
|
|
3148
|
-
|
|
3600
|
+
|
|
3601
|
+
|
|
3602
|
+
/** listaddressesfortag tag_name
|
|
3149
3603
|
|
|
3150
3604
|
List all addresses that have been assigned a given tag
|
|
3151
3605
|
|
|
@@ -3161,9 +3615,13 @@ Examples:
|
|
|
3161
3615
|
> neurai-cli listaddressesfortag "#TAG"
|
|
3162
3616
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressesfortag", "params": ["#TAG"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3163
3617
|
**/
|
|
3164
|
-
|
|
3618
|
+
listaddressesfortag:'listaddressesfortag',
|
|
3619
|
+
|
|
3165
3620
|
|
|
3166
|
-
|
|
3621
|
+
|
|
3622
|
+
|
|
3623
|
+
|
|
3624
|
+
/** listaddressgroupings
|
|
3167
3625
|
|
|
3168
3626
|
Lists groups of addresses which have had their common ownership
|
|
3169
3627
|
made public by common use as inputs or as the resulting change
|
|
@@ -3186,9 +3644,13 @@ Examples:
|
|
|
3186
3644
|
> neurai-cli listaddressgroupings
|
|
3187
3645
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressgroupings", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3188
3646
|
**/
|
|
3189
|
-
|
|
3647
|
+
listaddressgroupings:'listaddressgroupings',
|
|
3648
|
+
|
|
3649
|
+
|
|
3650
|
+
|
|
3651
|
+
|
|
3190
3652
|
|
|
3191
|
-
|
|
3653
|
+
/** listaddressrestrictions address
|
|
3192
3654
|
|
|
3193
3655
|
List all assets that have frozen this address
|
|
3194
3656
|
|
|
@@ -3204,9 +3666,13 @@ Examples:
|
|
|
3204
3666
|
> neurai-cli listaddressrestrictions "address"
|
|
3205
3667
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressrestrictions", "params": ["address"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3206
3668
|
**/
|
|
3207
|
-
|
|
3669
|
+
listaddressrestrictions:'listaddressrestrictions',
|
|
3208
3670
|
|
|
3209
|
-
|
|
3671
|
+
|
|
3672
|
+
|
|
3673
|
+
|
|
3674
|
+
|
|
3675
|
+
/** listassetbalancesbyaddress "address" (onlytotal) (count) (start)
|
|
3210
3676
|
|
|
3211
3677
|
Returns a list of all asset balances for an address.
|
|
3212
3678
|
|
|
@@ -3227,9 +3693,13 @@ Examples:
|
|
|
3227
3693
|
> neurai-cli listassetbalancesbyaddress "myaddress" true
|
|
3228
3694
|
> neurai-cli listassetbalancesbyaddress "myaddress"
|
|
3229
3695
|
**/
|
|
3230
|
-
|
|
3696
|
+
listassetbalancesbyaddress:'listassetbalancesbyaddress',
|
|
3697
|
+
|
|
3698
|
+
|
|
3699
|
+
|
|
3231
3700
|
|
|
3232
|
-
|
|
3701
|
+
|
|
3702
|
+
/** listassets "( asset )" ( verbose ) ( count ) ( start )
|
|
3233
3703
|
|
|
3234
3704
|
Returns a list of all assets
|
|
3235
3705
|
|
|
@@ -3266,9 +3736,13 @@ Examples:
|
|
|
3266
3736
|
> neurai-cli listassets ASSET
|
|
3267
3737
|
> neurai-cli listassets "ASSET*" true 10 20
|
|
3268
3738
|
**/
|
|
3269
|
-
|
|
3739
|
+
listassets:'listassets',
|
|
3740
|
+
|
|
3741
|
+
|
|
3742
|
+
|
|
3270
3743
|
|
|
3271
|
-
|
|
3744
|
+
|
|
3745
|
+
/** listbanned
|
|
3272
3746
|
|
|
3273
3747
|
List all banned IPs/Subnets.
|
|
3274
3748
|
|
|
@@ -3276,9 +3750,13 @@ Examples:
|
|
|
3276
3750
|
> neurai-cli listbanned
|
|
3277
3751
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listbanned", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3278
3752
|
**/
|
|
3279
|
-
|
|
3753
|
+
listbanned:'listbanned',
|
|
3754
|
+
|
|
3755
|
+
|
|
3280
3756
|
|
|
3281
|
-
|
|
3757
|
+
|
|
3758
|
+
|
|
3759
|
+
/** listglobalrestrictions
|
|
3282
3760
|
|
|
3283
3761
|
List all global restricted assets
|
|
3284
3762
|
|
|
@@ -3291,9 +3769,13 @@ Examples:
|
|
|
3291
3769
|
> neurai-cli listglobalrestrictions
|
|
3292
3770
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listglobalrestrictions", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3293
3771
|
**/
|
|
3294
|
-
|
|
3772
|
+
listglobalrestrictions:'listglobalrestrictions',
|
|
3773
|
+
|
|
3774
|
+
|
|
3295
3775
|
|
|
3296
|
-
|
|
3776
|
+
|
|
3777
|
+
|
|
3778
|
+
/** listlockunspent
|
|
3297
3779
|
|
|
3298
3780
|
Returns list of temporarily unspendable outputs.
|
|
3299
3781
|
See the lockunspent call to lock and unlock transactions for spending.
|
|
@@ -3324,9 +3806,13 @@ Unlock the transaction again
|
|
|
3324
3806
|
As a json rpc call
|
|
3325
3807
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listlockunspent", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3326
3808
|
**/
|
|
3327
|
-
|
|
3809
|
+
listlockunspent:'listlockunspent',
|
|
3810
|
+
|
|
3328
3811
|
|
|
3329
|
-
|
|
3812
|
+
|
|
3813
|
+
|
|
3814
|
+
|
|
3815
|
+
/** listmyassets "( asset )" ( verbose ) ( count ) ( start ) (confs)
|
|
3330
3816
|
|
|
3331
3817
|
Returns a list of all asset that are owned by this wallet
|
|
3332
3818
|
|
|
@@ -3367,9 +3853,13 @@ Examples:
|
|
|
3367
3853
|
> neurai-cli listmyassets "ASSET*" true 10 20
|
|
3368
3854
|
> neurai-cli listmyassets "ASSET*" true 10 20 1
|
|
3369
3855
|
**/
|
|
3370
|
-
|
|
3856
|
+
listmyassets:'listmyassets',
|
|
3857
|
+
|
|
3858
|
+
|
|
3859
|
+
|
|
3860
|
+
|
|
3371
3861
|
|
|
3372
|
-
|
|
3862
|
+
/** listreceivedbyaccount ( minconf include_empty include_watchonly)
|
|
3373
3863
|
|
|
3374
3864
|
DEPRECATED. List balances by account.
|
|
3375
3865
|
|
|
@@ -3395,9 +3885,13 @@ Examples:
|
|
|
3395
3885
|
> neurai-cli listreceivedbyaccount 6 true
|
|
3396
3886
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listreceivedbyaccount", "params": [6, true, true] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3397
3887
|
**/
|
|
3398
|
-
|
|
3888
|
+
listreceivedbyaccount:'listreceivedbyaccount',
|
|
3399
3889
|
|
|
3400
|
-
|
|
3890
|
+
|
|
3891
|
+
|
|
3892
|
+
|
|
3893
|
+
|
|
3894
|
+
/** listreceivedbyaddress ( minconf include_empty include_watchonly)
|
|
3401
3895
|
|
|
3402
3896
|
List balances by receiving address.
|
|
3403
3897
|
|
|
@@ -3428,9 +3922,13 @@ Examples:
|
|
|
3428
3922
|
> neurai-cli listreceivedbyaddress 6 true
|
|
3429
3923
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listreceivedbyaddress", "params": [6, true, true] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3430
3924
|
**/
|
|
3431
|
-
|
|
3925
|
+
listreceivedbyaddress:'listreceivedbyaddress',
|
|
3926
|
+
|
|
3927
|
+
|
|
3928
|
+
|
|
3432
3929
|
|
|
3433
|
-
|
|
3930
|
+
|
|
3931
|
+
/** listsinceblock ( "blockhash" target_confirmations include_watchonly include_removed )
|
|
3434
3932
|
|
|
3435
3933
|
Get all transactions in blocks since block [blockhash], or all transactions if omitted.
|
|
3436
3934
|
If "blockhash" is no longer a part of the main chain, transactions from the fork point onward are included.
|
|
@@ -3480,9 +3978,13 @@ Examples:
|
|
|
3480
3978
|
> neurai-cli listsinceblock "000000000000000bacf66f7497b7dc45ef753ee9a7d38571037cdb1a57f663ad" 6
|
|
3481
3979
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listsinceblock", "params": ["000000000000000bacf66f7497b7dc45ef753ee9a7d38571037cdb1a57f663ad", 6] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3482
3980
|
**/
|
|
3483
|
-
|
|
3981
|
+
listsinceblock:'listsinceblock',
|
|
3982
|
+
|
|
3983
|
+
|
|
3984
|
+
|
|
3484
3985
|
|
|
3485
|
-
|
|
3986
|
+
|
|
3987
|
+
/** listsnapshotrequests ["asset_name" [block_height]]
|
|
3486
3988
|
|
|
3487
3989
|
List snapshot request details.
|
|
3488
3990
|
|
|
@@ -3502,9 +4004,13 @@ Examples:
|
|
|
3502
4004
|
> neurai-cli listsnapshotrequests
|
|
3503
4005
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listsnapshotrequests", "params": ["TRONCO" 345333] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3504
4006
|
**/
|
|
3505
|
-
|
|
4007
|
+
listsnapshotrequests:'listsnapshotrequests',
|
|
4008
|
+
|
|
4009
|
+
|
|
3506
4010
|
|
|
3507
|
-
|
|
4011
|
+
|
|
4012
|
+
|
|
4013
|
+
/** listtagsforaddress address
|
|
3508
4014
|
|
|
3509
4015
|
List all tags assigned to an address
|
|
3510
4016
|
|
|
@@ -3520,9 +4026,13 @@ Examples:
|
|
|
3520
4026
|
> neurai-cli listtagsforaddress "address"
|
|
3521
4027
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listtagsforaddress", "params": ["address"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3522
4028
|
**/
|
|
3523
|
-
|
|
4029
|
+
listtagsforaddress:'listtagsforaddress',
|
|
4030
|
+
|
|
4031
|
+
|
|
3524
4032
|
|
|
3525
|
-
|
|
4033
|
+
|
|
4034
|
+
|
|
4035
|
+
/** listtransactions ( "account" count skip include_watchonly)
|
|
3526
4036
|
|
|
3527
4037
|
Returns up to 'count' most recent transactions skipping the first 'from' transactions for account 'account'.
|
|
3528
4038
|
|
|
@@ -3585,9 +4095,13 @@ List transactions 100 to 120
|
|
|
3585
4095
|
As a json rpc call
|
|
3586
4096
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listtransactions", "params": ["*", 20, 100] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3587
4097
|
**/
|
|
3588
|
-
|
|
4098
|
+
listtransactions:'listtransactions',
|
|
4099
|
+
|
|
3589
4100
|
|
|
3590
|
-
|
|
4101
|
+
|
|
4102
|
+
|
|
4103
|
+
|
|
4104
|
+
/** listunspent ( minconf maxconf ["addresses",...] [include_unsafe] [query_options])
|
|
3591
4105
|
|
|
3592
4106
|
Returns array of unspent transaction outputs
|
|
3593
4107
|
with between minconf and maxconf (inclusive) confirmations.
|
|
@@ -3638,9 +4152,13 @@ Examples
|
|
|
3638
4152
|
> neurai-cli listunspent 6 9999999 '[]' true '{ "minimumAmount": 0.005 }'
|
|
3639
4153
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listunspent", "params": [6, 9999999, [] , true, { "minimumAmount": 0.005 } ] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3640
4154
|
**/
|
|
3641
|
-
|
|
4155
|
+
listunspent:'listunspent',
|
|
4156
|
+
|
|
4157
|
+
|
|
4158
|
+
|
|
4159
|
+
|
|
3642
4160
|
|
|
3643
|
-
|
|
4161
|
+
/** listwallets
|
|
3644
4162
|
Returns a list of currently loaded wallets.
|
|
3645
4163
|
For full information on the wallet, use "getwalletinfo"
|
|
3646
4164
|
|
|
@@ -3654,9 +4172,13 @@ Examples:
|
|
|
3654
4172
|
> neurai-cli listwallets
|
|
3655
4173
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listwallets", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3656
4174
|
**/
|
|
3657
|
-
|
|
4175
|
+
listwallets:'listwallets',
|
|
3658
4176
|
|
|
3659
|
-
|
|
4177
|
+
|
|
4178
|
+
|
|
4179
|
+
|
|
4180
|
+
|
|
4181
|
+
/** lockunspent unlock ([{"txid":"txid","vout":n},...])
|
|
3660
4182
|
|
|
3661
4183
|
Updates list of temporarily unspendable outputs.
|
|
3662
4184
|
Temporarily lock (unlock=false) or unlock (unlock=true) specified transaction outputs.
|
|
@@ -3697,9 +4219,13 @@ Unlock the transaction again
|
|
|
3697
4219
|
As a json rpc call
|
|
3698
4220
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "lockunspent", "params": [false, "[{\"txid\":\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\",\"vout\":1}]"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3699
4221
|
**/
|
|
3700
|
-
|
|
4222
|
+
lockunspent:'lockunspent',
|
|
4223
|
+
|
|
4224
|
+
|
|
4225
|
+
|
|
3701
4226
|
|
|
3702
|
-
|
|
4227
|
+
|
|
4228
|
+
/** move "fromaccount" "toaccount" amount ( minconf "comment" )
|
|
3703
4229
|
|
|
3704
4230
|
DEPRECATED. Move a specified amount from one account in your wallet to another.
|
|
3705
4231
|
|
|
@@ -3724,9 +4250,13 @@ Move 0.01 XNA timotei to akiko with a comment and funds have 6 confirmations
|
|
|
3724
4250
|
As a json rpc call
|
|
3725
4251
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "move", "params": ["timotei", "akiko", 0.01, 6, "happy birthday!"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3726
4252
|
**/
|
|
3727
|
-
|
|
4253
|
+
move:'move',
|
|
4254
|
+
|
|
4255
|
+
|
|
4256
|
+
|
|
3728
4257
|
|
|
3729
|
-
|
|
4258
|
+
|
|
4259
|
+
/** ping
|
|
3730
4260
|
|
|
3731
4261
|
Requests that a ping be sent to all other nodes, to measure ping time.
|
|
3732
4262
|
Results provided in getpeerinfo, pingtime and pingwait fields are decimal seconds.
|
|
@@ -3736,9 +4266,13 @@ Examples:
|
|
|
3736
4266
|
> neurai-cli ping
|
|
3737
4267
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "ping", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3738
4268
|
**/
|
|
3739
|
-
|
|
4269
|
+
ping:'ping',
|
|
4270
|
+
|
|
4271
|
+
|
|
3740
4272
|
|
|
3741
|
-
|
|
4273
|
+
|
|
4274
|
+
|
|
4275
|
+
/** pprpcsb "header_hash" "mix_hash" "nonce"
|
|
3742
4276
|
|
|
3743
4277
|
Attempts to submit new block to network mined by kawpow gpu miner via rpc.
|
|
3744
4278
|
|
|
@@ -3753,9 +4287,13 @@ Examples:
|
|
|
3753
4287
|
> neurai-cli pprpcsb "header_hash" "mix_hash" 100000
|
|
3754
4288
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "pprpcsb", "params": ["header_hash" "mix_hash" 100000] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3755
4289
|
**/
|
|
3756
|
-
|
|
4290
|
+
pprpcsb:'pprpcsb',
|
|
4291
|
+
|
|
4292
|
+
|
|
3757
4293
|
|
|
3758
|
-
|
|
4294
|
+
|
|
4295
|
+
|
|
4296
|
+
/** preciousblock "blockhash"
|
|
3759
4297
|
|
|
3760
4298
|
Treats a block as if it were received before others with the same work.
|
|
3761
4299
|
|
|
@@ -3772,9 +4310,13 @@ Examples:
|
|
|
3772
4310
|
> neurai-cli preciousblock "blockhash"
|
|
3773
4311
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "preciousblock", "params": ["blockhash"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3774
4312
|
**/
|
|
3775
|
-
|
|
4313
|
+
preciousblock:'preciousblock',
|
|
4314
|
+
|
|
3776
4315
|
|
|
3777
|
-
|
|
4316
|
+
|
|
4317
|
+
|
|
4318
|
+
|
|
4319
|
+
/** prioritisetransaction <txid> <dummy value> <fee delta>
|
|
3778
4320
|
Accepts the transaction into mined blocks at a higher (or lower) priority
|
|
3779
4321
|
|
|
3780
4322
|
Arguments:
|
|
@@ -3792,9 +4334,13 @@ Examples:
|
|
|
3792
4334
|
> neurai-cli prioritisetransaction "txid" 0.0 10000
|
|
3793
4335
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "prioritisetransaction", "params": ["txid", 0.0, 10000] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3794
4336
|
**/
|
|
3795
|
-
|
|
4337
|
+
prioritisetransaction:'prioritisetransaction',
|
|
4338
|
+
|
|
4339
|
+
|
|
4340
|
+
|
|
4341
|
+
|
|
3796
4342
|
|
|
3797
|
-
|
|
4343
|
+
/** pruneblockchain
|
|
3798
4344
|
|
|
3799
4345
|
Arguments:
|
|
3800
4346
|
1. "height" (numeric, required) The block height to prune up to. May be set to a discrete height, or a unix timestamp
|
|
@@ -3807,9 +4353,13 @@ Examples:
|
|
|
3807
4353
|
> neurai-cli pruneblockchain 1000
|
|
3808
4354
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "pruneblockchain", "params": [1000] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3809
4355
|
**/
|
|
3810
|
-
|
|
4356
|
+
pruneblockchain:'pruneblockchain',
|
|
3811
4357
|
|
|
3812
|
-
|
|
4358
|
+
|
|
4359
|
+
|
|
4360
|
+
|
|
4361
|
+
|
|
4362
|
+
/** purgesnapshot "asset_name" block_height
|
|
3813
4363
|
|
|
3814
4364
|
Removes details for the asset snapshot, at the specified height
|
|
3815
4365
|
|
|
@@ -3827,9 +4377,13 @@ Examples:
|
|
|
3827
4377
|
> neurai-cli purgesnapshot "ASSET_NAME" 28546
|
|
3828
4378
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "purgesnapshot", "params": ["ASSET_NAME" 28546] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3829
4379
|
**/
|
|
3830
|
-
|
|
4380
|
+
purgesnapshot:'purgesnapshot',
|
|
4381
|
+
|
|
4382
|
+
|
|
4383
|
+
|
|
3831
4384
|
|
|
3832
|
-
|
|
4385
|
+
|
|
4386
|
+
/** reissue "asset_name" qty "to_address" "change_address" ( reissuable ) ( new_units) "( new_ipfs )"
|
|
3833
4387
|
|
|
3834
4388
|
Reissues a quantity of an asset to an owned address if you own the Owner Token
|
|
3835
4389
|
Can change the reissuable flag during reissuance
|
|
@@ -3850,9 +4404,13 @@ Examples:
|
|
|
3850
4404
|
> neurai-cli reissue "ASSET_NAME" 20 "address"
|
|
3851
4405
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "reissue", "params": ["ASSET_NAME" 20 "address" "change_address" "true" 8 "Qmd286K6pohQcTKYqnS1YhWrCiS4gz7Xi34sdwMe9USZ7u"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3852
4406
|
**/
|
|
3853
|
-
|
|
4407
|
+
reissue:'reissue',
|
|
4408
|
+
|
|
4409
|
+
|
|
4410
|
+
|
|
3854
4411
|
|
|
3855
|
-
|
|
4412
|
+
|
|
4413
|
+
/** reissuerestrictedasset "asset_name" qty to_address ( change_verifier ) ( "new_verifier" ) "( change_address )" ( new_units ) ( reissuable ) "( new_ipfs )"
|
|
3856
4414
|
|
|
3857
4415
|
Reissue an already created restricted asset
|
|
3858
4416
|
Reissuable is true/false for whether additional asset quantity can be created and if the verifier string can be changed
|
|
@@ -3878,9 +4436,13 @@ Examples:
|
|
|
3878
4436
|
> neurai-cli reissuerestrictedasset "$ASSET_NAME" 1000 "myaddress" true "KYC & !AML" "changeaddress" -1 true
|
|
3879
4437
|
> neurai-cli reissuerestrictedasset "$ASSET_NAME" 1000 "myaddress" false "" "changeaddress" -1 false QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E
|
|
3880
4438
|
**/
|
|
3881
|
-
|
|
4439
|
+
reissuerestrictedasset:'reissuerestrictedasset',
|
|
4440
|
+
|
|
4441
|
+
|
|
3882
4442
|
|
|
3883
|
-
|
|
4443
|
+
|
|
4444
|
+
|
|
4445
|
+
/** removeprunedfunds "txid"
|
|
3884
4446
|
|
|
3885
4447
|
Deletes the specified transaction from the wallet. Meant for use with pruned wallets and as a companion to importprunedfunds. This will affect wallet balances.
|
|
3886
4448
|
|
|
@@ -3893,9 +4455,13 @@ Examples:
|
|
|
3893
4455
|
As a JSON-RPC call
|
|
3894
4456
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "removeprunedfunds", "params": ["a8d0c0184dde994a09ec054286f1ce581bebf46446a512166eae7628734ea0a5"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3895
4457
|
**/
|
|
3896
|
-
|
|
4458
|
+
removeprunedfunds:'removeprunedfunds',
|
|
4459
|
+
|
|
4460
|
+
|
|
3897
4461
|
|
|
3898
|
-
|
|
4462
|
+
|
|
4463
|
+
|
|
4464
|
+
/** removetagfromaddress tag_name to_address (change_address) (asset_data)
|
|
3899
4465
|
|
|
3900
4466
|
Remove a tag from a address
|
|
3901
4467
|
|
|
@@ -3914,9 +4480,13 @@ Examples:
|
|
|
3914
4480
|
> neurai-cli removetagfromaddress "#TAG" "to_address" "change_address"
|
|
3915
4481
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "removetagfromaddress", "params": ["#TAG" "to_address" "change_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3916
4482
|
**/
|
|
3917
|
-
|
|
4483
|
+
removetagfromaddress:'removetagfromaddress',
|
|
4484
|
+
|
|
3918
4485
|
|
|
3919
|
-
|
|
4486
|
+
|
|
4487
|
+
|
|
4488
|
+
|
|
4489
|
+
/** requestsnapshot "asset_name" block_height
|
|
3920
4490
|
|
|
3921
4491
|
Schedules a snapshot of the specified asset at the specified block height.
|
|
3922
4492
|
|
|
@@ -3933,9 +4503,13 @@ Examples:
|
|
|
3933
4503
|
> neurai-cli requestsnapshot "TRONCO" 12345
|
|
3934
4504
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "requestsnapshot", "params": ["PHATSTACKS" 34987] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3935
4505
|
**/
|
|
3936
|
-
|
|
4506
|
+
requestsnapshot:'requestsnapshot',
|
|
4507
|
+
|
|
4508
|
+
|
|
4509
|
+
|
|
4510
|
+
|
|
3937
4511
|
|
|
3938
|
-
|
|
4512
|
+
/** rescanblockchain ("start_height") ("stop_height")
|
|
3939
4513
|
|
|
3940
4514
|
Rescan the local blockchain for wallet related transactions.
|
|
3941
4515
|
|
|
@@ -3953,9 +4527,13 @@ Examples:
|
|
|
3953
4527
|
> neurai-cli rescanblockchain 100000 120000
|
|
3954
4528
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "rescanblockchain", "params": [100000, 120000] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3955
4529
|
**/
|
|
3956
|
-
|
|
4530
|
+
rescanblockchain:'rescanblockchain',
|
|
3957
4531
|
|
|
3958
|
-
|
|
4532
|
+
|
|
4533
|
+
|
|
4534
|
+
|
|
4535
|
+
|
|
4536
|
+
/** savemempool
|
|
3959
4537
|
|
|
3960
4538
|
Dumps the mempool to disk.
|
|
3961
4539
|
|
|
@@ -3963,9 +4541,13 @@ Examples:
|
|
|
3963
4541
|
> neurai-cli savemempool
|
|
3964
4542
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "savemempool", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3965
4543
|
**/
|
|
3966
|
-
|
|
4544
|
+
savemempool:'savemempool',
|
|
4545
|
+
|
|
4546
|
+
|
|
4547
|
+
|
|
3967
4548
|
|
|
3968
|
-
|
|
4549
|
+
|
|
4550
|
+
/** sendfrom "fromaccount" "toaddress" amount ( minconf "comment" "comment_to" )
|
|
3969
4551
|
|
|
3970
4552
|
DEPRECATED (use sendtoaddress). Sent an amount from an account to a neurai address.
|
|
3971
4553
|
|
|
@@ -3997,9 +4579,13 @@ Send 0.01 from the tabby account to the given address, funds must have at least
|
|
|
3997
4579
|
As a json rpc call
|
|
3998
4580
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendfrom", "params": ["tabby", "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd", 0.01, 6, "donation", "seans outpost"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3999
4581
|
**/
|
|
4000
|
-
|
|
4582
|
+
sendfrom:'sendfrom',
|
|
4583
|
+
|
|
4584
|
+
|
|
4585
|
+
|
|
4001
4586
|
|
|
4002
|
-
|
|
4587
|
+
|
|
4588
|
+
/** sendfromaddress "from_address" "to_address" amount ( "comment" "comment_to" subtractfeefromamount replaceable conf_target "estimate_mode")
|
|
4003
4589
|
|
|
4004
4590
|
Send an amount from a specific address to a given address. All xna change will get sent back to the from_address
|
|
4005
4591
|
|
|
@@ -4029,9 +4615,13 @@ Examples:
|
|
|
4029
4615
|
> neurai-cli sendfromaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1 "" "" true
|
|
4030
4616
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendfromaddress", "params": ["1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd", 0.1, "donation", "seans outpost"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4031
4617
|
**/
|
|
4032
|
-
|
|
4618
|
+
sendfromaddress:'sendfromaddress',
|
|
4619
|
+
|
|
4620
|
+
|
|
4033
4621
|
|
|
4034
|
-
|
|
4622
|
+
|
|
4623
|
+
|
|
4624
|
+
/** sendmany "fromaccount" {"address":amount,...} ( minconf "comment" ["address",...] replaceable conf_target "estimate_mode")
|
|
4035
4625
|
|
|
4036
4626
|
Send multiple times. Amounts are double-precision floating point numbers.
|
|
4037
4627
|
|
|
@@ -4076,9 +4666,13 @@ Send two amounts to two different addresses, subtract fee from amount:
|
|
|
4076
4666
|
As a json rpc call
|
|
4077
4667
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendmany", "params": ["", "{\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\":0.01,\"1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz\":0.02}", 6, "testing"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4078
4668
|
**/
|
|
4079
|
-
|
|
4669
|
+
sendmany:'sendmany',
|
|
4670
|
+
|
|
4671
|
+
|
|
4080
4672
|
|
|
4081
|
-
|
|
4673
|
+
|
|
4674
|
+
|
|
4675
|
+
/** sendmessage "channel_name" "ipfs_hash" (expire_time)
|
|
4082
4676
|
|
|
4083
4677
|
Creates and broadcasts a message transaction to the network for a channel this wallet owns
|
|
4084
4678
|
Arguments:
|
|
@@ -4094,9 +4688,13 @@ Examples:
|
|
|
4094
4688
|
> neurai-cli sendmessage "ASSET_NAME!" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
4095
4689
|
> neurai-cli sendmessage "ASSET_NAME!" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
4096
4690
|
**/
|
|
4097
|
-
|
|
4691
|
+
sendmessage:'sendmessage',
|
|
4692
|
+
|
|
4098
4693
|
|
|
4099
|
-
|
|
4694
|
+
|
|
4695
|
+
|
|
4696
|
+
|
|
4697
|
+
/** sendrawtransaction "hexstring" ( allowhighfees )
|
|
4100
4698
|
|
|
4101
4699
|
Submits raw transaction (serialized, hex-encoded) to local node and network.
|
|
4102
4700
|
|
|
@@ -4122,9 +4720,13 @@ Send the transaction (signed hex)
|
|
|
4122
4720
|
As a json rpc call
|
|
4123
4721
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendrawtransaction", "params": ["signedhex"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4124
4722
|
**/
|
|
4125
|
-
|
|
4723
|
+
sendrawtransaction:'sendrawtransaction',
|
|
4724
|
+
|
|
4725
|
+
|
|
4726
|
+
|
|
4727
|
+
|
|
4126
4728
|
|
|
4127
|
-
|
|
4729
|
+
/** sendtoaddress "address" amount ( "comment" "comment_to" subtractfeefromamount replaceable conf_target "estimate_mode")
|
|
4128
4730
|
|
|
4129
4731
|
Send an amount to a given address.
|
|
4130
4732
|
|
|
@@ -4153,9 +4755,13 @@ Examples:
|
|
|
4153
4755
|
> neurai-cli sendtoaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1 "" "" true
|
|
4154
4756
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendtoaddress", "params": ["1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd", 0.1, "donation", "seans outpost"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4155
4757
|
**/
|
|
4156
|
-
|
|
4758
|
+
sendtoaddress:'sendtoaddress',
|
|
4157
4759
|
|
|
4158
|
-
|
|
4760
|
+
|
|
4761
|
+
|
|
4762
|
+
|
|
4763
|
+
|
|
4764
|
+
/** setaccount "address" "account"
|
|
4159
4765
|
|
|
4160
4766
|
DEPRECATED. Sets the account associated with the given address.
|
|
4161
4767
|
|
|
@@ -4167,9 +4773,13 @@ Examples:
|
|
|
4167
4773
|
> neurai-cli setaccount "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX" "tabby"
|
|
4168
4774
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "setaccount", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX", "tabby"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4169
4775
|
**/
|
|
4170
|
-
|
|
4776
|
+
setaccount:'setaccount',
|
|
4777
|
+
|
|
4778
|
+
|
|
4779
|
+
|
|
4171
4780
|
|
|
4172
|
-
|
|
4781
|
+
|
|
4782
|
+
/** setban "subnet" "add|remove" (bantime) (absolute)
|
|
4173
4783
|
|
|
4174
4784
|
Attempts to add or remove an IP/Subnet from the banned list.
|
|
4175
4785
|
|
|
@@ -4184,9 +4794,13 @@ Examples:
|
|
|
4184
4794
|
> neurai-cli setban "192.168.0.0/24" "add"
|
|
4185
4795
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "setban", "params": ["192.168.0.6", "add", 86400] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4186
4796
|
**/
|
|
4187
|
-
|
|
4797
|
+
setban:'setban',
|
|
4798
|
+
|
|
4799
|
+
|
|
4800
|
+
|
|
4188
4801
|
|
|
4189
|
-
|
|
4802
|
+
|
|
4803
|
+
/** setgenerate generate ( genproclimit )
|
|
4190
4804
|
|
|
4191
4805
|
Set 'generate' true or false to turn generation on or off.
|
|
4192
4806
|
Generation is limited to 'genproclimit' processors, -1 is unlimited.
|
|
@@ -4210,18 +4824,26 @@ Turn off generation
|
|
|
4210
4824
|
Using json rpc
|
|
4211
4825
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "setgenerate", "params": [true, 1] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4212
4826
|
**/
|
|
4213
|
-
|
|
4827
|
+
setgenerate:'setgenerate',
|
|
4828
|
+
|
|
4829
|
+
|
|
4214
4830
|
|
|
4215
|
-
|
|
4831
|
+
|
|
4832
|
+
|
|
4833
|
+
/** setnetworkactive true|false
|
|
4216
4834
|
|
|
4217
4835
|
Disable/enable all p2p network activity.
|
|
4218
4836
|
|
|
4219
4837
|
Arguments:
|
|
4220
4838
|
1. "state" (boolean, required) true to enable networking, false to disable
|
|
4221
4839
|
**/
|
|
4222
|
-
|
|
4840
|
+
setnetworkactive:'setnetworkactive',
|
|
4841
|
+
|
|
4842
|
+
|
|
4223
4843
|
|
|
4224
|
-
|
|
4844
|
+
|
|
4845
|
+
|
|
4846
|
+
/** settxfee amount
|
|
4225
4847
|
|
|
4226
4848
|
Set the transaction fee per kB. Overwrites the paytxfee parameter.
|
|
4227
4849
|
|
|
@@ -4235,9 +4857,13 @@ Examples:
|
|
|
4235
4857
|
> neurai-cli settxfee 0.00001
|
|
4236
4858
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "settxfee", "params": [0.00001] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4237
4859
|
**/
|
|
4238
|
-
|
|
4860
|
+
settxfee:'settxfee',
|
|
4861
|
+
|
|
4239
4862
|
|
|
4240
|
-
|
|
4863
|
+
|
|
4864
|
+
|
|
4865
|
+
|
|
4866
|
+
/** signmessage "address" "message"
|
|
4241
4867
|
|
|
4242
4868
|
Sign a message with the private key of an address
|
|
4243
4869
|
|
|
@@ -4262,9 +4888,13 @@ Verify the signature
|
|
|
4262
4888
|
As json rpc
|
|
4263
4889
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "signmessage", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX", "my message"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4264
4890
|
**/
|
|
4265
|
-
|
|
4891
|
+
signmessage:'signmessage',
|
|
4892
|
+
|
|
4893
|
+
|
|
4894
|
+
|
|
4895
|
+
|
|
4266
4896
|
|
|
4267
|
-
|
|
4897
|
+
/** signmessagewithprivkey "privkey" "message"
|
|
4268
4898
|
|
|
4269
4899
|
Sign a message with the private key of an address
|
|
4270
4900
|
|
|
@@ -4286,9 +4916,13 @@ Verify the signature
|
|
|
4286
4916
|
As json rpc
|
|
4287
4917
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "signmessagewithprivkey", "params": ["privkey", "my message"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4288
4918
|
**/
|
|
4289
|
-
|
|
4919
|
+
signmessagewithprivkey:'signmessagewithprivkey',
|
|
4290
4920
|
|
|
4291
|
-
|
|
4921
|
+
|
|
4922
|
+
|
|
4923
|
+
|
|
4924
|
+
|
|
4925
|
+
/** signrawtransaction "hexstring" ( [{"txid":"id","vout":n,"scriptPubKey":"hex","redeemScript":"hex"},...] ["privatekey1",...] sighashtype )
|
|
4292
4926
|
|
|
4293
4927
|
Sign inputs for raw transaction (serialized, hex-encoded).
|
|
4294
4928
|
The second optional argument (may be null) is an array of previous transaction outputs that
|
|
@@ -4343,14 +4977,22 @@ Examples:
|
|
|
4343
4977
|
> neurai-cli signrawtransaction "myhex"
|
|
4344
4978
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "signrawtransaction", "params": ["myhex"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4345
4979
|
**/
|
|
4346
|
-
|
|
4980
|
+
signrawtransaction:'signrawtransaction',
|
|
4981
|
+
|
|
4982
|
+
|
|
4983
|
+
|
|
4347
4984
|
|
|
4348
|
-
|
|
4985
|
+
|
|
4986
|
+
/** stop
|
|
4349
4987
|
|
|
4350
4988
|
Stop Neurai server.**/
|
|
4351
|
-
|
|
4989
|
+
stop:'stop',
|
|
4990
|
+
|
|
4991
|
+
|
|
4992
|
+
|
|
4352
4993
|
|
|
4353
|
-
|
|
4994
|
+
|
|
4995
|
+
/** submitblock "hexdata" ( "dummy" )
|
|
4354
4996
|
|
|
4355
4997
|
Attempts to submit new block to network.
|
|
4356
4998
|
See https://en.neurai.it/wiki/BIP_0022 for full specification.
|
|
@@ -4365,9 +5007,13 @@ Examples:
|
|
|
4365
5007
|
> neurai-cli submitblock "mydata"
|
|
4366
5008
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "submitblock", "params": ["mydata"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4367
5009
|
**/
|
|
4368
|
-
|
|
5010
|
+
submitblock:'submitblock',
|
|
5011
|
+
|
|
5012
|
+
|
|
4369
5013
|
|
|
4370
|
-
|
|
5014
|
+
|
|
5015
|
+
|
|
5016
|
+
/** subscribetochannel
|
|
4371
5017
|
|
|
4372
5018
|
Subscribe to a certain message channel
|
|
4373
5019
|
|
|
@@ -4382,9 +5028,13 @@ Examples:
|
|
|
4382
5028
|
> neurai-cli subscribetochannel "ASSET_NAME!"
|
|
4383
5029
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "subscribetochannel", "params": ["ASSET_NAME!"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4384
5030
|
**/
|
|
4385
|
-
|
|
5031
|
+
subscribetochannel:'subscribetochannel',
|
|
5032
|
+
|
|
5033
|
+
|
|
4386
5034
|
|
|
4387
|
-
|
|
5035
|
+
|
|
5036
|
+
|
|
5037
|
+
/** testmempoolaccept ["rawtxs"] ( allowhighfees )
|
|
4388
5038
|
|
|
4389
5039
|
Returns if raw transaction (serialized, hex-encoded) would be accepted by mempool.
|
|
4390
5040
|
|
|
@@ -4420,9 +5070,13 @@ Test acceptance of the transaction (signed hex)
|
|
|
4420
5070
|
As a json rpc call
|
|
4421
5071
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "testmempoolaccept", "params": [["signedhex"]] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4422
5072
|
**/
|
|
4423
|
-
|
|
5073
|
+
testmempoolaccept:'testmempoolaccept',
|
|
5074
|
+
|
|
4424
5075
|
|
|
4425
|
-
|
|
5076
|
+
|
|
5077
|
+
|
|
5078
|
+
|
|
5079
|
+
/** transfer "asset_name" qty "to_address" "message" expire_time "change_address" "asset_change_address"
|
|
4426
5080
|
|
|
4427
5081
|
Transfers a quantity of an owned asset to a given address
|
|
4428
5082
|
Arguments:
|
|
@@ -4443,9 +5097,13 @@ Examples:
|
|
|
4443
5097
|
> neurai-cli transfer "ASSET_NAME" 20 "address" "" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
4444
5098
|
> neurai-cli transfer "ASSET_NAME" 20 "address" "" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
4445
5099
|
**/
|
|
4446
|
-
|
|
5100
|
+
transfer:'transfer',
|
|
5101
|
+
|
|
5102
|
+
|
|
5103
|
+
|
|
5104
|
+
|
|
4447
5105
|
|
|
4448
|
-
|
|
5106
|
+
/** transferfromaddress "asset_name" "from_address" qty "to_address" "message" expire_time "xna_change_address" "asset_change_address"
|
|
4449
5107
|
|
|
4450
5108
|
Transfer a quantity of an owned asset in a specific address to a given address
|
|
4451
5109
|
Arguments:
|
|
@@ -4467,9 +5125,13 @@ Examples:
|
|
|
4467
5125
|
> neurai-cli transferfromaddress "ASSET_NAME" "fromaddress" 20 "address" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E", 156545652
|
|
4468
5126
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "transferfromaddress", "params": ["ASSET_NAME" "fromaddress" 20 "address" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E", 156545652] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4469
5127
|
**/
|
|
4470
|
-
|
|
5128
|
+
transferfromaddress:'transferfromaddress',
|
|
4471
5129
|
|
|
4472
|
-
|
|
5130
|
+
|
|
5131
|
+
|
|
5132
|
+
|
|
5133
|
+
|
|
5134
|
+
/** transferfromaddresses "asset_name" ["from_addresses"] qty "to_address" "message" expire_time "xna_change_address" "asset_change_address"
|
|
4473
5135
|
|
|
4474
5136
|
Transfer a quantity of an owned asset in specific address(es) to a given address
|
|
4475
5137
|
Arguments:
|
|
@@ -4491,9 +5153,13 @@ Examples:
|
|
|
4491
5153
|
> neurai-cli transferfromaddresses "ASSET_NAME" '["fromaddress1", "fromaddress2"]' 20 "to_address" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 154652365
|
|
4492
5154
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "transferfromaddresses", "params": ["ASSET_NAME" '["fromaddress1", "fromaddress2"]' 20 "to_address" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 154652365] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4493
5155
|
**/
|
|
4494
|
-
|
|
5156
|
+
transferfromaddresses:'transferfromaddresses',
|
|
5157
|
+
|
|
5158
|
+
|
|
5159
|
+
|
|
4495
5160
|
|
|
4496
|
-
|
|
5161
|
+
|
|
5162
|
+
/** transferqualifier "qualifier_name" qty "to_address" ("change_address") ("message") (expire_time)
|
|
4497
5163
|
|
|
4498
5164
|
Transfer a qualifier asset owned by this wallet to the given address
|
|
4499
5165
|
Arguments:
|
|
@@ -4513,9 +5179,13 @@ Examples:
|
|
|
4513
5179
|
> neurai-cli transferqualifier "#QUALIFIER" 20 "to_address" "" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
4514
5180
|
> neurai-cli transferqualifier "#QUALIFIER" 20 "to_address" "change_address" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
4515
5181
|
**/
|
|
4516
|
-
|
|
5182
|
+
transferqualifier:'transferqualifier',
|
|
5183
|
+
|
|
5184
|
+
|
|
5185
|
+
|
|
4517
5186
|
|
|
4518
|
-
|
|
5187
|
+
|
|
5188
|
+
/** unfreezeaddress asset_name address (change_address) (asset_data)
|
|
4519
5189
|
|
|
4520
5190
|
Unfreeze an address from transferring a restricted asset
|
|
4521
5191
|
|
|
@@ -4534,9 +5204,13 @@ Examples:
|
|
|
4534
5204
|
> neurai-cli unfreezeaddress "$RESTRICTED_ASSET" "address" "change_address"
|
|
4535
5205
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "unfreezeaddress", "params": ["$RESTRICTED_ASSET" "address" "change_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4536
5206
|
**/
|
|
4537
|
-
|
|
5207
|
+
unfreezeaddress:'unfreezeaddress',
|
|
5208
|
+
|
|
5209
|
+
|
|
4538
5210
|
|
|
4539
|
-
|
|
5211
|
+
|
|
5212
|
+
|
|
5213
|
+
/** unfreezerestrictedasset asset_name (change_address) (asset_data)
|
|
4540
5214
|
|
|
4541
5215
|
Unfreeze all trading for a specific restricted asset
|
|
4542
5216
|
|
|
@@ -4554,9 +5228,13 @@ Examples:
|
|
|
4554
5228
|
> neurai-cli unfreezerestrictedasset "$RESTRICTED_ASSET" "change_address"
|
|
4555
5229
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "unfreezerestrictedasset", "params": ["$RESTRICTED_ASSET" "change_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4556
5230
|
**/
|
|
4557
|
-
|
|
5231
|
+
unfreezerestrictedasset:'unfreezerestrictedasset',
|
|
5232
|
+
|
|
5233
|
+
|
|
4558
5234
|
|
|
4559
|
-
|
|
5235
|
+
|
|
5236
|
+
|
|
5237
|
+
/** unsubscribefromchannel
|
|
4560
5238
|
|
|
4561
5239
|
Unsubscribe from a certain message channel
|
|
4562
5240
|
|
|
@@ -4571,9 +5249,13 @@ Examples:
|
|
|
4571
5249
|
> neurai-cli unsubscribefromchannel "ASSET_NAME!"
|
|
4572
5250
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "unsubscribefromchannel", "params": ["ASSET_NAME!"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4573
5251
|
**/
|
|
4574
|
-
|
|
5252
|
+
unsubscribefromchannel:'unsubscribefromchannel',
|
|
5253
|
+
|
|
4575
5254
|
|
|
4576
|
-
|
|
5255
|
+
|
|
5256
|
+
|
|
5257
|
+
|
|
5258
|
+
/** uptime
|
|
4577
5259
|
|
|
4578
5260
|
Returns the total uptime of the server.
|
|
4579
5261
|
|
|
@@ -4584,9 +5266,13 @@ Examples:
|
|
|
4584
5266
|
> neurai-cli uptime
|
|
4585
5267
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "uptime", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4586
5268
|
**/
|
|
4587
|
-
|
|
5269
|
+
uptime:'uptime',
|
|
5270
|
+
|
|
5271
|
+
|
|
5272
|
+
|
|
5273
|
+
|
|
4588
5274
|
|
|
4589
|
-
|
|
5275
|
+
/** validateaddress "address"
|
|
4590
5276
|
|
|
4591
5277
|
Return information about the given neurai address.
|
|
4592
5278
|
|
|
@@ -4621,9 +5307,13 @@ Examples:
|
|
|
4621
5307
|
> neurai-cli validateaddress "1PSSGeFHDnKNxiEyFrD1wcEaHr9hrQDDWc"
|
|
4622
5308
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "validateaddress", "params": ["1PSSGeFHDnKNxiEyFrD1wcEaHr9hrQDDWc"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4623
5309
|
**/
|
|
4624
|
-
|
|
5310
|
+
validateaddress:'validateaddress',
|
|
4625
5311
|
|
|
4626
|
-
|
|
5312
|
+
|
|
5313
|
+
|
|
5314
|
+
|
|
5315
|
+
|
|
5316
|
+
/** verifychain ( checklevel nblocks )
|
|
4627
5317
|
|
|
4628
5318
|
Verifies blockchain database.
|
|
4629
5319
|
|
|
@@ -4638,9 +5328,13 @@ Examples:
|
|
|
4638
5328
|
> neurai-cli verifychain
|
|
4639
5329
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "verifychain", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4640
5330
|
**/
|
|
4641
|
-
|
|
5331
|
+
verifychain:'verifychain',
|
|
5332
|
+
|
|
5333
|
+
|
|
5334
|
+
|
|
4642
5335
|
|
|
4643
|
-
|
|
5336
|
+
|
|
5337
|
+
/** verifymessage "address" "signature" "message"
|
|
4644
5338
|
|
|
4645
5339
|
Verify a signed message
|
|
4646
5340
|
|
|
@@ -4666,9 +5360,13 @@ Verify the signature
|
|
|
4666
5360
|
As json rpc
|
|
4667
5361
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "verifymessage", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX", "signature", "my message"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4668
5362
|
**/
|
|
4669
|
-
|
|
5363
|
+
verifymessage:'verifymessage',
|
|
5364
|
+
|
|
5365
|
+
|
|
5366
|
+
|
|
4670
5367
|
|
|
4671
|
-
|
|
5368
|
+
|
|
5369
|
+
/** verifytxoutproof "proof"
|
|
4672
5370
|
|
|
4673
5371
|
Verifies that a proof points to a transaction in a block, returning the transaction it commits to
|
|
4674
5372
|
and throwing an RPC error if the block is not in our best chain
|
|
@@ -4679,9 +5377,13 @@ Arguments:
|
|
|
4679
5377
|
Result:
|
|
4680
5378
|
["txid"] (array, strings) The txid(s) which the proof commits to, or empty array if the proof is invalid
|
|
4681
5379
|
**/
|
|
4682
|
-
|
|
5380
|
+
verifytxoutproof:'verifytxoutproof',
|
|
5381
|
+
|
|
5382
|
+
|
|
4683
5383
|
|
|
4684
|
-
|
|
5384
|
+
|
|
5385
|
+
|
|
5386
|
+
/** viewallmessagechannels
|
|
4685
5387
|
|
|
4686
5388
|
View all message channels the wallet is subscribed to
|
|
4687
5389
|
|
|
@@ -4694,9 +5396,13 @@ Examples:
|
|
|
4694
5396
|
> neurai-cli viewallmessagechannels
|
|
4695
5397
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewallmessagechannels", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4696
5398
|
**/
|
|
4697
|
-
|
|
5399
|
+
viewallmessagechannels:'viewallmessagechannels',
|
|
5400
|
+
|
|
5401
|
+
|
|
4698
5402
|
|
|
4699
|
-
|
|
5403
|
+
|
|
5404
|
+
|
|
5405
|
+
/** viewallmessages
|
|
4700
5406
|
|
|
4701
5407
|
View all messages that the wallet contains
|
|
4702
5408
|
|
|
@@ -4713,9 +5419,13 @@ Examples:
|
|
|
4713
5419
|
> neurai-cli viewallmessages
|
|
4714
5420
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewallmessages", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4715
5421
|
**/
|
|
4716
|
-
|
|
5422
|
+
viewallmessages:'viewallmessages',
|
|
5423
|
+
|
|
4717
5424
|
|
|
4718
|
-
|
|
5425
|
+
|
|
5426
|
+
|
|
5427
|
+
|
|
5428
|
+
/** viewmyrestrictedaddresses
|
|
4719
5429
|
|
|
4720
5430
|
View all addresses this wallet owns that have been restricted
|
|
4721
5431
|
|
|
@@ -4731,9 +5441,13 @@ Examples:
|
|
|
4731
5441
|
> neurai-cli viewmyrestrictedaddresses
|
|
4732
5442
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewmyrestrictedaddresses", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4733
5443
|
**/
|
|
4734
|
-
|
|
5444
|
+
viewmyrestrictedaddresses:'viewmyrestrictedaddresses',
|
|
5445
|
+
|
|
5446
|
+
|
|
5447
|
+
|
|
5448
|
+
|
|
4735
5449
|
|
|
4736
|
-
|
|
5450
|
+
/** viewmytaggedaddresses
|
|
4737
5451
|
|
|
4738
5452
|
View all addresses this wallet owns that have been tagged
|
|
4739
5453
|
|
|
@@ -4749,5 +5463,5 @@ Examples:
|
|
|
4749
5463
|
> neurai-cli viewmytaggedaddresses
|
|
4750
5464
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewmytaggedaddresses", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4751
5465
|
**/
|
|
4752
|
-
|
|
4753
|
-
}
|
|
5466
|
+
viewmytaggedaddresses:'viewmytaggedaddresses',
|
|
5467
|
+
}
|