@neuraiproject/neurai-rpc 0.7.0 → 0.8.0
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/CHANGELOG.md +6 -0
- package/DEPIN_EXAMPLES.md +45 -127
- package/DEPIN_IMPLEMENTATION_GUIDE_EN.md +19 -93
- package/README.md +29 -113
- package/depin.ts +144 -0
- package/dist/index.cjs +341 -331
- package/dist/index.d.cts +68 -4
- package/dist/index.d.ts +68 -4
- package/dist/index.mjs +335 -331
- package/docs.json +198 -198
- package/docs.ts +1342 -1504
- package/index.ts +44 -38
- package/json.ts +29 -0
- package/neurai_methods.md +743 -872
- package/package.json +4 -2
package/neurai_methods.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# Neurai remote procedure calls/methods
|
|
2
|
-
[Home](README.md)
|
|
3
|
-
<br> <br/>
|
|
4
|
-
## abandontransaction
|
|
1
|
+
# Neurai remote procedure calls/methods
|
|
2
|
+
[Home](README.md)
|
|
3
|
+
<br> <br/>
|
|
4
|
+
## abandontransaction
|
|
5
5
|
<br/> abandontransaction "txid"
|
|
6
6
|
|
|
7
7
|
Mark in-wallet transaction <txid> as abandoned
|
|
@@ -18,9 +18,9 @@ Result:
|
|
|
18
18
|
Examples:
|
|
19
19
|
> neurai-cli abandontransaction "1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"
|
|
20
20
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "abandontransaction", "params": ["1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
21
|
-
|
|
22
|
-
<br> <br/>
|
|
23
|
-
## abortrescan
|
|
21
|
+
|
|
22
|
+
<br> <br/>
|
|
23
|
+
## abortrescan
|
|
24
24
|
<br/> abortrescan
|
|
25
25
|
|
|
26
26
|
Stops current wallet rescan triggered e.g. by an importprivkey call.
|
|
@@ -31,13 +31,13 @@ Import a private key
|
|
|
31
31
|
> neurai-cli importprivkey "mykey"
|
|
32
32
|
|
|
33
33
|
Abort the running wallet rescan
|
|
34
|
-
> neurai-cli abortrescan
|
|
34
|
+
> neurai-cli abortrescan
|
|
35
35
|
|
|
36
36
|
As a JSON-RPC call
|
|
37
37
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "abortrescan", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
38
|
-
|
|
39
|
-
<br> <br/>
|
|
40
|
-
## addmultisigaddress
|
|
38
|
+
|
|
39
|
+
<br> <br/>
|
|
40
|
+
## addmultisigaddress
|
|
41
41
|
<br/> addmultisigaddress nrequired ["key",...] ( "account" )
|
|
42
42
|
|
|
43
43
|
Add a nrequired-to-sign multisignature address to the wallet.
|
|
@@ -63,9 +63,9 @@ Add a multisig address from 2 addresses
|
|
|
63
63
|
|
|
64
64
|
As json rpc call
|
|
65
65
|
> 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:19001/
|
|
66
|
-
|
|
67
|
-
<br> <br/>
|
|
68
|
-
## addnode
|
|
66
|
+
|
|
67
|
+
<br> <br/>
|
|
68
|
+
## addnode
|
|
69
69
|
<br/> addnode "node" "add|remove|onetry"
|
|
70
70
|
|
|
71
71
|
Attempts to add or remove a node from the addnode list.
|
|
@@ -80,9 +80,9 @@ Arguments:
|
|
|
80
80
|
Examples:
|
|
81
81
|
> neurai-cli addnode "192.168.0.6:19000" "onetry"
|
|
82
82
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "addnode", "params": ["192.168.0.6:19000", "onetry"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
83
|
-
|
|
84
|
-
<br> <br/>
|
|
85
|
-
## addtagtoaddress
|
|
83
|
+
|
|
84
|
+
<br> <br/>
|
|
85
|
+
## addtagtoaddress
|
|
86
86
|
<br/> addtagtoaddress tag_name to_address (change_address) (asset_data)
|
|
87
87
|
|
|
88
88
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
@@ -104,9 +104,9 @@ Examples:
|
|
|
104
104
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "addtagtoaddress", "params": ["#TAG" "to_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
105
105
|
> neurai-cli addtagtoaddress "#TAG" "to_address" "change_address"
|
|
106
106
|
> 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:19001/
|
|
107
|
-
|
|
108
|
-
<br> <br/>
|
|
109
|
-
## addwitnessaddress
|
|
107
|
+
|
|
108
|
+
<br> <br/>
|
|
109
|
+
## addwitnessaddress
|
|
110
110
|
<br/> addwitnessaddress "address"
|
|
111
111
|
|
|
112
112
|
Add a witness address for a script (with pubkey or redeemscript known).
|
|
@@ -118,9 +118,9 @@ Arguments:
|
|
|
118
118
|
Result:
|
|
119
119
|
"witnessaddress", (string) The value of the new address (P2SH of witness script).
|
|
120
120
|
}
|
|
121
|
-
|
|
122
|
-
<br> <br/>
|
|
123
|
-
## backupwallet
|
|
121
|
+
|
|
122
|
+
<br> <br/>
|
|
123
|
+
## backupwallet
|
|
124
124
|
<br/> backupwallet "destination"
|
|
125
125
|
|
|
126
126
|
Safely copies current wallet file to destination, which can be a directory or a path with filename.
|
|
@@ -131,13 +131,13 @@ Arguments:
|
|
|
131
131
|
Examples:
|
|
132
132
|
> neurai-cli backupwallet "backup.dat"
|
|
133
133
|
> 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:19001/
|
|
134
|
-
|
|
135
|
-
<br> <br/>
|
|
136
|
-
## bumpfee
|
|
134
|
+
|
|
135
|
+
<br> <br/>
|
|
136
|
+
## bumpfee
|
|
137
137
|
<br/> bumpfee has been deprecated on the XNA Wallet.
|
|
138
|
-
|
|
139
|
-
<br> <br/>
|
|
140
|
-
## cancelsnapshotrequest
|
|
138
|
+
|
|
139
|
+
<br> <br/>
|
|
140
|
+
## cancelsnapshotrequest
|
|
141
141
|
<br/> cancelsnapshotrequest "asset_name" block_height
|
|
142
142
|
|
|
143
143
|
Cancels the specified snapshot request.
|
|
@@ -154,9 +154,9 @@ Result:
|
|
|
154
154
|
Examples:
|
|
155
155
|
> neurai-cli cancelsnapshotrequest "TRONCO" 12345
|
|
156
156
|
> 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:19001/
|
|
157
|
-
|
|
158
|
-
<br> <br/>
|
|
159
|
-
## checkaddressrestriction
|
|
157
|
+
|
|
158
|
+
<br> <br/>
|
|
159
|
+
## checkaddressrestriction
|
|
160
160
|
<br/> checkaddressrestriction address restricted_name
|
|
161
161
|
|
|
162
162
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
@@ -174,9 +174,9 @@ Result:
|
|
|
174
174
|
Examples:
|
|
175
175
|
> neurai-cli checkaddressrestriction "address" "restricted_name"
|
|
176
176
|
> 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:19001/
|
|
177
|
-
|
|
178
|
-
<br> <br/>
|
|
179
|
-
## checkaddresstag
|
|
177
|
+
|
|
178
|
+
<br> <br/>
|
|
179
|
+
## checkaddresstag
|
|
180
180
|
<br/> checkaddresstag address tag_name
|
|
181
181
|
|
|
182
182
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
@@ -194,9 +194,9 @@ Result:
|
|
|
194
194
|
Examples:
|
|
195
195
|
> neurai-cli checkaddresstag "address" "tag_name"
|
|
196
196
|
> 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:19001/
|
|
197
|
-
|
|
198
|
-
<br> <br/>
|
|
199
|
-
## checkdepinvalidity
|
|
197
|
+
|
|
198
|
+
<br> <br/>
|
|
199
|
+
## checkdepinvalidity
|
|
200
200
|
<br/> checkdepinvalidity "asset_name" "address"
|
|
201
201
|
|
|
202
202
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
@@ -219,9 +219,9 @@ Result:
|
|
|
219
219
|
Examples:
|
|
220
220
|
> neurai-cli checkdepinvalidity "&FRANCE" "address"
|
|
221
221
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "checkdepinvalidity", "params": ["&FRANCE" "address"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
222
|
-
|
|
223
|
-
<br> <br/>
|
|
224
|
-
## checkglobalrestriction
|
|
222
|
+
|
|
223
|
+
<br> <br/>
|
|
224
|
+
## checkglobalrestriction
|
|
225
225
|
<br/> checkglobalrestriction restricted_name
|
|
226
226
|
|
|
227
227
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
@@ -238,30 +238,30 @@ Result:
|
|
|
238
238
|
Examples:
|
|
239
239
|
> neurai-cli checkglobalrestriction "restricted_name"
|
|
240
240
|
> 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:19001/
|
|
241
|
-
|
|
242
|
-
<br> <br/>
|
|
243
|
-
## clearbanned
|
|
241
|
+
|
|
242
|
+
<br> <br/>
|
|
243
|
+
## clearbanned
|
|
244
244
|
<br/> clearbanned
|
|
245
245
|
|
|
246
246
|
Clear all banned IPs.
|
|
247
247
|
|
|
248
248
|
Examples:
|
|
249
|
-
> neurai-cli clearbanned
|
|
249
|
+
> neurai-cli clearbanned
|
|
250
250
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearbanned", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
251
|
-
|
|
252
|
-
<br> <br/>
|
|
253
|
-
## clearmempool
|
|
251
|
+
|
|
252
|
+
<br> <br/>
|
|
253
|
+
## clearmempool
|
|
254
254
|
<br/> clearmempool
|
|
255
255
|
|
|
256
256
|
Removes all transaction from the mempool
|
|
257
257
|
|
|
258
258
|
Examples:
|
|
259
|
-
> neurai-cli clearmempool
|
|
259
|
+
> neurai-cli clearmempool
|
|
260
260
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearmempool", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
261
|
-
|
|
262
|
-
<br> <br/>
|
|
263
|
-
## clearmessages
|
|
264
|
-
<br/> clearmessages
|
|
261
|
+
|
|
262
|
+
<br> <br/>
|
|
263
|
+
## clearmessages
|
|
264
|
+
<br/> clearmessages
|
|
265
265
|
|
|
266
266
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
267
267
|
https://github.com/NeuraiProject/rips/blob/master/rip-0005.mediawiki
|
|
@@ -273,15 +273,15 @@ Result:[
|
|
|
273
273
|
]
|
|
274
274
|
|
|
275
275
|
Examples:
|
|
276
|
-
> neurai-cli clearmessages
|
|
276
|
+
> neurai-cli clearmessages
|
|
277
277
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearmessages", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
278
|
-
|
|
279
|
-
<br> <br/>
|
|
280
|
-
## combinerawtransaction
|
|
278
|
+
|
|
279
|
+
<br> <br/>
|
|
280
|
+
## combinerawtransaction
|
|
281
281
|
<br/> combinerawtransaction ["hexstring",...]
|
|
282
282
|
|
|
283
283
|
Combine multiple partially signed transactions into one transaction.
|
|
284
|
-
The combined transaction may be another partially signed transaction or a
|
|
284
|
+
The combined transaction may be another partially signed transaction or a
|
|
285
285
|
fully signed transaction.
|
|
286
286
|
Arguments:
|
|
287
287
|
1. "txs" (string) A json array of hex strings of partially signed transactions
|
|
@@ -295,9 +295,9 @@ Result:
|
|
|
295
295
|
|
|
296
296
|
Examples:
|
|
297
297
|
> neurai-cli combinerawtransaction ["myhex1", "myhex2", "myhex3"]
|
|
298
|
-
|
|
299
|
-
<br> <br/>
|
|
300
|
-
## createmultisig
|
|
298
|
+
|
|
299
|
+
<br> <br/>
|
|
300
|
+
## createmultisig
|
|
301
301
|
<br/> createmultisig nrequired ["key",...]
|
|
302
302
|
|
|
303
303
|
Creates a multi-signature address with n signature of m keys required.
|
|
@@ -324,9 +324,9 @@ Create a multisig address from 2 addresses
|
|
|
324
324
|
|
|
325
325
|
As a json rpc call
|
|
326
326
|
> 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:19001/
|
|
327
|
-
|
|
328
|
-
<br> <br/>
|
|
329
|
-
## createrawtransaction
|
|
327
|
+
|
|
328
|
+
<br> <br/>
|
|
329
|
+
## createrawtransaction
|
|
330
330
|
<br/> createrawtransaction [{"txid":"id","vout":n},...] {"address":(amount or object),"data":"hex",...}
|
|
331
331
|
createrawtransaction [{"txid":"id","vout":n},...] [{"address":(amount or object)},{"data":"hex"},...]
|
|
332
332
|
( locktime ) ( [{"txid":"id","vout":n},...] )
|
|
@@ -389,7 +389,7 @@ Arguments:
|
|
|
389
389
|
"txid":"id", (string, required) The transaction id
|
|
390
390
|
"vout":n, (number, required) The output number
|
|
391
391
|
"sequence":n (number, optional) The sequence number
|
|
392
|
-
}
|
|
392
|
+
}
|
|
393
393
|
,...
|
|
394
394
|
]
|
|
395
395
|
2. "outputs" (object or array, required) outputs in object or ordered-array form
|
|
@@ -433,10 +433,10 @@ Arguments:
|
|
|
433
433
|
{ (object) A json object describing new unique assets to issue
|
|
434
434
|
"issue_unique":
|
|
435
435
|
{
|
|
436
|
-
"root_name":"root-name", (string, required) name of the asset the unique asset(s)
|
|
436
|
+
"root_name":"root-name", (string, required) name of the asset the unique asset(s)
|
|
437
437
|
are being issued under
|
|
438
438
|
"asset_tags":["asset_tag", ...], (array, required) the unique tag for each asset which is to be issued
|
|
439
|
-
"ipfs_hashes":["hash", ...], (array, optional) ipfs hashes corresponding to each supplied tag
|
|
439
|
+
"ipfs_hashes":["hash", ...], (array, optional) ipfs hashes corresponding to each supplied tag
|
|
440
440
|
(should be same size as "asset_tags")
|
|
441
441
|
}
|
|
442
442
|
}
|
|
@@ -447,9 +447,9 @@ Arguments:
|
|
|
447
447
|
"asset_name":"asset-name", (string, required) name of asset to be reissued
|
|
448
448
|
"asset_quantity":n, (number, required) the number of raw units to issue
|
|
449
449
|
"reissuable":[0-1], (number, optional) default is 1, 1=reissuable asset
|
|
450
|
-
"ipfs_hash":"hash", (string, optional) An ipfs hash for discovering asset metadata,
|
|
450
|
+
"ipfs_hash":"hash", (string, optional) An ipfs hash for discovering asset metadata,
|
|
451
451
|
Overrides the current ipfs hash if given
|
|
452
|
-
"owner_change_address" (string, optional) the address where the owner token will be sent to.
|
|
452
|
+
"owner_change_address" (string, optional) the address where the owner token will be sent to.
|
|
453
453
|
If not given, it will be sent to the output address
|
|
454
454
|
}
|
|
455
455
|
}
|
|
@@ -459,13 +459,13 @@ Arguments:
|
|
|
459
459
|
{
|
|
460
460
|
"asset_name":"asset-name",(string, required) new asset name
|
|
461
461
|
"asset_quantity":n, (number, required) the number of raw units to issue
|
|
462
|
-
"verifier_string":"text", (string, required) the verifier string to be used for a restricted
|
|
462
|
+
"verifier_string":"text", (string, required) the verifier string to be used for a restricted
|
|
463
463
|
asset transfer verification
|
|
464
464
|
"units":[0-8], (number, required) display units, between 0 (integral) and 8 (max precision)
|
|
465
465
|
"reissuable":[0-1], (number, required) 1=reissuable asset
|
|
466
466
|
"has_ipfs":[0-1], (number, required) 1=passing ipfs_hash
|
|
467
467
|
"ipfs_hash":"hash", (string, optional) an ipfs hash for discovering asset metadata
|
|
468
|
-
"owner_change_address" (string, optional) the address where the owner token will be sent to.
|
|
468
|
+
"owner_change_address" (string, optional) the address where the owner token will be sent to.
|
|
469
469
|
If not given, it will be sent to the output address
|
|
470
470
|
}
|
|
471
471
|
}
|
|
@@ -476,11 +476,11 @@ Arguments:
|
|
|
476
476
|
"asset_name":"asset-name", (string, required) name of asset to be reissued
|
|
477
477
|
"asset_quantity":n, (number, required) the number of raw units to issue
|
|
478
478
|
"reissuable":[0-1], (number, optional) default is 1, 1=reissuable asset
|
|
479
|
-
"verifier_string":"text", (string, optional) the verifier string to be used for a restricted asset
|
|
479
|
+
"verifier_string":"text", (string, optional) the verifier string to be used for a restricted asset
|
|
480
480
|
transfer verification
|
|
481
|
-
"ipfs_hash":"hash", (string, optional) An ipfs hash for discovering asset metadata,
|
|
481
|
+
"ipfs_hash":"hash", (string, optional) An ipfs hash for discovering asset metadata,
|
|
482
482
|
Overrides the current ipfs hash if given
|
|
483
|
-
"owner_change_address" (string, optional) the address where the owner token will be sent to.
|
|
483
|
+
"owner_change_address" (string, optional) the address where the owner token will be sent to.
|
|
484
484
|
If not given, it will be sent to the output address
|
|
485
485
|
}
|
|
486
486
|
}
|
|
@@ -490,9 +490,9 @@ Arguments:
|
|
|
490
490
|
{
|
|
491
491
|
"asset_name":"asset_name", (string, required) a qualifier name (starts with '#')
|
|
492
492
|
"asset_quantity":n, (numeric, optional, default=1) the number of units to be issued (1 to 10)
|
|
493
|
-
"has_ipfs":[0-1], (boolean, optional, default=false), whether ifps hash is going
|
|
493
|
+
"has_ipfs":[0-1], (boolean, optional, default=false), whether ifps hash is going
|
|
494
494
|
to be added to the asset
|
|
495
|
-
"ipfs_hash":"hash", (string, optional but required if has_ipfs = 1), an ipfs hash or a
|
|
495
|
+
"ipfs_hash":"hash", (string, optional but required if has_ipfs = 1), an ipfs hash or a
|
|
496
496
|
txid hash once RIP5 is activated
|
|
497
497
|
"root_change_address" (string, optional) Only applies when issuing subqualifiers.
|
|
498
498
|
The address where the root qualifier will be sent.
|
|
@@ -590,9 +590,9 @@ Examples:
|
|
|
590
590
|
> neurai-cli createrawtransaction "[{\"txid\":\"mycoin\",\"vout\":0},{\"txid\":\"myownership\",\"vout\":0}]" "{\"issuer_address\":{\"reissue\":{\"asset_name\":\"MYASSET\",\"asset_quantity\":2000000}}}"
|
|
591
591
|
> neurai-cli createrawtransaction "[{\"txid\":\"mycoin\",\"vout\":0}]" "[{\"address\":500},{\"address\":{\"issue\":{\"asset_name\":\"MYASSET\",\"asset_quantity\":1000000,\"units\":1,\"reissuable\":0,\"has_ipfs\":0}}}]"
|
|
592
592
|
> 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:19001/
|
|
593
|
-
|
|
594
|
-
<br> <br/>
|
|
595
|
-
## decodeblock
|
|
593
|
+
|
|
594
|
+
<br> <br/>
|
|
595
|
+
## decodeblock
|
|
596
596
|
<br/> decodeblock "blockhex"
|
|
597
597
|
|
|
598
598
|
Arguments:
|
|
@@ -620,9 +620,9 @@ Result:
|
|
|
620
620
|
Examples:
|
|
621
621
|
> neurai-cli decodeblock "xxxx"
|
|
622
622
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "decodeblock", "params": ["xxxx"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
623
|
-
|
|
624
|
-
<br> <br/>
|
|
625
|
-
## decoderawtransaction
|
|
623
|
+
|
|
624
|
+
<br> <br/>
|
|
625
|
+
## decoderawtransaction
|
|
626
626
|
<br/> decoderawtransaction "hexstring"
|
|
627
627
|
|
|
628
628
|
Return a JSON object representing the serialized, hex-encoded transaction.
|
|
@@ -678,9 +678,9 @@ Result:
|
|
|
678
678
|
Examples:
|
|
679
679
|
> neurai-cli decoderawtransaction "hexstring"
|
|
680
680
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "decoderawtransaction", "params": ["hexstring"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
681
|
-
|
|
682
|
-
<br> <br/>
|
|
683
|
-
## decodescript
|
|
681
|
+
|
|
682
|
+
<br> <br/>
|
|
683
|
+
## decodescript
|
|
684
684
|
<br/> decodescript "hexstring"
|
|
685
685
|
|
|
686
686
|
Decode a hex-encoded script.
|
|
@@ -717,148 +717,60 @@ Result:
|
|
|
717
717
|
Examples:
|
|
718
718
|
> neurai-cli decodescript "hexstring"
|
|
719
719
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "decodescript", "params": ["hexstring"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
720
|
-
|
|
721
|
-
<br> <br/>
|
|
722
|
-
## depinchallenge
|
|
723
|
-
<br/> depinchallenge "token" "address" timestamp "signature" ( "type" )
|
|
724
720
|
|
|
725
|
-
|
|
726
|
-
|
|
721
|
+
<br> <br/>
|
|
722
|
+
## depinchallenge
|
|
723
|
+
<br/> depinchallenge request
|
|
727
724
|
|
|
728
|
-
|
|
725
|
+
DePIN RPC protocol 5. Exactly one request object, passed as [request] or {"request": request}. Legacy positional arguments and protocols 2/3/4 are rejected.
|
|
726
|
+
Request fields: protocol, network (genesis), pool_pubkey, pool_root, instance_id, membership_revision, request_id, timestamp_ms, token, address, challenge, args, signature. Every private operation signs its method, target identity, revision and arguments. Public authentication fields are empty. Replies sign the exact request hash and served membership metadata. Verify before decoding/decrypting. See DEPIN_EXAMPLES.md for method-specific args and neurai-depin-msg integration.
|
|
727
|
+
<br> <br/>
|
|
728
|
+
## depinclearmsg
|
|
729
|
+
<br/> depinclearmsg request
|
|
729
730
|
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
## depinclearmsg
|
|
735
|
-
<br/> depinclearmsg "scope" "address" "challenge" "signature" ( "all" | hours )
|
|
736
|
-
|
|
737
|
-
Removes messages from a DePIN pool. This owner-level operation requires an admin challenge issued for the exact scope. Use an empty scope for the pool root. Omit mode to remove expired messages, use "all" to remove every message in scope, or pass an age in hours.
|
|
738
|
-
|
|
739
|
-
Result:
|
|
740
|
-
{
|
|
741
|
-
"removed": n,
|
|
742
|
-
"remaining": n
|
|
743
|
-
}
|
|
744
|
-
|
|
745
|
-
<br> <br/>
|
|
746
|
-
## depindecrypt
|
|
731
|
+
DePIN RPC protocol 5. Exactly one request object, passed as [request] or {"request": request}. Legacy positional arguments and protocols 2/3/4 are rejected.
|
|
732
|
+
Request fields: protocol, network (genesis), pool_pubkey, pool_root, instance_id, membership_revision, request_id, timestamp_ms, token, address, challenge, args, signature. Every private operation signs its method, target identity, revision and arguments. Public authentication fields are empty. Replies sign the exact request hash and served membership metadata. Verify before decoding/decrypting. See DEPIN_EXAMPLES.md for method-specific args and neurai-depin-msg integration.
|
|
733
|
+
<br> <br/>
|
|
734
|
+
## depindecrypt
|
|
747
735
|
<br/> depindecrypt "address" "encrypted"
|
|
748
736
|
|
|
749
737
|
Decrypts an encrypted DePIN reply with a wallet key. Verify the reply's poolsig before using this method; depindecrypt does not verify it.
|
|
750
738
|
|
|
751
739
|
Result:
|
|
752
740
|
The decrypted JSON value, or a string when the plaintext is not JSON.
|
|
753
|
-
|
|
754
|
-
<br> <br/>
|
|
755
|
-
## depingetancestorrecipients
|
|
756
|
-
<br/> depingetancestorrecipients "token" ( max_results ) ( "stop_at" )
|
|
757
|
-
|
|
758
|
-
List the active holders of a DEPIN branch: the deduplicated union of the
|
|
759
|
-
holders of the given token and of every one of its '/'-separated ancestors,
|
|
760
|
-
each with the public key it has revealed on chain.
|
|
761
741
|
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
itself in another -- holding the root already grants visibility over the branch.
|
|
742
|
+
<br> <br/>
|
|
743
|
+
## depingetancestorrecipients
|
|
744
|
+
<br/> depingetancestorrecipients request
|
|
766
745
|
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
This command is informational. It does not know about -depinmsgmaxusers, does
|
|
772
|
-
not decide whether a message fits in a pool, and a truncated result must not be
|
|
773
|
-
treated as a complete recipient set.
|
|
774
|
-
|
|
775
|
-
Requires -assetindex and -pubkeyindex.
|
|
776
|
-
|
|
777
|
-
Arguments:
|
|
778
|
-
1. "token" (string, required) DEPIN token, e.g. "&TEST/APPLE/GOLDEN"
|
|
779
|
-
2. max_results (numeric, optional, default=1000) Maximum recipients to return
|
|
780
|
-
(1..10000)
|
|
781
|
-
3. "stop_at" (string, optional) Stop deriving ancestors at this token,
|
|
782
|
-
inclusive. Must be the token itself or one of its ancestors.
|
|
783
|
-
Omitted: derive up to the absolute root.
|
|
784
|
-
|
|
785
|
-
Result:
|
|
786
|
-
{
|
|
787
|
-
"token": "name", (string) Token queried
|
|
788
|
-
"stop_at": "name", (string) Where derivation stopped ("" = root)
|
|
789
|
-
"ancestors": ["name", ...], (array) Token first, then each ancestor
|
|
790
|
-
"recipients": [ (array) Active holders, ordered by address
|
|
791
|
-
{
|
|
792
|
-
"address": "address", (string) Holder address
|
|
793
|
-
"pubkey": "hex" (string) Public key revealed on chain
|
|
794
|
-
}, ...
|
|
795
|
-
],
|
|
796
|
-
"returned": n, (numeric) Number of recipients returned
|
|
797
|
-
"max_results": n, (numeric) Limit applied
|
|
798
|
-
"truncated": true|false, (boolean) True if more eligible recipients exist
|
|
799
|
-
"skipped_no_pubkey": n, (numeric) Addresses dropped for lacking a usable
|
|
800
|
-
revealed public key
|
|
801
|
-
"skipped_no_pubkey_complete": bool, (boolean) False when truncated: the count then
|
|
802
|
-
covers only the addresses examined
|
|
803
|
-
"skipped_restricted": n, (numeric) Addresses dropped as frozen or
|
|
804
|
-
self-revoked in every ancestor they hold
|
|
805
|
-
"skipped_restricted_complete": bool (boolean) Same rule as above
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
Examples:
|
|
809
|
-
> neurai-cli depingetancestorrecipients "&TEST/APPLE/GOLDEN"
|
|
810
|
-
> neurai-cli depingetancestorrecipients "&TEST/APPLE/GOLDEN" 50 "&TEST/APPLE"
|
|
811
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "depingetancestorrecipients", "params": ["&TEST/APPLE/GOLDEN", 50, "&TEST/APPLE"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
812
|
-
|
|
813
|
-
<br> <br/>
|
|
814
|
-
## depingetmsg
|
|
746
|
+
DePIN RPC protocol 5. Exactly one request object, passed as [request] or {"request": request}. Legacy positional arguments and protocols 2/3/4 are rejected.
|
|
747
|
+
Request fields: protocol, network (genesis), pool_pubkey, pool_root, instance_id, membership_revision, request_id, timestamp_ms, token, address, challenge, args, signature. Every private operation signs its method, target identity, revision and arguments. Public authentication fields are empty. Replies sign the exact request hash and served membership metadata. Verify before decoding/decrypting. See DEPIN_EXAMPLES.md for method-specific args and neurai-depin-msg integration.
|
|
748
|
+
<br> <br/>
|
|
749
|
+
## depingetmsg
|
|
815
750
|
<br/> depingetmsg "token" ( "fromaddress" )
|
|
816
751
|
|
|
817
752
|
Uses the local node wallet to decrypt messages from the local DePIN pool. The optional address must belong to the wallet and hold the requested token or a related branch token.
|
|
818
|
-
|
|
819
|
-
<br> <br/>
|
|
820
|
-
## depingetmsginfo
|
|
821
|
-
<br/> depingetmsginfo
|
|
822
|
-
|
|
823
|
-
Returns DePIN protocol and pool configuration. Protocol 2 publishes depinpoolpkey in this response; clients should pin it on first use. Responses are signed with the pool key.
|
|
824
|
-
|
|
825
|
-
<br> <br/>
|
|
826
|
-
## depinlistsections
|
|
827
|
-
<br/> depinlistsections ( "address" "scope" "challenge" "signature" )
|
|
828
|
-
|
|
829
|
-
With no arguments, lists public section names. Address mode requires all four arguments, authenticates with a receive challenge for scope, limits results to that subtree, and returns encrypted personal access and message counters.
|
|
830
|
-
|
|
831
|
-
<br> <br/>
|
|
832
|
-
## depinmcpstatus
|
|
833
|
-
<br/> depinmcpstatus
|
|
834
753
|
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
Examples:
|
|
857
|
-
> neurai-cli depinmcpstatus
|
|
858
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "depinmcpstatus", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
859
|
-
|
|
860
|
-
<br> <br/>
|
|
861
|
-
## depinpoolpkey
|
|
754
|
+
<br> <br/>
|
|
755
|
+
## depingetmsginfo
|
|
756
|
+
<br/> depingetmsginfo request
|
|
757
|
+
|
|
758
|
+
DePIN RPC protocol 5. Exactly one request object, passed as [request] or {"request": request}. Legacy positional arguments and protocols 2/3/4 are rejected.
|
|
759
|
+
Bootstrap fields: protocol=5, request_id (32 random bytes in lowercase hex), timestamp_ms (integer milliseconds). Verify the response with the local request hash, expected genesis and pinned pool key before using its context.
|
|
760
|
+
<br> <br/>
|
|
761
|
+
## depinlistsections
|
|
762
|
+
<br/> depinlistsections request
|
|
763
|
+
|
|
764
|
+
DePIN RPC protocol 5. Exactly one request object, passed as [request] or {"request": request}. Legacy positional arguments and protocols 2/3/4 are rejected.
|
|
765
|
+
Request fields: protocol, network (genesis), pool_pubkey, pool_root, instance_id, membership_revision, request_id, timestamp_ms, token, address, challenge, args, signature. Every private operation signs its method, target identity, revision and arguments. Public authentication fields are empty. Replies sign the exact request hash and served membership metadata. Verify before decoding/decrypting. See DEPIN_EXAMPLES.md for method-specific args and neurai-depin-msg integration.
|
|
766
|
+
<br> <br/>
|
|
767
|
+
## depinmcpstatus
|
|
768
|
+
<br/> depinmcpstatus request
|
|
769
|
+
|
|
770
|
+
DePIN RPC protocol 5. Exactly one request object, passed as [request] or {"request": request}. Legacy positional arguments and protocols 2/3/4 are rejected.
|
|
771
|
+
Request fields: protocol, network (genesis), pool_pubkey, pool_root, instance_id, membership_revision, request_id, timestamp_ms, token, address, challenge, args, signature. Every private operation signs its method, target identity, revision and arguments. Public authentication fields are empty. Replies sign the exact request hash and served membership metadata. Verify before decoding/decrypting. See DEPIN_EXAMPLES.md for method-specific args and neurai-depin-msg integration.
|
|
772
|
+
<br> <br/>
|
|
773
|
+
## depinpoolpkey
|
|
862
774
|
<br/> depinpoolpkey
|
|
863
775
|
|
|
864
776
|
Wallet-only operator helper that derives the dedicated DePIN pool public key from the loaded service wallet.
|
|
@@ -869,83 +781,43 @@ Result:
|
|
|
869
781
|
"address": "address",
|
|
870
782
|
"path": "derivation_path"
|
|
871
783
|
}
|
|
872
|
-
|
|
873
|
-
<br> <br/>
|
|
874
|
-
## depinpoolstats
|
|
875
|
-
<br/> depinpoolstats
|
|
876
|
-
|
|
877
|
-
Get statistical analysis of the DePIN message pool.
|
|
878
|
-
|
|
879
|
-
Result:
|
|
880
|
-
{
|
|
881
|
-
"enabled": true|false,
|
|
882
|
-
"token": "string",
|
|
883
|
-
"total_messages": n,
|
|
884
|
-
"total_size_bytes": n,
|
|
885
|
-
"memory_usage_bytes": n,
|
|
886
|
-
"oldest_message": "YYYY-MM-DD HH:MM:SS",
|
|
887
|
-
"newest_message": "YYYY-MM-DD HH:MM:SS",
|
|
888
|
-
"messages_by_age": {
|
|
889
|
-
"last_hour": n,
|
|
890
|
-
"last_day": n,
|
|
891
|
-
"last_week": n
|
|
892
|
-
},
|
|
893
|
-
"unique_senders": n,
|
|
894
|
-
"unique_recipients": n,
|
|
895
|
-
"avg_recipients_per_message": n.nn,
|
|
896
|
-
"avg_message_size": n,
|
|
897
|
-
"expiring_in_24h": n
|
|
898
|
-
}
|
|
899
|
-
|
|
900
|
-
Examples:
|
|
901
|
-
> neurai-cli depinpoolstats
|
|
902
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "depinpoolstats", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
903
|
-
|
|
904
|
-
<br> <br/>
|
|
905
|
-
## depinreceivemsg
|
|
906
|
-
<br/> depinreceivemsg "token" "address" "challenge" "signature" ( timestamp "after_hash" limit )
|
|
907
784
|
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
<br
|
|
911
|
-
|
|
785
|
+
<br> <br/>
|
|
786
|
+
## depinpoolstats
|
|
787
|
+
<br/> depinpoolstats request
|
|
788
|
+
|
|
789
|
+
DePIN RPC protocol 5. Exactly one request object, passed as [request] or {"request": request}. Legacy positional arguments and protocols 2/3/4 are rejected.
|
|
790
|
+
Request fields: protocol, network (genesis), pool_pubkey, pool_root, instance_id, membership_revision, request_id, timestamp_ms, token, address, challenge, args, signature. Every private operation signs its method, target identity, revision and arguments. Public authentication fields are empty. Replies sign the exact request hash and served membership metadata. Verify before decoding/decrypting. See DEPIN_EXAMPLES.md for method-specific args and neurai-depin-msg integration.
|
|
791
|
+
<br> <br/>
|
|
792
|
+
## depinreceivemsg
|
|
793
|
+
<br/> depinreceivemsg request
|
|
794
|
+
|
|
795
|
+
DePIN RPC protocol 5. Exactly one request object, passed as [request] or {"request": request}. Legacy positional arguments and protocols 2/3/4 are rejected.
|
|
796
|
+
Request fields: protocol, network (genesis), pool_pubkey, pool_root, instance_id, membership_revision, request_id, timestamp_ms, token, address, challenge, args, signature. Every private operation signs its method, target identity, revision and arguments. Public authentication fields are empty. Replies sign the exact request hash and served membership metadata. Verify before decoding/decrypting. See DEPIN_EXAMPLES.md for method-specific args and neurai-depin-msg integration.
|
|
797
|
+
<br> <br/>
|
|
798
|
+
## depinreceiveseq
|
|
799
|
+
<br/> depinreceiveseq request
|
|
800
|
+
|
|
801
|
+
DePIN RPC protocol 5. Exactly one request object, passed as [request] or {"request": request}. Legacy positional arguments and protocols 2/3/4 are rejected.
|
|
802
|
+
Request fields: protocol, network (genesis), pool_pubkey, pool_root, instance_id, membership_revision, request_id, timestamp_ms, token, address, challenge, args, signature. Every private operation signs its method, target identity, revision and arguments. Public authentication fields are empty. Replies sign the exact request hash and served membership metadata. Verify before decoding/decrypting. See DEPIN_EXAMPLES.md for method-specific args and neurai-depin-msg integration.
|
|
803
|
+
<br> <br/>
|
|
804
|
+
## depinsendmsg
|
|
912
805
|
<br/> depinsendmsg "token" "message" "fromaddress"
|
|
913
806
|
|
|
914
807
|
Uses the local node wallet to sign and encrypt a message for eligible recipients, then adds it to the local DePIN pool. Remote host and port parameters were removed in protocol 2.
|
|
915
|
-
|
|
916
|
-
<br> <br/>
|
|
917
|
-
## depinsignchallenge
|
|
918
|
-
<br/> depinsignchallenge "address" "token" "challenge" ( "type" )
|
|
919
808
|
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
<br/>
|
|
931
|
-
|
|
932
|
-
Wallet helper that signs a depinchallenge request over the current Unix time in milliseconds.
|
|
933
|
-
|
|
934
|
-
Result:
|
|
935
|
-
{
|
|
936
|
-
"timestamp": n,
|
|
937
|
-
"signature": "base64",
|
|
938
|
-
"preimage": "DEPIN-REQ|..."
|
|
939
|
-
}
|
|
940
|
-
|
|
941
|
-
<br> <br/>
|
|
942
|
-
## depinsubmitmsg
|
|
943
|
-
<br/> depinsubmitmsg {"sender":"...","encrypted":"..."}
|
|
944
|
-
|
|
945
|
-
Submits a client-prepared, signed DePIN message wrapped in an ECIES envelope for the pool key published by depingetmsginfo. Bare serialized hex is no longer accepted.
|
|
946
|
-
|
|
947
|
-
<br> <br/>
|
|
948
|
-
## disconnectnode
|
|
809
|
+
<br> <br/>
|
|
810
|
+
## depinsignrpc
|
|
811
|
+
<br/> depinsignrpc "method" request
|
|
812
|
+
Local unlocked-wallet helper: sign a complete RPC 5 request. Returns request, preimage and request_hash. Never expose this wallet helper through a public HTTP/WSS proxy.
|
|
813
|
+
<br> <br/>
|
|
814
|
+
## depinsubmitmsg
|
|
815
|
+
<br/> depinsubmitmsg request
|
|
816
|
+
|
|
817
|
+
DePIN RPC protocol 5. Exactly one request object, passed as [request] or {"request": request}. Legacy positional arguments and protocols 2/3/4 are rejected.
|
|
818
|
+
Request fields: protocol, network (genesis), pool_pubkey, pool_root, instance_id, membership_revision, request_id, timestamp_ms, token, address, challenge, args, signature. Every private operation signs its method, target identity, revision and arguments. Public authentication fields are empty. Replies sign the exact request hash and served membership metadata. Verify before decoding/decrypting. See DEPIN_EXAMPLES.md for method-specific args and neurai-depin-msg integration.
|
|
819
|
+
<br> <br/>
|
|
820
|
+
## disconnectnode
|
|
949
821
|
<br/> disconnectnode "[address]" [nodeid]
|
|
950
822
|
|
|
951
823
|
Immediately disconnects from the specified peer node.
|
|
@@ -963,9 +835,9 @@ Examples:
|
|
|
963
835
|
> neurai-cli disconnectnode "" 1
|
|
964
836
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "disconnectnode", "params": ["192.168.0.6:19000"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
965
837
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "disconnectnode", "params": ["", 1] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
966
|
-
|
|
967
|
-
<br> <br/>
|
|
968
|
-
## distributereward
|
|
838
|
+
|
|
839
|
+
<br> <br/>
|
|
840
|
+
## distributereward
|
|
969
841
|
<br/> distributereward "asset_name" snapshot_height "distribution_asset_name" gross_distribution_amount ( "exception_addresses" ) ("change_address") ("dry_run")
|
|
970
842
|
|
|
971
843
|
Splits the specified amount of the distribution asset to all owners of asset_name that are not in the optional exclusion_addresses
|
|
@@ -1001,9 +873,9 @@ Examples:
|
|
|
1001
873
|
> neurai-cli distributereward "PHATSTACKS" 12345 "DIVIDENDS" 1000 "mwN7xC3yomYdvJuVXkVC7ymY9wNBjWNduD,n4Rf18edydDaRBh7t6gHUbuByLbWEoWUTg"
|
|
1002
874
|
> 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:19001/
|
|
1003
875
|
> 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:19001/
|
|
1004
|
-
|
|
1005
|
-
<br> <br/>
|
|
1006
|
-
## dumpextkeypq
|
|
876
|
+
|
|
877
|
+
<br> <br/>
|
|
878
|
+
## dumpextkeypq
|
|
1007
879
|
<br/> dumpextkeypq
|
|
1008
880
|
|
|
1009
881
|
Returns the master PQ extended private key (xpqpriv) for this wallet.
|
|
@@ -1013,11 +885,11 @@ Result:
|
|
|
1013
885
|
"xpqpriv..." (string) Base58Check-encoded master CExtKeyPQ
|
|
1014
886
|
|
|
1015
887
|
Examples:
|
|
1016
|
-
> neurai-cli dumpextkeypq
|
|
888
|
+
> neurai-cli dumpextkeypq
|
|
1017
889
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "dumpextkeypq", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1018
|
-
|
|
1019
|
-
<br> <br/>
|
|
1020
|
-
## dumpprivkey
|
|
890
|
+
|
|
891
|
+
<br> <br/>
|
|
892
|
+
## dumpprivkey
|
|
1021
893
|
<br/> dumpprivkey "address"
|
|
1022
894
|
|
|
1023
895
|
Reveals the private key corresponding to 'address'.
|
|
@@ -1033,9 +905,9 @@ Examples:
|
|
|
1033
905
|
> neurai-cli dumpprivkey "myaddress"
|
|
1034
906
|
> neurai-cli importprivkey "mykey"
|
|
1035
907
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "dumpprivkey", "params": ["myaddress"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1036
|
-
|
|
1037
|
-
<br> <br/>
|
|
1038
|
-
## dumpwallet
|
|
908
|
+
|
|
909
|
+
<br> <br/>
|
|
910
|
+
## dumpwallet
|
|
1039
911
|
<br/> dumpwallet "filename"
|
|
1040
912
|
|
|
1041
913
|
Dumps all wallet keys in a human-readable format to a server-side file. This does not allow overwriting existing files.
|
|
@@ -1051,13 +923,13 @@ Result:
|
|
|
1051
923
|
Examples:
|
|
1052
924
|
> neurai-cli dumpwallet "test"
|
|
1053
925
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "dumpwallet", "params": ["test"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1054
|
-
|
|
1055
|
-
<br> <br/>
|
|
1056
|
-
## encryptwallet
|
|
926
|
+
|
|
927
|
+
<br> <br/>
|
|
928
|
+
## encryptwallet
|
|
1057
929
|
<br/> encryptwallet "passphrase"
|
|
1058
930
|
|
|
1059
931
|
Encrypts the wallet with 'passphrase'. This is for first time encryption.
|
|
1060
|
-
After this, any calls that interact with private keys such as sending or signing
|
|
932
|
+
After this, any calls that interact with private keys such as sending or signing
|
|
1061
933
|
will require the passphrase to be set prior the making these calls.
|
|
1062
934
|
Use the walletpassphrase call for this, and then walletlock call.
|
|
1063
935
|
If the wallet is already encrypted, use the walletpassphrasechange call.
|
|
@@ -1078,13 +950,13 @@ Now we can do something like sign
|
|
|
1078
950
|
> neurai-cli signmessage "address" "test message"
|
|
1079
951
|
|
|
1080
952
|
Now lock the wallet again by removing the passphrase
|
|
1081
|
-
> neurai-cli walletlock
|
|
953
|
+
> neurai-cli walletlock
|
|
1082
954
|
|
|
1083
955
|
As a json rpc call
|
|
1084
956
|
> 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:19001/
|
|
1085
|
-
|
|
1086
|
-
<br> <br/>
|
|
1087
|
-
## estimatefee
|
|
957
|
+
|
|
958
|
+
<br> <br/>
|
|
959
|
+
## estimatefee
|
|
1088
960
|
<br/> estimatefee nblocks
|
|
1089
961
|
|
|
1090
962
|
DEPRECATED. Please use estimatesmartfee for more intelligent estimates.
|
|
@@ -1105,9 +977,9 @@ a fee that is high enough to get reliably included in the next block.
|
|
|
1105
977
|
|
|
1106
978
|
Example:
|
|
1107
979
|
> neurai-cli estimatefee 6
|
|
1108
|
-
|
|
1109
|
-
<br> <br/>
|
|
1110
|
-
## estimatesmartfee
|
|
980
|
+
|
|
981
|
+
<br> <br/>
|
|
982
|
+
## estimatesmartfee
|
|
1111
983
|
<br/> estimatesmartfee conf_target ("estimate_mode")
|
|
1112
984
|
|
|
1113
985
|
Estimates the approximate fee per kilobyte needed for a transaction to begin
|
|
@@ -1141,9 +1013,9 @@ have been observed to make an estimate for any number of blocks.
|
|
|
1141
1013
|
|
|
1142
1014
|
Example:
|
|
1143
1015
|
> neurai-cli estimatesmartfee 6
|
|
1144
|
-
|
|
1145
|
-
<br> <br/>
|
|
1146
|
-
## exportxpqpub
|
|
1016
|
+
|
|
1017
|
+
<br> <br/>
|
|
1018
|
+
## exportxpqpub
|
|
1147
1019
|
<br/> exportxpqpub count ( chain offset )
|
|
1148
1020
|
|
|
1149
1021
|
Generates a batch of count ML-DSA-44 public keys and returns the xpqpub blob.
|
|
@@ -1159,9 +1031,9 @@ Result:
|
|
|
1159
1031
|
Examples:
|
|
1160
1032
|
> neurai-cli exportxpqpub 20
|
|
1161
1033
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "exportxpqpub", "params": [20, 0, 0] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1162
|
-
|
|
1163
|
-
<br> <br/>
|
|
1164
|
-
## freezeaddress
|
|
1034
|
+
|
|
1035
|
+
<br> <br/>
|
|
1036
|
+
## freezeaddress
|
|
1165
1037
|
<br/> freezeaddress asset_name address (change_address) (asset_data)
|
|
1166
1038
|
|
|
1167
1039
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
@@ -1183,9 +1055,9 @@ Examples:
|
|
|
1183
1055
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "freezeaddress", "params": ["$RESTRICTED_ASSET" "address"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1184
1056
|
> neurai-cli freezeaddress "$RESTRICTED_ASSET" "address" "change_address"
|
|
1185
1057
|
> 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:19001/
|
|
1186
|
-
|
|
1187
|
-
<br> <br/>
|
|
1188
|
-
## freezedepin
|
|
1058
|
+
|
|
1059
|
+
<br> <br/>
|
|
1060
|
+
## freezedepin
|
|
1189
1061
|
<br/> freezedepin "asset_name" "address" ("change_address")
|
|
1190
1062
|
|
|
1191
1063
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
@@ -1208,9 +1080,9 @@ Result:
|
|
|
1208
1080
|
Examples:
|
|
1209
1081
|
> neurai-cli freezedepin "&FRANCE" "address"
|
|
1210
1082
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "freezedepin", "params": ["&FRANCE" "address"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1211
|
-
|
|
1212
|
-
<br> <br/>
|
|
1213
|
-
## freezerestrictedasset
|
|
1083
|
+
|
|
1084
|
+
<br> <br/>
|
|
1085
|
+
## freezerestrictedasset
|
|
1214
1086
|
<br/> freezerestrictedasset asset_name (change_address) (asset_data)
|
|
1215
1087
|
|
|
1216
1088
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
@@ -1231,9 +1103,9 @@ Examples:
|
|
|
1231
1103
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "freezerestrictedasset", "params": ["$RESTRICTED_ASSET"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1232
1104
|
> neurai-cli freezerestrictedasset "$RESTRICTED_ASSET" "change_address"
|
|
1233
1105
|
> 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:19001/
|
|
1234
|
-
|
|
1235
|
-
<br> <br/>
|
|
1236
|
-
## fundrawtransaction
|
|
1106
|
+
|
|
1107
|
+
<br> <br/>
|
|
1108
|
+
## fundrawtransaction
|
|
1237
1109
|
<br/> fundrawtransaction "hexstring" ( options )
|
|
1238
1110
|
|
|
1239
1111
|
Add inputs to a transaction until it has enough in value to meet its out value.
|
|
@@ -1291,9 +1163,9 @@ Sign the transaction
|
|
|
1291
1163
|
|
|
1292
1164
|
Send the transaction
|
|
1293
1165
|
> neurai-cli sendrawtransaction "signedtransactionhex"
|
|
1294
|
-
|
|
1295
|
-
<br> <br/>
|
|
1296
|
-
## generate
|
|
1166
|
+
|
|
1167
|
+
<br> <br/>
|
|
1168
|
+
## generate
|
|
1297
1169
|
<br/> generate nblocks ( maxtries )
|
|
1298
1170
|
|
|
1299
1171
|
Mine up to nblocks blocks immediately (before the RPC call returns) to an address in the wallet.
|
|
@@ -1309,9 +1181,9 @@ Examples:
|
|
|
1309
1181
|
|
|
1310
1182
|
Generate 11 blocks
|
|
1311
1183
|
> neurai-cli generate 11
|
|
1312
|
-
|
|
1313
|
-
<br> <br/>
|
|
1314
|
-
## generatetoaddress
|
|
1184
|
+
|
|
1185
|
+
<br> <br/>
|
|
1186
|
+
## generatetoaddress
|
|
1315
1187
|
<br/> generatetoaddress nblocks address (maxtries)
|
|
1316
1188
|
|
|
1317
1189
|
Mine blocks immediately to a specified address (before the RPC call returns)
|
|
@@ -1328,9 +1200,9 @@ Examples:
|
|
|
1328
1200
|
|
|
1329
1201
|
Generate 11 blocks to myaddress
|
|
1330
1202
|
> neurai-cli generatetoaddress 11 "myaddress"
|
|
1331
|
-
|
|
1332
|
-
<br> <br/>
|
|
1333
|
-
## getaccount
|
|
1203
|
+
|
|
1204
|
+
<br> <br/>
|
|
1205
|
+
## getaccount
|
|
1334
1206
|
<br/> getaccount "address"
|
|
1335
1207
|
|
|
1336
1208
|
DEPRECATED. Returns the account associated with the given address.
|
|
@@ -1344,9 +1216,9 @@ Result:
|
|
|
1344
1216
|
Examples:
|
|
1345
1217
|
> neurai-cli getaccount "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX"
|
|
1346
1218
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaccount", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1347
|
-
|
|
1348
|
-
<br> <br/>
|
|
1349
|
-
## getaccountaddress
|
|
1219
|
+
|
|
1220
|
+
<br> <br/>
|
|
1221
|
+
## getaccountaddress
|
|
1350
1222
|
<br/> getaccountaddress "account"
|
|
1351
1223
|
|
|
1352
1224
|
DEPRECATED. Returns the current Neurai address for receiving payments to this account.
|
|
@@ -1358,13 +1230,13 @@ Result:
|
|
|
1358
1230
|
"address" (string) The account neurai address
|
|
1359
1231
|
|
|
1360
1232
|
Examples:
|
|
1361
|
-
> neurai-cli getaccountaddress
|
|
1233
|
+
> neurai-cli getaccountaddress
|
|
1362
1234
|
> neurai-cli getaccountaddress ""
|
|
1363
1235
|
> neurai-cli getaccountaddress "myaccount"
|
|
1364
1236
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaccountaddress", "params": ["myaccount"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1365
|
-
|
|
1366
|
-
<br> <br/>
|
|
1367
|
-
## getaddednodeinfo
|
|
1237
|
+
|
|
1238
|
+
<br> <br/>
|
|
1239
|
+
## getaddednodeinfo
|
|
1368
1240
|
<br/> getaddednodeinfo ( "node" )
|
|
1369
1241
|
|
|
1370
1242
|
Returns information about the given added node, or all added nodes
|
|
@@ -1391,9 +1263,9 @@ Result:
|
|
|
1391
1263
|
Examples:
|
|
1392
1264
|
> neurai-cli getaddednodeinfo "192.168.0.201"
|
|
1393
1265
|
> 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:19001/
|
|
1394
|
-
|
|
1395
|
-
<br> <br/>
|
|
1396
|
-
## getaddressbalance
|
|
1266
|
+
|
|
1267
|
+
<br> <br/>
|
|
1268
|
+
## getaddressbalance
|
|
1397
1269
|
<br/> getaddressbalance
|
|
1398
1270
|
|
|
1399
1271
|
Returns the balance for an address(es) (requires addressindex to be enabled).
|
|
@@ -1428,9 +1300,9 @@ Examples:
|
|
|
1428
1300
|
> neurai-cli getaddressbalance '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}', true
|
|
1429
1301
|
> 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:19001/
|
|
1430
1302
|
> 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:19001/
|
|
1431
|
-
|
|
1432
|
-
<br> <br/>
|
|
1433
|
-
## getaddressdeltas
|
|
1303
|
+
|
|
1304
|
+
<br> <br/>
|
|
1305
|
+
## getaddressdeltas
|
|
1434
1306
|
<br/> getaddressdeltas
|
|
1435
1307
|
|
|
1436
1308
|
Returns all changes for an address (requires addressindex to be enabled).
|
|
@@ -1465,9 +1337,9 @@ Examples:
|
|
|
1465
1337
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressdeltas", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1466
1338
|
> neurai-cli getaddressdeltas '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"],"assetName":"MY_ASSET"}'
|
|
1467
1339
|
> 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:19001/
|
|
1468
|
-
|
|
1469
|
-
<br> <br/>
|
|
1470
|
-
## getaddressesbyaccount
|
|
1340
|
+
|
|
1341
|
+
<br> <br/>
|
|
1342
|
+
## getaddressesbyaccount
|
|
1471
1343
|
<br/> getaddressesbyaccount "account"
|
|
1472
1344
|
|
|
1473
1345
|
DEPRECATED. Returns the list of addresses for the given account.
|
|
@@ -1484,9 +1356,9 @@ Result:
|
|
|
1484
1356
|
Examples:
|
|
1485
1357
|
> neurai-cli getaddressesbyaccount "tabby"
|
|
1486
1358
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressesbyaccount", "params": ["tabby"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1487
|
-
|
|
1488
|
-
<br> <br/>
|
|
1489
|
-
## getaddressmempool
|
|
1359
|
+
|
|
1360
|
+
<br> <br/>
|
|
1361
|
+
## getaddressmempool
|
|
1490
1362
|
<br/> getaddressmempool
|
|
1491
1363
|
|
|
1492
1364
|
Returns all mempool deltas for an address (requires addressindex to be enabled).
|
|
@@ -1520,9 +1392,9 @@ Examples:
|
|
|
1520
1392
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressmempool", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1521
1393
|
> neurai-cli getaddressmempool '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}', true
|
|
1522
1394
|
> 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:19001/
|
|
1523
|
-
|
|
1524
|
-
<br> <br/>
|
|
1525
|
-
## getaddresstxids
|
|
1395
|
+
|
|
1396
|
+
<br> <br/>
|
|
1397
|
+
## getaddresstxids
|
|
1526
1398
|
<br/> getaddresstxids
|
|
1527
1399
|
|
|
1528
1400
|
Returns the txids for an address(es) (requires addressindex to be enabled).
|
|
@@ -1550,9 +1422,9 @@ Examples:
|
|
|
1550
1422
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddresstxids", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1551
1423
|
> neurai-cli getaddresstxids '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}', true
|
|
1552
1424
|
> 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:19001/
|
|
1553
|
-
|
|
1554
|
-
<br> <br/>
|
|
1555
|
-
## getaddressutxos
|
|
1425
|
+
|
|
1426
|
+
<br> <br/>
|
|
1427
|
+
## getaddressutxos
|
|
1556
1428
|
<br/> getaddressutxos
|
|
1557
1429
|
|
|
1558
1430
|
Returns all unspent outputs for an address (requires addressindex to be enabled).
|
|
@@ -1586,9 +1458,9 @@ Examples:
|
|
|
1586
1458
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressutxos", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1587
1459
|
> neurai-cli getaddressutxos '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"],"assetName":"MY_ASSET"}'
|
|
1588
1460
|
> 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:19001/
|
|
1589
|
-
|
|
1590
|
-
<br> <br/>
|
|
1591
|
-
## getassetdata
|
|
1461
|
+
|
|
1462
|
+
<br> <br/>
|
|
1463
|
+
## getassetdata
|
|
1592
1464
|
<br/> getassetdata "asset_name"
|
|
1593
1465
|
|
|
1594
1466
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
@@ -1614,9 +1486,9 @@ Result:
|
|
|
1614
1486
|
Examples:
|
|
1615
1487
|
> neurai-cli getassetdata "ASSET_NAME"
|
|
1616
1488
|
> 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:19001/
|
|
1617
|
-
|
|
1618
|
-
<br> <br/>
|
|
1619
|
-
## getbalance
|
|
1489
|
+
|
|
1490
|
+
<br> <br/>
|
|
1491
|
+
## getbalance
|
|
1620
1492
|
<br/> getbalance ( "account" minconf include_watchonly )
|
|
1621
1493
|
|
|
1622
1494
|
If account is not specified, returns the server's total available balance.
|
|
@@ -1646,16 +1518,16 @@ amount (numeric) The total amount in XNA received for this account.
|
|
|
1646
1518
|
Examples:
|
|
1647
1519
|
|
|
1648
1520
|
The total amount in the wallet with 1 or more confirmations
|
|
1649
|
-
> neurai-cli getbalance
|
|
1521
|
+
> neurai-cli getbalance
|
|
1650
1522
|
|
|
1651
1523
|
The total amount in the wallet at least 6 blocks confirmed
|
|
1652
1524
|
> neurai-cli getbalance "*" 6
|
|
1653
1525
|
|
|
1654
1526
|
As a json rpc call
|
|
1655
1527
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getbalance", "params": ["*", 6] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1656
|
-
|
|
1657
|
-
<br> <br/>
|
|
1658
|
-
## getbestblockhash
|
|
1528
|
+
|
|
1529
|
+
<br> <br/>
|
|
1530
|
+
## getbestblockhash
|
|
1659
1531
|
<br/> getbestblockhash
|
|
1660
1532
|
|
|
1661
1533
|
Returns the hash of the best (tip) block in the longest blockchain.
|
|
@@ -1664,16 +1536,16 @@ Result:
|
|
|
1664
1536
|
"hex" (string) the block hash hex encoded
|
|
1665
1537
|
|
|
1666
1538
|
Examples:
|
|
1667
|
-
> neurai-cli getbestblockhash
|
|
1539
|
+
> neurai-cli getbestblockhash
|
|
1668
1540
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getbestblockhash", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1669
|
-
|
|
1670
|
-
<br> <br/>
|
|
1671
|
-
## getblock
|
|
1672
|
-
<br/> getblock "blockhash" ( verbosity )
|
|
1541
|
+
|
|
1542
|
+
<br> <br/>
|
|
1543
|
+
## getblock
|
|
1544
|
+
<br/> getblock "blockhash" ( verbosity )
|
|
1673
1545
|
|
|
1674
1546
|
If verbosity is 0, returns a string that is serialized, hex-encoded data for block 'hash'.
|
|
1675
1547
|
If verbosity is 1, returns an Object with information about block <hash>.
|
|
1676
|
-
If verbosity is 2, returns an Object with information about block <hash> and information about each transaction.
|
|
1548
|
+
If verbosity is 2, returns an Object with information about block <hash> and information about each transaction.
|
|
1677
1549
|
|
|
1678
1550
|
Arguments:
|
|
1679
1551
|
1. "blockhash" (string, required) The block hash
|
|
@@ -1719,9 +1591,9 @@ Result (for verbosity = 2):
|
|
|
1719
1591
|
Examples:
|
|
1720
1592
|
> neurai-cli getblock "00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"
|
|
1721
1593
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblock", "params": ["00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1722
|
-
|
|
1723
|
-
<br> <br/>
|
|
1724
|
-
## getblockchaininfo
|
|
1594
|
+
|
|
1595
|
+
<br> <br/>
|
|
1596
|
+
## getblockchaininfo
|
|
1725
1597
|
<br/> getblockchaininfo
|
|
1726
1598
|
Returns an object containing various state info regarding blockchain processing.
|
|
1727
1599
|
|
|
@@ -1757,11 +1629,11 @@ Result:
|
|
|
1757
1629
|
"timeout": xx, (numeric) the median time past of a block at which the deployment is considered failed if not yet locked in
|
|
1758
1630
|
"since": xx, (numeric) height of the first block to which the status applies
|
|
1759
1631
|
"statistics": { (object) numeric statistics about BIP9 signalling for a softfork (only for "started" status)
|
|
1760
|
-
"period": xx, (numeric) the length in blocks of the BIP9 signalling period
|
|
1761
|
-
"threshold": xx, (numeric) the number of blocks with the version bit set required to activate the feature
|
|
1762
|
-
"elapsed": xx, (numeric) the number of blocks elapsed since the beginning of the current period
|
|
1763
|
-
"count": xx, (numeric) the number of blocks with the version bit set in the current period
|
|
1764
|
-
"possible": xx (boolean) returns false if there are not enough blocks left in this period to pass activation threshold
|
|
1632
|
+
"period": xx, (numeric) the length in blocks of the BIP9 signalling period
|
|
1633
|
+
"threshold": xx, (numeric) the number of blocks with the version bit set required to activate the feature
|
|
1634
|
+
"elapsed": xx, (numeric) the number of blocks elapsed since the beginning of the current period
|
|
1635
|
+
"count": xx, (numeric) the number of blocks with the version bit set in the current period
|
|
1636
|
+
"possible": xx (boolean) returns false if there are not enough blocks left in this period to pass activation threshold
|
|
1765
1637
|
}
|
|
1766
1638
|
}
|
|
1767
1639
|
}
|
|
@@ -1769,11 +1641,11 @@ Result:
|
|
|
1769
1641
|
}
|
|
1770
1642
|
|
|
1771
1643
|
Examples:
|
|
1772
|
-
> neurai-cli getblockchaininfo
|
|
1644
|
+
> neurai-cli getblockchaininfo
|
|
1773
1645
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockchaininfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1774
|
-
|
|
1775
|
-
<br> <br/>
|
|
1776
|
-
## getblockcount
|
|
1646
|
+
|
|
1647
|
+
<br> <br/>
|
|
1648
|
+
## getblockcount
|
|
1777
1649
|
<br/> getblockcount
|
|
1778
1650
|
|
|
1779
1651
|
Returns the number of blocks in the longest blockchain.
|
|
@@ -1782,11 +1654,11 @@ Result:
|
|
|
1782
1654
|
n (numeric) The current block count
|
|
1783
1655
|
|
|
1784
1656
|
Examples:
|
|
1785
|
-
> neurai-cli getblockcount
|
|
1657
|
+
> neurai-cli getblockcount
|
|
1786
1658
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockcount", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1787
|
-
|
|
1788
|
-
<br> <br/>
|
|
1789
|
-
## getblockhash
|
|
1659
|
+
|
|
1660
|
+
<br> <br/>
|
|
1661
|
+
## getblockhash
|
|
1790
1662
|
<br/> getblockhash height
|
|
1791
1663
|
|
|
1792
1664
|
Returns hash of block in best-block-chain at height provided.
|
|
@@ -1800,9 +1672,9 @@ Result:
|
|
|
1800
1672
|
Examples:
|
|
1801
1673
|
> neurai-cli getblockhash 1000
|
|
1802
1674
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockhash", "params": [1000] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1803
|
-
|
|
1804
|
-
<br> <br/>
|
|
1805
|
-
## getblockhashes
|
|
1675
|
+
|
|
1676
|
+
<br> <br/>
|
|
1677
|
+
## getblockhashes
|
|
1806
1678
|
<br/> getblockhashes timestamp
|
|
1807
1679
|
|
|
1808
1680
|
Returns array of hashes of blocks within the timestamp range provided.
|
|
@@ -1831,9 +1703,9 @@ Examples:
|
|
|
1831
1703
|
> neurai-cli getblockhashes 1231614698 1231024505
|
|
1832
1704
|
> 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:19001/
|
|
1833
1705
|
> neurai-cli getblockhashes 1231614698 1231024505 '{"noOrphans":false, "logicalTimes":true}'
|
|
1834
|
-
|
|
1835
|
-
<br> <br/>
|
|
1836
|
-
## getblockheader
|
|
1706
|
+
|
|
1707
|
+
<br> <br/>
|
|
1708
|
+
## getblockheader
|
|
1837
1709
|
<br/> getblockheader "hash" ( verbose )
|
|
1838
1710
|
|
|
1839
1711
|
If verbose is false, returns a string that is serialized, hex-encoded data for blockheader 'hash'.
|
|
@@ -1867,9 +1739,9 @@ Result (for verbose=false):
|
|
|
1867
1739
|
Examples:
|
|
1868
1740
|
> neurai-cli getblockheader "00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"
|
|
1869
1741
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockheader", "params": ["00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1870
|
-
|
|
1871
|
-
<br> <br/>
|
|
1872
|
-
## getblocktemplate
|
|
1742
|
+
|
|
1743
|
+
<br> <br/>
|
|
1744
|
+
## getblocktemplate
|
|
1873
1745
|
<br/> getblocktemplate ( TemplateRequest )
|
|
1874
1746
|
|
|
1875
1747
|
If the request parameters include a 'mode' key, that is used to explicitly select between the default 'template' request or a 'proposal'.
|
|
@@ -1910,7 +1782,7 @@ Result:
|
|
|
1910
1782
|
"data" : "xxxx", (string) transaction data encoded in hexadecimal (byte-for-byte)
|
|
1911
1783
|
"txid" : "xxxx", (string) transaction id encoded in little-endian hexadecimal
|
|
1912
1784
|
"hash" : "xxxx", (string) hash encoded in little-endian hexadecimal (including witness data)
|
|
1913
|
-
"depends" : [ (array) array of numbers
|
|
1785
|
+
"depends" : [ (array) array of numbers
|
|
1914
1786
|
n (numeric) transactions before this one (by 1-based index in 'transactions' list) that must be present in the final block if this one is
|
|
1915
1787
|
,...
|
|
1916
1788
|
],
|
|
@@ -1928,7 +1800,7 @@ Result:
|
|
|
1928
1800
|
"coinbasetxn" : { ... }, (json object) information for coinbase transaction
|
|
1929
1801
|
"target" : "xxxx", (string) The hash target
|
|
1930
1802
|
"mintime" : xxx, (numeric) The minimum timestamp appropriate for next block time in seconds since epoch (Jan 1 1970 GMT)
|
|
1931
|
-
"mutable" : [ (array of string) list of ways the block template may be changed
|
|
1803
|
+
"mutable" : [ (array of string) list of ways the block template may be changed
|
|
1932
1804
|
"value" (string) A way the block template may be changed, e.g. 'time', 'transactions', 'prevblock'
|
|
1933
1805
|
,...
|
|
1934
1806
|
],
|
|
@@ -1942,12 +1814,12 @@ Result:
|
|
|
1942
1814
|
}
|
|
1943
1815
|
|
|
1944
1816
|
Examples:
|
|
1945
|
-
> neurai-cli getblocktemplate
|
|
1817
|
+
> neurai-cli getblocktemplate
|
|
1946
1818
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblocktemplate", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1947
|
-
|
|
1948
|
-
<br> <br/>
|
|
1949
|
-
## getcacheinfo
|
|
1950
|
-
<br/> getcacheinfo
|
|
1819
|
+
|
|
1820
|
+
<br> <br/>
|
|
1821
|
+
## getcacheinfo
|
|
1822
|
+
<br/> getcacheinfo
|
|
1951
1823
|
|
|
1952
1824
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
1953
1825
|
https://github.com/NeuraiProject/rips/blob/master/rip-0002.mediawiki
|
|
@@ -1967,10 +1839,10 @@ Result:
|
|
|
1967
1839
|
|
|
1968
1840
|
Examples:
|
|
1969
1841
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getcacheinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1970
|
-
> neurai-cli getcacheinfo
|
|
1971
|
-
|
|
1972
|
-
<br> <br/>
|
|
1973
|
-
## getchaintips
|
|
1842
|
+
> neurai-cli getcacheinfo
|
|
1843
|
+
|
|
1844
|
+
<br> <br/>
|
|
1845
|
+
## getchaintips
|
|
1974
1846
|
<br/> getchaintips
|
|
1975
1847
|
Return information about all known tips in the block tree, including the main chain as well as orphaned branches.
|
|
1976
1848
|
|
|
@@ -1997,11 +1869,11 @@ Possible values for status:
|
|
|
1997
1869
|
5. "active" This is the tip of the active main chain, which is certainly valid
|
|
1998
1870
|
|
|
1999
1871
|
Examples:
|
|
2000
|
-
> neurai-cli getchaintips
|
|
1872
|
+
> neurai-cli getchaintips
|
|
2001
1873
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getchaintips", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2002
|
-
|
|
2003
|
-
<br> <br/>
|
|
2004
|
-
## getchaintxstats
|
|
1874
|
+
|
|
1875
|
+
<br> <br/>
|
|
1876
|
+
## getchaintxstats
|
|
2005
1877
|
<br/> getchaintxstats ( nblocks blockhash )
|
|
2006
1878
|
|
|
2007
1879
|
Compute statistics about the total number and rate of transactions in the chain.
|
|
@@ -2021,11 +1893,11 @@ Result:
|
|
|
2021
1893
|
}
|
|
2022
1894
|
|
|
2023
1895
|
Examples:
|
|
2024
|
-
> neurai-cli getchaintxstats
|
|
1896
|
+
> neurai-cli getchaintxstats
|
|
2025
1897
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getchaintxstats", "params": [2016] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2026
|
-
|
|
2027
|
-
<br> <br/>
|
|
2028
|
-
## getconnectioncount
|
|
1898
|
+
|
|
1899
|
+
<br> <br/>
|
|
1900
|
+
## getconnectioncount
|
|
2029
1901
|
<br/> getconnectioncount
|
|
2030
1902
|
|
|
2031
1903
|
Returns the number of connections to other nodes.
|
|
@@ -2034,11 +1906,11 @@ Result:
|
|
|
2034
1906
|
n (numeric) The connection count
|
|
2035
1907
|
|
|
2036
1908
|
Examples:
|
|
2037
|
-
> neurai-cli getconnectioncount
|
|
1909
|
+
> neurai-cli getconnectioncount
|
|
2038
1910
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getconnectioncount", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2039
|
-
|
|
2040
|
-
<br> <br/>
|
|
2041
|
-
## getdifficulty
|
|
1911
|
+
|
|
1912
|
+
<br> <br/>
|
|
1913
|
+
## getdifficulty
|
|
2042
1914
|
<br/> getdifficulty
|
|
2043
1915
|
|
|
2044
1916
|
Returns the proof-of-work difficulty as a multiple of the minimum difficulty.
|
|
@@ -2047,11 +1919,11 @@ Result:
|
|
|
2047
1919
|
n.nnn (numeric) the proof-of-work difficulty as a multiple of the minimum difficulty.
|
|
2048
1920
|
|
|
2049
1921
|
Examples:
|
|
2050
|
-
> neurai-cli getdifficulty
|
|
1922
|
+
> neurai-cli getdifficulty
|
|
2051
1923
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getdifficulty", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2052
|
-
|
|
2053
|
-
<br> <br/>
|
|
2054
|
-
## getdistributestatus
|
|
1924
|
+
|
|
1925
|
+
<br> <br/>
|
|
1926
|
+
## getdistributestatus
|
|
2055
1927
|
<br/> getdistributestatus "asset_name" snapshot_height "distribution_asset_name" gross_distribution_amount ( "exception_addresses" )
|
|
2056
1928
|
|
|
2057
1929
|
Give information about the status of the distribution
|
|
@@ -2068,9 +1940,9 @@ Examples:
|
|
|
2068
1940
|
> neurai-cli getdistributestatus "PHATSTACKS" 12345 "DIVIDENDS" 1000 "mwN7xC3yomYdvJuVXkVC7ymY9wNBjWNduD,n4Rf18edydDaRBh7t6gHUbuByLbWEoWUTg"
|
|
2069
1941
|
> 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:19001/
|
|
2070
1942
|
> 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:19001/
|
|
2071
|
-
|
|
2072
|
-
<br> <br/>
|
|
2073
|
-
## getgenerate
|
|
1943
|
+
|
|
1944
|
+
<br> <br/>
|
|
1945
|
+
## getgenerate
|
|
2074
1946
|
<br/> getgenerate
|
|
2075
1947
|
|
|
2076
1948
|
Return if the server is set to generate coins or not. The default is false.
|
|
@@ -2081,11 +1953,11 @@ Result
|
|
|
2081
1953
|
true|false (boolean) If the server is set to generate coins or not
|
|
2082
1954
|
|
|
2083
1955
|
Examples:
|
|
2084
|
-
> neurai-cli getgenerate
|
|
1956
|
+
> neurai-cli getgenerate
|
|
2085
1957
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getgenerate", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2086
|
-
|
|
2087
|
-
<br> <br/>
|
|
2088
|
-
## getibdstatus
|
|
1958
|
+
|
|
1959
|
+
<br> <br/>
|
|
1960
|
+
## getibdstatus
|
|
2089
1961
|
<br/> getibdstatus
|
|
2090
1962
|
|
|
2091
1963
|
Returns header synchronization timing collected since process start.
|
|
@@ -2105,9 +1977,9 @@ Result:
|
|
|
2105
1977
|
Examples:
|
|
2106
1978
|
> neurai-cli getibdstatus
|
|
2107
1979
|
> curl --user myusername --data-binary '{"jsonrpc":"2.0","id":1,"method":"getibdstatus","params":[]}' -H 'content-type: application/json' http://127.0.0.1:19001/
|
|
2108
|
-
|
|
2109
|
-
<br> <br/>
|
|
2110
|
-
## getinfo
|
|
1980
|
+
|
|
1981
|
+
<br> <br/>
|
|
1982
|
+
## getinfo
|
|
2111
1983
|
<br/> getinfo
|
|
2112
1984
|
|
|
2113
1985
|
DEPRECATED. Returns an object containing various state info.
|
|
@@ -2134,11 +2006,11 @@ Result:
|
|
|
2134
2006
|
}
|
|
2135
2007
|
|
|
2136
2008
|
Examples:
|
|
2137
|
-
> neurai-cli getinfo
|
|
2009
|
+
> neurai-cli getinfo
|
|
2138
2010
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2139
|
-
|
|
2140
|
-
<br> <br/>
|
|
2141
|
-
## getkawpowhash
|
|
2011
|
+
|
|
2012
|
+
<br> <br/>
|
|
2013
|
+
## getkawpowhash
|
|
2142
2014
|
<br/> getkawpowhash "header_hash" "mix_hash" nonce, height, "target"
|
|
2143
2015
|
|
|
2144
2016
|
Get the kawpow hash for a block given its block data
|
|
@@ -2155,9 +2027,9 @@ Result:
|
|
|
2155
2027
|
Examples:
|
|
2156
2028
|
> neurai-cli getkawpowhash "header_hash" "mix_hash" "0x100000" 2456
|
|
2157
2029
|
> 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:19001/
|
|
2158
|
-
|
|
2159
|
-
<br> <br/>
|
|
2160
|
-
## getmasterkeyinfo
|
|
2030
|
+
|
|
2031
|
+
<br> <br/>
|
|
2032
|
+
## getmasterkeyinfo
|
|
2161
2033
|
<br/> getmasterkeyinfo
|
|
2162
2034
|
|
|
2163
2035
|
Fetches and displays the master private key and the master public key.
|
|
@@ -2174,11 +2046,11 @@ Result:
|
|
|
2174
2046
|
}
|
|
2175
2047
|
|
|
2176
2048
|
Examples:
|
|
2177
|
-
> neurai-cli getmasterkeyinfo
|
|
2049
|
+
> neurai-cli getmasterkeyinfo
|
|
2178
2050
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmasterkeyinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2179
|
-
|
|
2180
|
-
<br> <br/>
|
|
2181
|
-
## getmemoryinfo
|
|
2051
|
+
|
|
2052
|
+
<br> <br/>
|
|
2053
|
+
## getmemoryinfo
|
|
2182
2054
|
<br/> getmemoryinfo ("mode")
|
|
2183
2055
|
Returns an object containing information about memory usage.
|
|
2184
2056
|
Arguments:
|
|
@@ -2202,11 +2074,11 @@ Result (mode "mallocinfo"):
|
|
|
2202
2074
|
"<malloc version="1">..."
|
|
2203
2075
|
|
|
2204
2076
|
Examples:
|
|
2205
|
-
> neurai-cli getmemoryinfo
|
|
2077
|
+
> neurai-cli getmemoryinfo
|
|
2206
2078
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmemoryinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2207
|
-
|
|
2208
|
-
<br> <br/>
|
|
2209
|
-
## getmempoolancestors
|
|
2079
|
+
|
|
2080
|
+
<br> <br/>
|
|
2081
|
+
## getmempoolancestors
|
|
2210
2082
|
<br/> getmempoolancestors txid (verbose)
|
|
2211
2083
|
|
|
2212
2084
|
If txid is in the mempool, returns all in-mempool ancestors.
|
|
@@ -2245,9 +2117,9 @@ Result (for verbose=true):
|
|
|
2245
2117
|
Examples:
|
|
2246
2118
|
> neurai-cli getmempoolancestors "mytxid"
|
|
2247
2119
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempoolancestors", "params": ["mytxid"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2248
|
-
|
|
2249
|
-
<br> <br/>
|
|
2250
|
-
## getmempooldescendants
|
|
2120
|
+
|
|
2121
|
+
<br> <br/>
|
|
2122
|
+
## getmempooldescendants
|
|
2251
2123
|
<br/> getmempooldescendants txid (verbose)
|
|
2252
2124
|
|
|
2253
2125
|
If txid is in the mempool, returns all in-mempool descendants.
|
|
@@ -2286,9 +2158,9 @@ Result (for verbose=true):
|
|
|
2286
2158
|
Examples:
|
|
2287
2159
|
> neurai-cli getmempooldescendants "mytxid"
|
|
2288
2160
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempooldescendants", "params": ["mytxid"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2289
|
-
|
|
2290
|
-
<br> <br/>
|
|
2291
|
-
## getmempoolentry
|
|
2161
|
+
|
|
2162
|
+
<br> <br/>
|
|
2163
|
+
## getmempoolentry
|
|
2292
2164
|
<br/> getmempoolentry txid
|
|
2293
2165
|
|
|
2294
2166
|
Returns mempool data for given transaction
|
|
@@ -2318,9 +2190,9 @@ Result:
|
|
|
2318
2190
|
Examples:
|
|
2319
2191
|
> neurai-cli getmempoolentry "mytxid"
|
|
2320
2192
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempoolentry", "params": ["mytxid"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2321
|
-
|
|
2322
|
-
<br> <br/>
|
|
2323
|
-
## getmempoolinfo
|
|
2193
|
+
|
|
2194
|
+
<br> <br/>
|
|
2195
|
+
## getmempoolinfo
|
|
2324
2196
|
<br/> getmempoolinfo
|
|
2325
2197
|
|
|
2326
2198
|
Returns details on the active state of the TX memory pool.
|
|
@@ -2335,11 +2207,11 @@ Result:
|
|
|
2335
2207
|
}
|
|
2336
2208
|
|
|
2337
2209
|
Examples:
|
|
2338
|
-
> neurai-cli getmempoolinfo
|
|
2210
|
+
> neurai-cli getmempoolinfo
|
|
2339
2211
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempoolinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2340
|
-
|
|
2341
|
-
<br> <br/>
|
|
2342
|
-
## getmininginfo
|
|
2212
|
+
|
|
2213
|
+
<br> <br/>
|
|
2214
|
+
## getmininginfo
|
|
2343
2215
|
<br/> getmininginfo
|
|
2344
2216
|
|
|
2345
2217
|
Returns a json object containing mining-related information.
|
|
@@ -2358,11 +2230,11 @@ Result:
|
|
|
2358
2230
|
}
|
|
2359
2231
|
|
|
2360
2232
|
Examples:
|
|
2361
|
-
> neurai-cli getmininginfo
|
|
2233
|
+
> neurai-cli getmininginfo
|
|
2362
2234
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmininginfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2363
|
-
|
|
2364
|
-
<br> <br/>
|
|
2365
|
-
## getmywords
|
|
2235
|
+
|
|
2236
|
+
<br> <br/>
|
|
2237
|
+
## getmywords
|
|
2366
2238
|
<br/> getmywords ( "account" )
|
|
2367
2239
|
|
|
2368
2240
|
Returns the 12 words and passphrase used by BIP39 to generate the wallets private keys
|
|
@@ -2373,11 +2245,11 @@ Result:
|
|
|
2373
2245
|
"passphrase:" (optional) Only show if passphrase was used when creating the wallet
|
|
2374
2246
|
|
|
2375
2247
|
Examples:
|
|
2376
|
-
> neurai-cli getmywords
|
|
2248
|
+
> neurai-cli getmywords
|
|
2377
2249
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmywords", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2378
|
-
|
|
2379
|
-
<br> <br/>
|
|
2380
|
-
## getnettotals
|
|
2250
|
+
|
|
2251
|
+
<br> <br/>
|
|
2252
|
+
## getnettotals
|
|
2381
2253
|
<br/> getnettotals
|
|
2382
2254
|
|
|
2383
2255
|
Returns information about network traffic, including bytes in, bytes out,
|
|
@@ -2400,11 +2272,11 @@ Result:
|
|
|
2400
2272
|
}
|
|
2401
2273
|
|
|
2402
2274
|
Examples:
|
|
2403
|
-
> neurai-cli getnettotals
|
|
2275
|
+
> neurai-cli getnettotals
|
|
2404
2276
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnettotals", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2405
|
-
|
|
2406
|
-
<br> <br/>
|
|
2407
|
-
## getnetworkhashps
|
|
2277
|
+
|
|
2278
|
+
<br> <br/>
|
|
2279
|
+
## getnetworkhashps
|
|
2408
2280
|
<br/> getnetworkhashps ( nblocks height )
|
|
2409
2281
|
|
|
2410
2282
|
Returns the estimated network hashes per second based on the last n blocks.
|
|
@@ -2419,11 +2291,11 @@ Result:
|
|
|
2419
2291
|
x (numeric) Hashes per second estimated
|
|
2420
2292
|
|
|
2421
2293
|
Examples:
|
|
2422
|
-
> neurai-cli getnetworkhashps
|
|
2294
|
+
> neurai-cli getnetworkhashps
|
|
2423
2295
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnetworkhashps", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2424
|
-
|
|
2425
|
-
<br> <br/>
|
|
2426
|
-
## getnetworkinfo
|
|
2296
|
+
|
|
2297
|
+
<br> <br/>
|
|
2298
|
+
## getnetworkinfo
|
|
2427
2299
|
<br/> getnetworkinfo
|
|
2428
2300
|
Returns an object containing various state info regarding P2P networking.
|
|
2429
2301
|
|
|
@@ -2461,15 +2333,15 @@ Result:
|
|
|
2461
2333
|
}
|
|
2462
2334
|
|
|
2463
2335
|
Examples:
|
|
2464
|
-
> neurai-cli getnetworkinfo
|
|
2336
|
+
> neurai-cli getnetworkinfo
|
|
2465
2337
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnetworkinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2466
|
-
|
|
2467
|
-
<br> <br/>
|
|
2468
|
-
## getnewaddress
|
|
2338
|
+
|
|
2339
|
+
<br> <br/>
|
|
2340
|
+
## getnewaddress
|
|
2469
2341
|
<br/> getnewaddress ( "account" "address_type" )
|
|
2470
2342
|
|
|
2471
2343
|
Returns a new Neurai address for receiving payments.
|
|
2472
|
-
If 'account' is specified (DEPRECATED), it is added to the address book
|
|
2344
|
+
If 'account' is specified (DEPRECATED), it is added to the address book
|
|
2473
2345
|
so payments received with the address will be credited to 'account'.
|
|
2474
2346
|
|
|
2475
2347
|
Arguments:
|
|
@@ -2480,12 +2352,12 @@ Result:
|
|
|
2480
2352
|
"address" (string) The new neurai address
|
|
2481
2353
|
|
|
2482
2354
|
Examples:
|
|
2483
|
-
> neurai-cli getnewaddress
|
|
2355
|
+
> neurai-cli getnewaddress
|
|
2484
2356
|
> neurai-cli getnewaddress "" "ecdsa"
|
|
2485
2357
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnewaddress", "params": ["", "pq"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2486
|
-
|
|
2487
|
-
<br> <br/>
|
|
2488
|
-
## getpeerinfo
|
|
2358
|
+
|
|
2359
|
+
<br> <br/>
|
|
2360
|
+
## getpeerinfo
|
|
2489
2361
|
<br/> getpeerinfo
|
|
2490
2362
|
|
|
2491
2363
|
Returns data about each connected network node as a json array of objects.
|
|
@@ -2534,11 +2406,11 @@ Result:
|
|
|
2534
2406
|
]
|
|
2535
2407
|
|
|
2536
2408
|
Examples:
|
|
2537
|
-
> neurai-cli getpeerinfo
|
|
2409
|
+
> neurai-cli getpeerinfo
|
|
2538
2410
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getpeerinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2539
|
-
|
|
2540
|
-
<br> <br/>
|
|
2541
|
-
## getpubkey
|
|
2411
|
+
|
|
2412
|
+
<br> <br/>
|
|
2413
|
+
## getpubkey
|
|
2542
2414
|
<br/> getpubkey "address"
|
|
2543
2415
|
|
|
2544
2416
|
Returns the public key for an address that has revealed it by spending (requires pubkeyindex to be enabled).
|
|
@@ -2558,9 +2430,9 @@ Result:
|
|
|
2558
2430
|
Examples:
|
|
2559
2431
|
> neurai-cli getpubkey "NXa1b2c3d4e5f6..."
|
|
2560
2432
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getpubkey", "params": ["NXa1b2c3d4e5f6..."] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2561
|
-
|
|
2562
|
-
<br> <br/>
|
|
2563
|
-
## getrawchangeaddress
|
|
2433
|
+
|
|
2434
|
+
<br> <br/>
|
|
2435
|
+
## getrawchangeaddress
|
|
2564
2436
|
<br/> getrawchangeaddress ( "address_type" )
|
|
2565
2437
|
|
|
2566
2438
|
Returns a new Neurai address, for receiving change.
|
|
@@ -2573,11 +2445,11 @@ Result:
|
|
|
2573
2445
|
"address" (string) The address
|
|
2574
2446
|
|
|
2575
2447
|
Examples:
|
|
2576
|
-
> neurai-cli getrawchangeaddress
|
|
2448
|
+
> neurai-cli getrawchangeaddress
|
|
2577
2449
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrawchangeaddress", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2578
|
-
|
|
2579
|
-
<br> <br/>
|
|
2580
|
-
## getrawmempool
|
|
2450
|
+
|
|
2451
|
+
<br> <br/>
|
|
2452
|
+
## getrawmempool
|
|
2581
2453
|
<br/> getrawmempool ( verbose )
|
|
2582
2454
|
|
|
2583
2455
|
Returns all transaction ids in memory pool as a json array of string transaction ids.
|
|
@@ -2617,9 +2489,9 @@ Result: (for verbose = true):
|
|
|
2617
2489
|
Examples:
|
|
2618
2490
|
> neurai-cli getrawmempool true
|
|
2619
2491
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrawmempool", "params": [true] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2620
|
-
|
|
2621
|
-
<br> <br/>
|
|
2622
|
-
## getrawtransaction
|
|
2492
|
+
|
|
2493
|
+
<br> <br/>
|
|
2494
|
+
## getrawtransaction
|
|
2623
2495
|
<br/> getrawtransaction "txid" ( verbose )
|
|
2624
2496
|
|
|
2625
2497
|
NOTE: By default this function only works for mempool transactions. If the -txindex option is
|
|
@@ -2650,7 +2522,7 @@ Result (if verbose is set to true):
|
|
|
2650
2522
|
"vin" : [ (array of json objects)
|
|
2651
2523
|
{
|
|
2652
2524
|
"txid": "id", (string) The transaction id
|
|
2653
|
-
"vout": n, (numeric)
|
|
2525
|
+
"vout": n, (numeric)
|
|
2654
2526
|
"scriptSig": { (json object) The script
|
|
2655
2527
|
"asm": "asm", (string) asm
|
|
2656
2528
|
"hex": "hex" (string) hex
|
|
@@ -2687,9 +2559,9 @@ Examples:
|
|
|
2687
2559
|
> neurai-cli getrawtransaction "mytxid"
|
|
2688
2560
|
> neurai-cli getrawtransaction "mytxid" true
|
|
2689
2561
|
> 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:19001/
|
|
2690
|
-
|
|
2691
|
-
<br> <br/>
|
|
2692
|
-
## getreceivedbyaccount
|
|
2562
|
+
|
|
2563
|
+
<br> <br/>
|
|
2564
|
+
## getreceivedbyaccount
|
|
2693
2565
|
<br/> getreceivedbyaccount "account" ( minconf )
|
|
2694
2566
|
|
|
2695
2567
|
DEPRECATED. Returns the total amount received by addresses with <account> in transactions with at least [minconf] confirmations.
|
|
@@ -2714,9 +2586,9 @@ The amount with at least 6 confirmations
|
|
|
2714
2586
|
|
|
2715
2587
|
As a json rpc call
|
|
2716
2588
|
> 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:19001/
|
|
2717
|
-
|
|
2718
|
-
<br> <br/>
|
|
2719
|
-
## getreceivedbyaddress
|
|
2589
|
+
|
|
2590
|
+
<br> <br/>
|
|
2591
|
+
## getreceivedbyaddress
|
|
2720
2592
|
<br/> getreceivedbyaddress "address" ( minconf )
|
|
2721
2593
|
|
|
2722
2594
|
Returns the total amount received by the given address in transactions with at least minconf confirmations.
|
|
@@ -2741,9 +2613,9 @@ The amount with at least 6 confirmations
|
|
|
2741
2613
|
|
|
2742
2614
|
As a json rpc call
|
|
2743
2615
|
> 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:19001/
|
|
2744
|
-
|
|
2745
|
-
<br> <br/>
|
|
2746
|
-
## getrpcinfo
|
|
2616
|
+
|
|
2617
|
+
<br> <br/>
|
|
2618
|
+
## getrpcinfo
|
|
2747
2619
|
<br/> getrpcinfo
|
|
2748
2620
|
Returns details of the RPC server.
|
|
2749
2621
|
|
|
@@ -2752,16 +2624,16 @@ Result:
|
|
|
2752
2624
|
"active_commands" (array) All active commands
|
|
2753
2625
|
[
|
|
2754
2626
|
{ (object) Information about an active command
|
|
2755
|
-
"method" (string) The name of the RPC command
|
|
2627
|
+
"method" (string) The name of the RPC command
|
|
2756
2628
|
"duration" (numeric) The running time in microseconds
|
|
2757
2629
|
},...
|
|
2758
2630
|
],
|
|
2759
2631
|
}
|
|
2760
|
-
> neurai-cli getrpcinfo
|
|
2632
|
+
> neurai-cli getrpcinfo
|
|
2761
2633
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrpcinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2762
|
-
|
|
2763
|
-
<br> <br/>
|
|
2764
|
-
## getsnapshot
|
|
2634
|
+
|
|
2635
|
+
<br> <br/>
|
|
2636
|
+
## getsnapshot
|
|
2765
2637
|
<br/> getsnapshot "asset_name" block_height
|
|
2766
2638
|
|
|
2767
2639
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
@@ -2786,9 +2658,9 @@ Result:
|
|
|
2786
2658
|
|
|
2787
2659
|
Examples:
|
|
2788
2660
|
> 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:19001/
|
|
2789
|
-
|
|
2790
|
-
<br> <br/>
|
|
2791
|
-
## getsnapshotrequest
|
|
2661
|
+
|
|
2662
|
+
<br> <br/>
|
|
2663
|
+
## getsnapshotrequest
|
|
2792
2664
|
<br/> getsnapshotrequest "asset_name" block_height
|
|
2793
2665
|
|
|
2794
2666
|
Retrieves the specified snapshot request details.
|
|
@@ -2806,9 +2678,9 @@ Result:
|
|
|
2806
2678
|
Examples:
|
|
2807
2679
|
> neurai-cli getsnapshotrequest "TRONCO" 12345
|
|
2808
2680
|
> 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:19001/
|
|
2809
|
-
|
|
2810
|
-
<br> <br/>
|
|
2811
|
-
## getspentinfo
|
|
2681
|
+
|
|
2682
|
+
<br> <br/>
|
|
2683
|
+
## getspentinfo
|
|
2812
2684
|
<br/> getspentinfo
|
|
2813
2685
|
|
|
2814
2686
|
Returns the txid and index where an output is spent.
|
|
@@ -2829,9 +2701,9 @@ Result:
|
|
|
2829
2701
|
Examples:
|
|
2830
2702
|
> neurai-cli getspentinfo '{"txid": "0437cd7f8525ceed2324359c2d0ba26006d92d856a9c20fa0241106ee5a597c9", "index": 0}'
|
|
2831
2703
|
> 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:19001/
|
|
2832
|
-
|
|
2833
|
-
<br> <br/>
|
|
2834
|
-
## gettransaction
|
|
2704
|
+
|
|
2705
|
+
<br> <br/>
|
|
2706
|
+
## gettransaction
|
|
2835
2707
|
<br/> gettransaction "txid" ( include_watchonly )
|
|
2836
2708
|
|
|
2837
2709
|
Get detailed information about in-wallet transaction <txid>
|
|
@@ -2843,7 +2715,7 @@ Arguments:
|
|
|
2843
2715
|
Result:
|
|
2844
2716
|
{
|
|
2845
2717
|
"amount" : x.xxx, (numeric) The transaction amount in XNA
|
|
2846
|
-
"fee": x.xxx, (numeric) The amount of the fee in XNA. This is negative and only available for the
|
|
2718
|
+
"fee": x.xxx, (numeric) The amount of the fee in XNA. This is negative and only available for the
|
|
2847
2719
|
'send' category of transactions.
|
|
2848
2720
|
"confirmations" : n, (numeric) The number of confirmations
|
|
2849
2721
|
"blockhash" : "hash", (string) The block hash
|
|
@@ -2862,9 +2734,9 @@ Result:
|
|
|
2862
2734
|
"amount" : x.xxx, (numeric) The amount in XNA
|
|
2863
2735
|
"label" : "label", (string) A comment for the address/transaction, if any
|
|
2864
2736
|
"vout" : n, (numeric) the vout value
|
|
2865
|
-
"fee": x.xxx, (numeric) The amount of the fee in XNA. This is negative and only available for the
|
|
2737
|
+
"fee": x.xxx, (numeric) The amount of the fee in XNA. This is negative and only available for the
|
|
2866
2738
|
'send' category of transactions.
|
|
2867
|
-
"abandoned": xxx (bool) 'true' if the transaction has been abandoned (inputs are respendable). Only available for the
|
|
2739
|
+
"abandoned": xxx (bool) 'true' if the transaction has been abandoned (inputs are respendable). Only available for the
|
|
2868
2740
|
'send' category of transactions.
|
|
2869
2741
|
}
|
|
2870
2742
|
,...
|
|
@@ -2887,9 +2759,9 @@ Examples:
|
|
|
2887
2759
|
> neurai-cli gettransaction "1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"
|
|
2888
2760
|
> neurai-cli gettransaction "1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d" true
|
|
2889
2761
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettransaction", "params": ["1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2890
|
-
|
|
2891
|
-
<br> <br/>
|
|
2892
|
-
## gettxout
|
|
2762
|
+
|
|
2763
|
+
<br> <br/>
|
|
2764
|
+
## gettxout
|
|
2893
2765
|
<br/> gettxout "txid" n ( include_mempool )
|
|
2894
2766
|
|
|
2895
2767
|
Returns details about an unspent transaction output.
|
|
@@ -2905,8 +2777,8 @@ Result:
|
|
|
2905
2777
|
"confirmations" : n, (numeric) The number of confirmations
|
|
2906
2778
|
"value" : x.xxx, (numeric) The transaction value in XNA
|
|
2907
2779
|
"scriptPubKey" : { (json object)
|
|
2908
|
-
"asm" : "code", (string)
|
|
2909
|
-
"hex" : "hex", (string)
|
|
2780
|
+
"asm" : "code", (string)
|
|
2781
|
+
"hex" : "hex", (string)
|
|
2910
2782
|
"reqSigs" : n, (numeric) Number of required signatures
|
|
2911
2783
|
"type" : "pubkeyhash", (string) The type, eg pubkeyhash
|
|
2912
2784
|
"addresses" : [ (array of string) array of neurai addresses
|
|
@@ -2920,16 +2792,16 @@ Result:
|
|
|
2920
2792
|
Examples:
|
|
2921
2793
|
|
|
2922
2794
|
Get unspent transactions
|
|
2923
|
-
> neurai-cli listunspent
|
|
2795
|
+
> neurai-cli listunspent
|
|
2924
2796
|
|
|
2925
2797
|
View the details
|
|
2926
2798
|
> neurai-cli gettxout "txid" 1
|
|
2927
2799
|
|
|
2928
2800
|
As a json rpc call
|
|
2929
2801
|
> 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:19001/
|
|
2930
|
-
|
|
2931
|
-
<br> <br/>
|
|
2932
|
-
## gettxoutproof
|
|
2802
|
+
|
|
2803
|
+
<br> <br/>
|
|
2804
|
+
## gettxoutproof
|
|
2933
2805
|
<br/> gettxoutproof ["txid",...] ( blockhash )
|
|
2934
2806
|
|
|
2935
2807
|
Returns a hex-encoded proof that "txid" was included in a block.
|
|
@@ -2949,9 +2821,9 @@ Arguments:
|
|
|
2949
2821
|
|
|
2950
2822
|
Result:
|
|
2951
2823
|
"data" (string) A string that is a serialized, hex-encoded data for the proof.
|
|
2952
|
-
|
|
2953
|
-
<br> <br/>
|
|
2954
|
-
## gettxoutsetinfo
|
|
2824
|
+
|
|
2825
|
+
<br> <br/>
|
|
2826
|
+
## gettxoutsetinfo
|
|
2955
2827
|
<br/> gettxoutsetinfo
|
|
2956
2828
|
|
|
2957
2829
|
Returns statistics about the unspent transaction output set.
|
|
@@ -2970,16 +2842,16 @@ Result:
|
|
|
2970
2842
|
}
|
|
2971
2843
|
|
|
2972
2844
|
Examples:
|
|
2973
|
-
> neurai-cli gettxoutsetinfo
|
|
2845
|
+
> neurai-cli gettxoutsetinfo
|
|
2974
2846
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettxoutsetinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2975
|
-
|
|
2976
|
-
<br> <br/>
|
|
2977
|
-
## getunconfirmedbalance
|
|
2847
|
+
|
|
2848
|
+
<br> <br/>
|
|
2849
|
+
## getunconfirmedbalance
|
|
2978
2850
|
<br/> getunconfirmedbalance
|
|
2979
2851
|
Returns the server's total unconfirmed balance
|
|
2980
|
-
|
|
2981
|
-
<br> <br/>
|
|
2982
|
-
## getverifierstring
|
|
2852
|
+
|
|
2853
|
+
<br> <br/>
|
|
2854
|
+
## getverifierstring
|
|
2983
2855
|
<br/> getverifierstring restricted_name
|
|
2984
2856
|
|
|
2985
2857
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
@@ -2996,9 +2868,9 @@ Result:
|
|
|
2996
2868
|
Examples:
|
|
2997
2869
|
> neurai-cli getverifierstring "restricted_name"
|
|
2998
2870
|
> 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:19001/
|
|
2999
|
-
|
|
3000
|
-
<br> <br/>
|
|
3001
|
-
## getwalletinfo
|
|
2871
|
+
|
|
2872
|
+
<br> <br/>
|
|
2873
|
+
## getwalletinfo
|
|
3002
2874
|
<br/> getwalletinfo
|
|
3003
2875
|
Returns an object containing various wallet state info.
|
|
3004
2876
|
|
|
@@ -3020,11 +2892,11 @@ Result:
|
|
|
3020
2892
|
}
|
|
3021
2893
|
|
|
3022
2894
|
Examples:
|
|
3023
|
-
> neurai-cli getwalletinfo
|
|
2895
|
+
> neurai-cli getwalletinfo
|
|
3024
2896
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getwalletinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3025
|
-
|
|
3026
|
-
<br> <br/>
|
|
3027
|
-
## help
|
|
2897
|
+
|
|
2898
|
+
<br> <br/>
|
|
2899
|
+
## help
|
|
3028
2900
|
<br/> help ( "command" )
|
|
3029
2901
|
|
|
3030
2902
|
List all commands, or get help for a specified command.
|
|
@@ -3034,9 +2906,9 @@ Arguments:
|
|
|
3034
2906
|
|
|
3035
2907
|
Result:
|
|
3036
2908
|
"text" (string) The help text
|
|
3037
|
-
|
|
3038
|
-
<br> <br/>
|
|
3039
|
-
## importaddress
|
|
2909
|
+
|
|
2910
|
+
<br> <br/>
|
|
2911
|
+
## importaddress
|
|
3040
2912
|
<br/> importaddress "address" ( "label" rescan p2sh )
|
|
3041
2913
|
|
|
3042
2914
|
Adds a script (in hex) or address that can be watched as if it were in your wallet but cannot be used to spend.
|
|
@@ -3063,9 +2935,9 @@ Import using a label without rescan
|
|
|
3063
2935
|
|
|
3064
2936
|
As a JSON-RPC call
|
|
3065
2937
|
> 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:19001/
|
|
3066
|
-
|
|
3067
|
-
<br> <br/>
|
|
3068
|
-
## importmulti
|
|
2938
|
+
|
|
2939
|
+
<br> <br/>
|
|
2940
|
+
## importmulti
|
|
3069
2941
|
<br/> importmulti "requests" ( "options" )
|
|
3070
2942
|
|
|
3071
2943
|
Import addresses/scripts (with private or public keys, redeem script (P2SH)), rescanning all addresses in one-shot-only (rescan can be disabled via options).
|
|
@@ -3101,9 +2973,9 @@ Examples:
|
|
|
3101
2973
|
|
|
3102
2974
|
Response is an array with the same size as the input that has the execution result :
|
|
3103
2975
|
[{ "success": true } , { "success": false, "error": { "code": -1, "message": "Internal Server Error"} }, ... ]
|
|
3104
|
-
|
|
3105
|
-
<br> <br/>
|
|
3106
|
-
## importprivkey
|
|
2976
|
+
|
|
2977
|
+
<br> <br/>
|
|
2978
|
+
## importprivkey
|
|
3107
2979
|
<br/> importprivkey "privkey" ( "label" ) ( rescan )
|
|
3108
2980
|
|
|
3109
2981
|
Adds a private key (as returned by dumpprivkey) to your wallet.
|
|
@@ -3131,9 +3003,9 @@ Import using default blank label and without rescan
|
|
|
3131
3003
|
|
|
3132
3004
|
As a JSON-RPC call
|
|
3133
3005
|
> 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:19001/
|
|
3134
|
-
|
|
3135
|
-
<br> <br/>
|
|
3136
|
-
## importprunedfunds
|
|
3006
|
+
|
|
3007
|
+
<br> <br/>
|
|
3008
|
+
## importprunedfunds
|
|
3137
3009
|
<br/> importprunedfunds
|
|
3138
3010
|
|
|
3139
3011
|
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.
|
|
@@ -3141,9 +3013,9 @@ Imports funds without rescan. Corresponding address or script must previously be
|
|
|
3141
3013
|
Arguments:
|
|
3142
3014
|
1. "rawtransaction" (string, required) A raw transaction in hex funding an already-existing address in wallet
|
|
3143
3015
|
2. "txoutproof" (string, required) The hex output from gettxoutproof that contains the transaction
|
|
3144
|
-
|
|
3145
|
-
<br> <br/>
|
|
3146
|
-
## importpubkey
|
|
3016
|
+
|
|
3017
|
+
<br> <br/>
|
|
3018
|
+
## importpubkey
|
|
3147
3019
|
<br/> importpubkey "pubkey" ( "label" rescan )
|
|
3148
3020
|
|
|
3149
3021
|
Adds a public key (in hex) that can be watched as if it were in your wallet but cannot be used to spend.
|
|
@@ -3165,9 +3037,9 @@ Import using a label without rescan
|
|
|
3165
3037
|
|
|
3166
3038
|
As a JSON-RPC call
|
|
3167
3039
|
> 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:19001/
|
|
3168
|
-
|
|
3169
|
-
<br> <br/>
|
|
3170
|
-
## importwallet
|
|
3040
|
+
|
|
3041
|
+
<br> <br/>
|
|
3042
|
+
## importwallet
|
|
3171
3043
|
<br/> importwallet "filename"
|
|
3172
3044
|
|
|
3173
3045
|
Imports keys from a wallet dump file (see dumpwallet).
|
|
@@ -3185,9 +3057,9 @@ Import the wallet
|
|
|
3185
3057
|
|
|
3186
3058
|
Import using the json rpc call
|
|
3187
3059
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importwallet", "params": ["test"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3188
|
-
|
|
3189
|
-
<br> <br/>
|
|
3190
|
-
## issue
|
|
3060
|
+
|
|
3061
|
+
<br> <br/>
|
|
3062
|
+
## issue
|
|
3191
3063
|
<br/> issue "asset_name" qty "( to_address )" "( change_address )" ( units ) ( reissuable ) ( has_ipfs ) "( ipfs_hash )"
|
|
3192
3064
|
|
|
3193
3065
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
@@ -3220,9 +3092,9 @@ Examples:
|
|
|
3220
3092
|
> neurai-cli issue "ASSET_NAME" 1000 "myaddress" "changeaddress" 8 false true QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E
|
|
3221
3093
|
> neurai-cli issue "ASSET_NAME/SUB_ASSET" 1000 "myaddress" "changeaddress" 2 true
|
|
3222
3094
|
> neurai-cli issue "ASSET_NAME#uniquetag"
|
|
3223
|
-
|
|
3224
|
-
<br> <br/>
|
|
3225
|
-
## issuequalifierasset
|
|
3095
|
+
|
|
3096
|
+
<br> <br/>
|
|
3097
|
+
## issuequalifierasset
|
|
3226
3098
|
<br/> issuequalifierasset "asset_name" qty "( to_address )" "( change_address )" ( has_ipfs ) "( ipfs_hash )"
|
|
3227
3099
|
|
|
3228
3100
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
@@ -3254,9 +3126,9 @@ Examples:
|
|
|
3254
3126
|
> neurai-cli issuequalifierasset "#ASSET_NAME" 1000 "myaddress" "changeaddress" true QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E
|
|
3255
3127
|
> neurai-cli issuequalifierasset "ASSET_NAME/SUB_QUALIFIER" 1000 "myaddress" "changeaddress"
|
|
3256
3128
|
> neurai-cli issuequalifierasset "#ASSET_NAME"
|
|
3257
|
-
|
|
3258
|
-
<br> <br/>
|
|
3259
|
-
## issuerestrictedasset
|
|
3129
|
+
|
|
3130
|
+
<br> <br/>
|
|
3131
|
+
## issuerestrictedasset
|
|
3260
3132
|
<br/> issuerestrictedasset "asset_name" qty "verifier" "to_address" "( change_address )" (units) ( reissuable ) ( has_ipfs ) "( ipfs_hash )"
|
|
3261
3133
|
|
|
3262
3134
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
@@ -3287,9 +3159,9 @@ Examples:
|
|
|
3287
3159
|
> neurai-cli issuerestrictedasset "$ASSET_NAME" 1000 "#KYC & !#AML" "myaddress" "changeaddress" 5
|
|
3288
3160
|
> neurai-cli issuerestrictedasset "$ASSET_NAME" 1000 "#KYC & !#AML" "myaddress" "changeaddress" 8 true
|
|
3289
3161
|
> neurai-cli issuerestrictedasset "$ASSET_NAME" 1000 "#KYC & !#AML" "myaddress" "changeaddress" 0 false true QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E
|
|
3290
|
-
|
|
3291
|
-
<br> <br/>
|
|
3292
|
-
## issueunique
|
|
3162
|
+
|
|
3163
|
+
<br> <br/>
|
|
3164
|
+
## issueunique
|
|
3293
3165
|
<br/> issueunique "root_name" [asset_tags] ( [ipfs_hashes] ) "( to_address )" "( change_address )"
|
|
3294
3166
|
|
|
3295
3167
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
@@ -3314,9 +3186,9 @@ Result:
|
|
|
3314
3186
|
Examples:
|
|
3315
3187
|
> neurai-cli issueunique "MY_ASSET" '["primo","secundo"]'
|
|
3316
3188
|
> neurai-cli issueunique "MY_ASSET" '["primo","secundo"]' '["first_hash","second_hash"]'
|
|
3317
|
-
|
|
3318
|
-
<br> <br/>
|
|
3319
|
-
## isvalidverifierstring
|
|
3189
|
+
|
|
3190
|
+
<br> <br/>
|
|
3191
|
+
## isvalidverifierstring
|
|
3320
3192
|
<br/> isvalidverifierstring verifier_string
|
|
3321
3193
|
|
|
3322
3194
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
@@ -3333,9 +3205,9 @@ Result:
|
|
|
3333
3205
|
Examples:
|
|
3334
3206
|
> neurai-cli isvalidverifierstring "verifier_string"
|
|
3335
3207
|
> 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:19001/
|
|
3336
|
-
|
|
3337
|
-
<br> <br/>
|
|
3338
|
-
## keypoolrefill
|
|
3208
|
+
|
|
3209
|
+
<br> <br/>
|
|
3210
|
+
## keypoolrefill
|
|
3339
3211
|
<br/> keypoolrefill ( newsize )
|
|
3340
3212
|
|
|
3341
3213
|
Fills the keypool.
|
|
@@ -3344,11 +3216,11 @@ Arguments
|
|
|
3344
3216
|
1. newsize (numeric, optional, default=100) The new keypool size
|
|
3345
3217
|
|
|
3346
3218
|
Examples:
|
|
3347
|
-
> neurai-cli keypoolrefill
|
|
3219
|
+
> neurai-cli keypoolrefill
|
|
3348
3220
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "keypoolrefill", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3349
|
-
|
|
3350
|
-
<br> <br/>
|
|
3351
|
-
## listaccounts
|
|
3221
|
+
|
|
3222
|
+
<br> <br/>
|
|
3223
|
+
## listaccounts
|
|
3352
3224
|
<br/> listaccounts ( minconf include_watchonly)
|
|
3353
3225
|
|
|
3354
3226
|
DEPRECATED. Returns Object that has account names as keys, account balances as values.
|
|
@@ -3366,7 +3238,7 @@ Result:
|
|
|
3366
3238
|
Examples:
|
|
3367
3239
|
|
|
3368
3240
|
List account balances where there at least 1 confirmation
|
|
3369
|
-
> neurai-cli listaccounts
|
|
3241
|
+
> neurai-cli listaccounts
|
|
3370
3242
|
|
|
3371
3243
|
List account balances including zero confirmation transactions
|
|
3372
3244
|
> neurai-cli listaccounts 0
|
|
@@ -3376,9 +3248,9 @@ List account balances for 6 or more confirmations
|
|
|
3376
3248
|
|
|
3377
3249
|
As json rpc call
|
|
3378
3250
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaccounts", "params": [6] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3379
|
-
|
|
3380
|
-
<br> <br/>
|
|
3381
|
-
## listaddressesbyasset
|
|
3251
|
+
|
|
3252
|
+
<br> <br/>
|
|
3253
|
+
## listaddressesbyasset
|
|
3382
3254
|
<br/> listaddressesbyasset "asset_name" (onlytotal) (count) (start)
|
|
3383
3255
|
|
|
3384
3256
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
@@ -3401,9 +3273,9 @@ Examples:
|
|
|
3401
3273
|
> neurai-cli listaddressesbyasset "ASSET_NAME" false 2 0
|
|
3402
3274
|
> neurai-cli listaddressesbyasset "ASSET_NAME" true
|
|
3403
3275
|
> neurai-cli listaddressesbyasset "ASSET_NAME"
|
|
3404
|
-
|
|
3405
|
-
<br> <br/>
|
|
3406
|
-
## listaddressesfortag
|
|
3276
|
+
|
|
3277
|
+
<br> <br/>
|
|
3278
|
+
## listaddressesfortag
|
|
3407
3279
|
<br/> listaddressesfortag tag_name
|
|
3408
3280
|
|
|
3409
3281
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
@@ -3422,9 +3294,9 @@ Result:
|
|
|
3422
3294
|
Examples:
|
|
3423
3295
|
> neurai-cli listaddressesfortag "#TAG"
|
|
3424
3296
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressesfortag", "params": ["#TAG"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3425
|
-
|
|
3426
|
-
<br> <br/>
|
|
3427
|
-
## listaddressgroupings
|
|
3297
|
+
|
|
3298
|
+
<br> <br/>
|
|
3299
|
+
## listaddressgroupings
|
|
3428
3300
|
<br/> listaddressgroupings
|
|
3429
3301
|
|
|
3430
3302
|
Lists groups of addresses which have had their common ownership
|
|
@@ -3445,11 +3317,11 @@ Result:
|
|
|
3445
3317
|
]
|
|
3446
3318
|
|
|
3447
3319
|
Examples:
|
|
3448
|
-
> neurai-cli listaddressgroupings
|
|
3320
|
+
> neurai-cli listaddressgroupings
|
|
3449
3321
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressgroupings", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3450
|
-
|
|
3451
|
-
<br> <br/>
|
|
3452
|
-
## listaddressrestrictions
|
|
3322
|
+
|
|
3323
|
+
<br> <br/>
|
|
3324
|
+
## listaddressrestrictions
|
|
3453
3325
|
<br/> listaddressrestrictions address
|
|
3454
3326
|
|
|
3455
3327
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
@@ -3468,9 +3340,9 @@ Result:
|
|
|
3468
3340
|
Examples:
|
|
3469
3341
|
> neurai-cli listaddressrestrictions "address"
|
|
3470
3342
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressrestrictions", "params": ["address"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3471
|
-
|
|
3472
|
-
<br> <br/>
|
|
3473
|
-
## listassetbalancesbyaddress
|
|
3343
|
+
|
|
3344
|
+
<br> <br/>
|
|
3345
|
+
## listassetbalancesbyaddress
|
|
3474
3346
|
<br/> listassetbalancesbyaddress "address" (onlytotal) (count) (start)
|
|
3475
3347
|
|
|
3476
3348
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
@@ -3494,9 +3366,9 @@ Examples:
|
|
|
3494
3366
|
> neurai-cli listassetbalancesbyaddress "myaddress" false 2 0
|
|
3495
3367
|
> neurai-cli listassetbalancesbyaddress "myaddress" true
|
|
3496
3368
|
> neurai-cli listassetbalancesbyaddress "myaddress"
|
|
3497
|
-
|
|
3498
|
-
<br> <br/>
|
|
3499
|
-
## listassets
|
|
3369
|
+
|
|
3370
|
+
<br> <br/>
|
|
3371
|
+
## listassets
|
|
3500
3372
|
<br/> listassets "( asset )" ( verbose ) ( count ) ( start )
|
|
3501
3373
|
|
|
3502
3374
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
@@ -3536,19 +3408,19 @@ Examples:
|
|
|
3536
3408
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listassets", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3537
3409
|
> neurai-cli listassets ASSET
|
|
3538
3410
|
> neurai-cli listassets "ASSET*" true 10 20
|
|
3539
|
-
|
|
3540
|
-
<br> <br/>
|
|
3541
|
-
## listbanned
|
|
3411
|
+
|
|
3412
|
+
<br> <br/>
|
|
3413
|
+
## listbanned
|
|
3542
3414
|
<br/> listbanned
|
|
3543
3415
|
|
|
3544
3416
|
List all banned IPs/Subnets.
|
|
3545
3417
|
|
|
3546
3418
|
Examples:
|
|
3547
|
-
> neurai-cli listbanned
|
|
3419
|
+
> neurai-cli listbanned
|
|
3548
3420
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listbanned", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3549
|
-
|
|
3550
|
-
<br> <br/>
|
|
3551
|
-
## listdepinaddresses
|
|
3421
|
+
|
|
3422
|
+
<br> <br/>
|
|
3423
|
+
## listdepinaddresses
|
|
3552
3424
|
<br/> listdepinaddresses "asset_name" (count) (start)
|
|
3553
3425
|
|
|
3554
3426
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
@@ -3575,9 +3447,9 @@ Examples:
|
|
|
3575
3447
|
> neurai-cli listdepinaddresses "ASSET_NAME"
|
|
3576
3448
|
> neurai-cli listdepinaddresses "ASSET_NAME" 10 0
|
|
3577
3449
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listdepinaddresses", "params": ["ASSET_NAME"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3578
|
-
|
|
3579
|
-
<br> <br/>
|
|
3580
|
-
## listdepinholders
|
|
3450
|
+
|
|
3451
|
+
<br> <br/>
|
|
3452
|
+
## listdepinholders
|
|
3581
3453
|
<br/> listdepinholders "asset_name"
|
|
3582
3454
|
|
|
3583
3455
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
@@ -3603,9 +3475,9 @@ Result:
|
|
|
3603
3475
|
Examples:
|
|
3604
3476
|
> neurai-cli listdepinholders "&FRANCE"
|
|
3605
3477
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listdepinholders", "params": ["&FRANCE"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3606
|
-
|
|
3607
|
-
<br> <br/>
|
|
3608
|
-
## listglobalrestrictions
|
|
3478
|
+
|
|
3479
|
+
<br> <br/>
|
|
3480
|
+
## listglobalrestrictions
|
|
3609
3481
|
<br/> listglobalrestrictions
|
|
3610
3482
|
|
|
3611
3483
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
@@ -3619,11 +3491,11 @@ Result:
|
|
|
3619
3491
|
]
|
|
3620
3492
|
|
|
3621
3493
|
Examples:
|
|
3622
|
-
> neurai-cli listglobalrestrictions
|
|
3494
|
+
> neurai-cli listglobalrestrictions
|
|
3623
3495
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listglobalrestrictions", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3624
|
-
|
|
3625
|
-
<br> <br/>
|
|
3626
|
-
## listlockunspent
|
|
3496
|
+
|
|
3497
|
+
<br> <br/>
|
|
3498
|
+
## listlockunspent
|
|
3627
3499
|
<br/> listlockunspent
|
|
3628
3500
|
|
|
3629
3501
|
Returns list of temporarily unspendable outputs.
|
|
@@ -3641,23 +3513,23 @@ Result:
|
|
|
3641
3513
|
Examples:
|
|
3642
3514
|
|
|
3643
3515
|
List the unspent transactions
|
|
3644
|
-
> neurai-cli listunspent
|
|
3516
|
+
> neurai-cli listunspent
|
|
3645
3517
|
|
|
3646
3518
|
Lock an unspent transaction
|
|
3647
3519
|
> neurai-cli lockunspent false "[{\"txid\":\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\",\"vout\":1}]"
|
|
3648
3520
|
|
|
3649
3521
|
List the locked transactions
|
|
3650
|
-
> neurai-cli listlockunspent
|
|
3522
|
+
> neurai-cli listlockunspent
|
|
3651
3523
|
|
|
3652
3524
|
Unlock the transaction again
|
|
3653
3525
|
> neurai-cli lockunspent true "[{\"txid\":\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\",\"vout\":1}]"
|
|
3654
3526
|
|
|
3655
3527
|
As a json rpc call
|
|
3656
3528
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listlockunspent", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3657
|
-
|
|
3658
|
-
<br> <br/>
|
|
3659
|
-
## listmyassets
|
|
3660
|
-
<br/> listmyassets "( asset )" ( verbose ) ( count ) ( start ) (confs)
|
|
3529
|
+
|
|
3530
|
+
<br> <br/>
|
|
3531
|
+
## listmyassets
|
|
3532
|
+
<br/> listmyassets "( asset )" ( verbose ) ( count ) ( start ) (confs)
|
|
3661
3533
|
|
|
3662
3534
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
3663
3535
|
https://github.com/NeuraiProject/rips/blob/master/rip-0002.mediawiki
|
|
@@ -3700,9 +3572,9 @@ Examples:
|
|
|
3700
3572
|
> neurai-cli listmyassets ASSET
|
|
3701
3573
|
> neurai-cli listmyassets "ASSET*" true 10 20
|
|
3702
3574
|
> neurai-cli listmyassets "ASSET*" true 10 20 1
|
|
3703
|
-
|
|
3704
|
-
<br> <br/>
|
|
3705
|
-
## listpqaddresses
|
|
3575
|
+
|
|
3576
|
+
<br> <br/>
|
|
3577
|
+
## listpqaddresses
|
|
3706
3578
|
<br/> listpqaddresses
|
|
3707
3579
|
|
|
3708
3580
|
Returns the list of post-quantum (ML-DSA-44) Bech32m addresses in the wallet.
|
|
@@ -3714,11 +3586,11 @@ Result:
|
|
|
3714
3586
|
]
|
|
3715
3587
|
|
|
3716
3588
|
Examples:
|
|
3717
|
-
> neurai-cli listpqaddresses
|
|
3589
|
+
> neurai-cli listpqaddresses
|
|
3718
3590
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listpqaddresses", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3719
|
-
|
|
3720
|
-
<br> <br/>
|
|
3721
|
-
## listreceivedbyaccount
|
|
3591
|
+
|
|
3592
|
+
<br> <br/>
|
|
3593
|
+
## listreceivedbyaccount
|
|
3722
3594
|
<br/> listreceivedbyaccount ( minconf include_empty include_watchonly)
|
|
3723
3595
|
|
|
3724
3596
|
DEPRECATED. List balances by account.
|
|
@@ -3741,12 +3613,12 @@ Result:
|
|
|
3741
3613
|
]
|
|
3742
3614
|
|
|
3743
3615
|
Examples:
|
|
3744
|
-
> neurai-cli listreceivedbyaccount
|
|
3616
|
+
> neurai-cli listreceivedbyaccount
|
|
3745
3617
|
> neurai-cli listreceivedbyaccount 6 true
|
|
3746
3618
|
> 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:19001/
|
|
3747
|
-
|
|
3748
|
-
<br> <br/>
|
|
3749
|
-
## listreceivedbyaddress
|
|
3619
|
+
|
|
3620
|
+
<br> <br/>
|
|
3621
|
+
## listreceivedbyaddress
|
|
3750
3622
|
<br/> listreceivedbyaddress ( minconf include_empty include_watchonly)
|
|
3751
3623
|
|
|
3752
3624
|
List balances by receiving address.
|
|
@@ -3766,7 +3638,7 @@ Result:
|
|
|
3766
3638
|
"confirmations" : n, (numeric) The number of confirmations of the most recent transaction included
|
|
3767
3639
|
"label" : "label", (string) A comment for the address/transaction, if any
|
|
3768
3640
|
"txids": [
|
|
3769
|
-
n, (numeric) The ids of transactions received with the address
|
|
3641
|
+
n, (numeric) The ids of transactions received with the address
|
|
3770
3642
|
...
|
|
3771
3643
|
]
|
|
3772
3644
|
}
|
|
@@ -3774,12 +3646,12 @@ Result:
|
|
|
3774
3646
|
]
|
|
3775
3647
|
|
|
3776
3648
|
Examples:
|
|
3777
|
-
> neurai-cli listreceivedbyaddress
|
|
3649
|
+
> neurai-cli listreceivedbyaddress
|
|
3778
3650
|
> neurai-cli listreceivedbyaddress 6 true
|
|
3779
3651
|
> 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:19001/
|
|
3780
|
-
|
|
3781
|
-
<br> <br/>
|
|
3782
|
-
## listsinceblock
|
|
3652
|
+
|
|
3653
|
+
<br> <br/>
|
|
3654
|
+
## listsinceblock
|
|
3783
3655
|
<br/> listsinceblock ( "blockhash" target_confirmations include_watchonly include_removed )
|
|
3784
3656
|
|
|
3785
3657
|
Get all transactions in blocks since block [blockhash], or all transactions if omitted.
|
|
@@ -3799,7 +3671,7 @@ Result:
|
|
|
3799
3671
|
"account":"accountname", (string) DEPRECATED. The account name associated with the transaction. Will be "" for the default account.
|
|
3800
3672
|
"address":"address", (string) The neurai address of the transaction. Not present for move transactions (category = move).
|
|
3801
3673
|
"category":"send|receive", (string) The transaction category. 'send' has negative amounts, 'receive' has positive amounts.
|
|
3802
|
-
"amount": x.xxx, (numeric) The amount in XNA. This is negative for the 'send' category, and for the 'move' category for moves
|
|
3674
|
+
"amount": x.xxx, (numeric) The amount in XNA. This is negative for the 'send' category, and for the 'move' category for moves
|
|
3803
3675
|
outbound. It is positive for the 'receive' category, and for the 'move' category for inbound funds.
|
|
3804
3676
|
"vout" : n, (numeric) the vout value
|
|
3805
3677
|
"fee": x.xxx, (numeric) The amount of the fee in XNA. This is negative and only available for the 'send' category of transactions.
|
|
@@ -3826,12 +3698,12 @@ Result:
|
|
|
3826
3698
|
}
|
|
3827
3699
|
|
|
3828
3700
|
Examples:
|
|
3829
|
-
> neurai-cli listsinceblock
|
|
3701
|
+
> neurai-cli listsinceblock
|
|
3830
3702
|
> neurai-cli listsinceblock "000000000000000bacf66f7497b7dc45ef753ee9a7d38571037cdb1a57f663ad" 6
|
|
3831
3703
|
> 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:19001/
|
|
3832
|
-
|
|
3833
|
-
<br> <br/>
|
|
3834
|
-
## listsnapshotrequests
|
|
3704
|
+
|
|
3705
|
+
<br> <br/>
|
|
3706
|
+
## listsnapshotrequests
|
|
3835
3707
|
<br/> listsnapshotrequests ["asset_name" [block_height]]
|
|
3836
3708
|
|
|
3837
3709
|
List snapshot request details.
|
|
@@ -3849,11 +3721,11 @@ Result:
|
|
|
3849
3721
|
]
|
|
3850
3722
|
|
|
3851
3723
|
Examples:
|
|
3852
|
-
> neurai-cli listsnapshotrequests
|
|
3724
|
+
> neurai-cli listsnapshotrequests
|
|
3853
3725
|
> 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:19001/
|
|
3854
|
-
|
|
3855
|
-
<br> <br/>
|
|
3856
|
-
## listtagsforaddress
|
|
3726
|
+
|
|
3727
|
+
<br> <br/>
|
|
3728
|
+
## listtagsforaddress
|
|
3857
3729
|
<br/> listtagsforaddress address
|
|
3858
3730
|
|
|
3859
3731
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
@@ -3872,9 +3744,9 @@ Result:
|
|
|
3872
3744
|
Examples:
|
|
3873
3745
|
> neurai-cli listtagsforaddress "address"
|
|
3874
3746
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listtagsforaddress", "params": ["address"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3875
|
-
|
|
3876
|
-
<br> <br/>
|
|
3877
|
-
## listtransactions
|
|
3747
|
+
|
|
3748
|
+
<br> <br/>
|
|
3749
|
+
## listtransactions
|
|
3878
3750
|
<br/> listtransactions ( "account" count skip include_watchonly)
|
|
3879
3751
|
|
|
3880
3752
|
Returns up to 'count' most recent transactions skipping the first 'from' transactions for account 'account'.
|
|
@@ -3888,22 +3760,22 @@ Arguments:
|
|
|
3888
3760
|
Result:
|
|
3889
3761
|
[
|
|
3890
3762
|
{
|
|
3891
|
-
"account":"accountname", (string) DEPRECATED. The account name associated with the transaction.
|
|
3763
|
+
"account":"accountname", (string) DEPRECATED. The account name associated with the transaction.
|
|
3892
3764
|
It will be "" for the default account.
|
|
3893
|
-
"address":"address", (string) The neurai address of the transaction. Not present for
|
|
3765
|
+
"address":"address", (string) The neurai address of the transaction. Not present for
|
|
3894
3766
|
move transactions (category = move).
|
|
3895
3767
|
"category":"send|receive|move", (string) The transaction category. 'move' is a local (off blockchain)
|
|
3896
3768
|
transaction between accounts, and not associated with an address,
|
|
3897
|
-
transaction id or block. 'send' and 'receive' transactions are
|
|
3769
|
+
transaction id or block. 'send' and 'receive' transactions are
|
|
3898
3770
|
associated with an address, transaction id and block details
|
|
3899
3771
|
"amount": x.xxx, (numeric) The amount in XNA. This is negative for the 'send' category, and for the
|
|
3900
3772
|
'move' category for moves outbound. It is positive for the 'receive' category,
|
|
3901
3773
|
and for the 'move' category for inbound funds.
|
|
3902
3774
|
"label": "label", (string) A comment for the address/transaction, if any
|
|
3903
3775
|
"vout": n, (numeric) the vout value
|
|
3904
|
-
"fee": x.xxx, (numeric) The amount of the fee in XNA. This is negative and only available for the
|
|
3776
|
+
"fee": x.xxx, (numeric) The amount of the fee in XNA. This is negative and only available for the
|
|
3905
3777
|
'send' category of transactions.
|
|
3906
|
-
"confirmations": n, (numeric) The number of confirmations for the transaction. Available for 'send' and
|
|
3778
|
+
"confirmations": n, (numeric) The number of confirmations for the transaction. Available for 'send' and
|
|
3907
3779
|
'receive' category of transactions. Negative confirmations indicate the
|
|
3908
3780
|
transaction conflicts with the block chain
|
|
3909
3781
|
"trusted": xxx, (bool) Whether we consider the outputs of this unconfirmed transaction safe to spend.
|
|
@@ -3914,15 +3786,15 @@ Result:
|
|
|
3914
3786
|
"blocktime": xxx, (numeric) The block time in seconds since epoch (1 Jan 1970 GMT).
|
|
3915
3787
|
"txid": "transactionid", (string) The transaction id. Available for 'send' and 'receive' category of transactions.
|
|
3916
3788
|
"time": xxx, (numeric) The transaction time in seconds since epoch (midnight Jan 1 1970 GMT).
|
|
3917
|
-
"timereceived": xxx, (numeric) The time received in seconds since epoch (midnight Jan 1 1970 GMT). Available
|
|
3789
|
+
"timereceived": xxx, (numeric) The time received in seconds since epoch (midnight Jan 1 1970 GMT). Available
|
|
3918
3790
|
for 'send' and 'receive' category of transactions.
|
|
3919
3791
|
"comment": "...", (string) If a comment is associated with the transaction.
|
|
3920
|
-
"otheraccount": "accountname", (string) DEPRECATED. For the 'move' category of transactions, the account the funds came
|
|
3792
|
+
"otheraccount": "accountname", (string) DEPRECATED. For the 'move' category of transactions, the account the funds came
|
|
3921
3793
|
from (for receiving funds, positive amounts), or went to (for sending funds,
|
|
3922
3794
|
negative amounts).
|
|
3923
3795
|
"bip125-replaceable": "yes|no|unknown", (string) Whether this transaction could be replaced due to BIP125 (replace-by-fee);
|
|
3924
3796
|
may be unknown for unconfirmed transactions not in the mempool
|
|
3925
|
-
"abandoned": xxx (bool) 'true' if the transaction has been abandoned (inputs are respendable). Only available for the
|
|
3797
|
+
"abandoned": xxx (bool) 'true' if the transaction has been abandoned (inputs are respendable). Only available for the
|
|
3926
3798
|
'send' category of transactions.
|
|
3927
3799
|
}
|
|
3928
3800
|
]
|
|
@@ -3930,16 +3802,16 @@ Result:
|
|
|
3930
3802
|
Examples:
|
|
3931
3803
|
|
|
3932
3804
|
List the most recent 10 transactions in the systems
|
|
3933
|
-
> neurai-cli listtransactions
|
|
3805
|
+
> neurai-cli listtransactions
|
|
3934
3806
|
|
|
3935
3807
|
List transactions 100 to 120
|
|
3936
3808
|
> neurai-cli listtransactions "*" 20 100
|
|
3937
3809
|
|
|
3938
3810
|
As a json rpc call
|
|
3939
3811
|
> 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:19001/
|
|
3940
|
-
|
|
3941
|
-
<br> <br/>
|
|
3942
|
-
## listunspent
|
|
3812
|
+
|
|
3813
|
+
<br> <br/>
|
|
3814
|
+
## listunspent
|
|
3943
3815
|
<br/> listunspent ( minconf maxconf ["addresses",...] [include_unsafe] [query_options])
|
|
3944
3816
|
|
|
3945
3817
|
Returns array of unspent transaction outputs
|
|
@@ -3967,7 +3839,7 @@ Arguments:
|
|
|
3967
3839
|
Result
|
|
3968
3840
|
[ (array of json object)
|
|
3969
3841
|
{
|
|
3970
|
-
"txid" : "txid", (string) the transaction id
|
|
3842
|
+
"txid" : "txid", (string) the transaction id
|
|
3971
3843
|
"vout" : n, (numeric) the vout value
|
|
3972
3844
|
"address" : "address", (string) the neurai address
|
|
3973
3845
|
"account" : "account", (string) DEPRECATED. The associated account, or "" for the default account
|
|
@@ -3985,14 +3857,14 @@ Result
|
|
|
3985
3857
|
]
|
|
3986
3858
|
|
|
3987
3859
|
Examples
|
|
3988
|
-
> neurai-cli listunspent
|
|
3860
|
+
> neurai-cli listunspent
|
|
3989
3861
|
> neurai-cli listunspent 6 9999999 "[\"1PGFqEzfmQch1gKD3ra4k18PNj3tTUUSqg\",\"1LtvqCaApEdUGFkpKMM4MstjcaL4dKg8SP\"]"
|
|
3990
3862
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listunspent", "params": [6, 9999999 "[\"1PGFqEzfmQch1gKD3ra4k18PNj3tTUUSqg\",\"1LtvqCaApEdUGFkpKMM4MstjcaL4dKg8SP\"]"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3991
3863
|
> neurai-cli listunspent 6 9999999 '[]' true '{ "minimumAmount": 0.005 }'
|
|
3992
3864
|
> 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:19001/
|
|
3993
|
-
|
|
3994
|
-
<br> <br/>
|
|
3995
|
-
## listwallets
|
|
3865
|
+
|
|
3866
|
+
<br> <br/>
|
|
3867
|
+
## listwallets
|
|
3996
3868
|
<br/> listwallets
|
|
3997
3869
|
Returns a list of currently loaded wallets.
|
|
3998
3870
|
For full information on the wallet, use "getwalletinfo"
|
|
@@ -4004,11 +3876,11 @@ Result:
|
|
|
4004
3876
|
]
|
|
4005
3877
|
|
|
4006
3878
|
Examples:
|
|
4007
|
-
> neurai-cli listwallets
|
|
3879
|
+
> neurai-cli listwallets
|
|
4008
3880
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listwallets", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4009
|
-
|
|
4010
|
-
<br> <br/>
|
|
4011
|
-
## lockunspent
|
|
3881
|
+
|
|
3882
|
+
<br> <br/>
|
|
3883
|
+
## lockunspent
|
|
4012
3884
|
<br/> lockunspent unlock ([{"txid":"txid","vout":n},...])
|
|
4013
3885
|
|
|
4014
3886
|
Updates list of temporarily unspendable outputs.
|
|
@@ -4036,22 +3908,22 @@ true|false (boolean) Whether the command was successful or not
|
|
|
4036
3908
|
Examples:
|
|
4037
3909
|
|
|
4038
3910
|
List the unspent transactions
|
|
4039
|
-
> neurai-cli listunspent
|
|
3911
|
+
> neurai-cli listunspent
|
|
4040
3912
|
|
|
4041
3913
|
Lock an unspent transaction
|
|
4042
3914
|
> neurai-cli lockunspent false "[{\"txid\":\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\",\"vout\":1}]"
|
|
4043
3915
|
|
|
4044
3916
|
List the locked transactions
|
|
4045
|
-
> neurai-cli listlockunspent
|
|
3917
|
+
> neurai-cli listlockunspent
|
|
4046
3918
|
|
|
4047
3919
|
Unlock the transaction again
|
|
4048
3920
|
> neurai-cli lockunspent true "[{\"txid\":\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\",\"vout\":1}]"
|
|
4049
3921
|
|
|
4050
3922
|
As a json rpc call
|
|
4051
3923
|
> 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:19001/
|
|
4052
|
-
|
|
4053
|
-
<br> <br/>
|
|
4054
|
-
## move
|
|
3924
|
+
|
|
3925
|
+
<br> <br/>
|
|
3926
|
+
## move
|
|
4055
3927
|
<br/> move "fromaccount" "toaccount" amount ( minconf "comment" )
|
|
4056
3928
|
|
|
4057
3929
|
DEPRECATED. Move a specified amount from one account in your wallet to another.
|
|
@@ -4076,9 +3948,9 @@ Move 0.01 XNA timotei to akiko with a comment and funds have 6 confirmations
|
|
|
4076
3948
|
|
|
4077
3949
|
As a json rpc call
|
|
4078
3950
|
> 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:19001/
|
|
4079
|
-
|
|
4080
|
-
<br> <br/>
|
|
4081
|
-
## ping
|
|
3951
|
+
|
|
3952
|
+
<br> <br/>
|
|
3953
|
+
## ping
|
|
4082
3954
|
<br/> ping
|
|
4083
3955
|
|
|
4084
3956
|
Requests that a ping be sent to all other nodes, to measure ping time.
|
|
@@ -4086,11 +3958,11 @@ Results provided in getpeerinfo, pingtime and pingwait fields are decimal second
|
|
|
4086
3958
|
Ping command is handled in queue with all other commands, so it measures processing backlog, not just network ping.
|
|
4087
3959
|
|
|
4088
3960
|
Examples:
|
|
4089
|
-
> neurai-cli ping
|
|
3961
|
+
> neurai-cli ping
|
|
4090
3962
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "ping", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4091
|
-
|
|
4092
|
-
<br> <br/>
|
|
4093
|
-
## pprpcsb
|
|
3963
|
+
|
|
3964
|
+
<br> <br/>
|
|
3965
|
+
## pprpcsb
|
|
4094
3966
|
<br/> pprpcsb "header_hash" "mix_hash" "nonce"
|
|
4095
3967
|
|
|
4096
3968
|
Attempts to submit new block to network mined by kawpow gpu miner via rpc.
|
|
@@ -4105,9 +3977,9 @@ Result:
|
|
|
4105
3977
|
Examples:
|
|
4106
3978
|
> neurai-cli pprpcsb "header_hash" "mix_hash" 100000
|
|
4107
3979
|
> 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:19001/
|
|
4108
|
-
|
|
4109
|
-
<br> <br/>
|
|
4110
|
-
## preciousblock
|
|
3980
|
+
|
|
3981
|
+
<br> <br/>
|
|
3982
|
+
## preciousblock
|
|
4111
3983
|
<br/> preciousblock "blockhash"
|
|
4112
3984
|
|
|
4113
3985
|
Treats a block as if it were received before others with the same work.
|
|
@@ -4124,9 +3996,9 @@ Result:
|
|
|
4124
3996
|
Examples:
|
|
4125
3997
|
> neurai-cli preciousblock "blockhash"
|
|
4126
3998
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "preciousblock", "params": ["blockhash"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4127
|
-
|
|
4128
|
-
<br> <br/>
|
|
4129
|
-
## prioritisetransaction
|
|
3999
|
+
|
|
4000
|
+
<br> <br/>
|
|
4001
|
+
## prioritisetransaction
|
|
4130
4002
|
<br/> prioritisetransaction <txid> <dummy value> <fee delta>
|
|
4131
4003
|
Accepts the transaction into mined blocks at a higher (or lower) priority
|
|
4132
4004
|
|
|
@@ -4144,9 +4016,9 @@ true (boolean) Returns true
|
|
|
4144
4016
|
Examples:
|
|
4145
4017
|
> neurai-cli prioritisetransaction "txid" 0.0 10000
|
|
4146
4018
|
> 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:19001/
|
|
4147
|
-
|
|
4148
|
-
<br> <br/>
|
|
4149
|
-
## pruneblockchain
|
|
4019
|
+
|
|
4020
|
+
<br> <br/>
|
|
4021
|
+
## pruneblockchain
|
|
4150
4022
|
<br/> pruneblockchain
|
|
4151
4023
|
|
|
4152
4024
|
Arguments:
|
|
@@ -4159,9 +4031,9 @@ n (numeric) Height of the last block pruned.
|
|
|
4159
4031
|
Examples:
|
|
4160
4032
|
> neurai-cli pruneblockchain 1000
|
|
4161
4033
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "pruneblockchain", "params": [1000] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4162
|
-
|
|
4163
|
-
<br> <br/>
|
|
4164
|
-
## purgesnapshot
|
|
4034
|
+
|
|
4035
|
+
<br> <br/>
|
|
4036
|
+
## purgesnapshot
|
|
4165
4037
|
<br/> purgesnapshot "asset_name" block_height
|
|
4166
4038
|
|
|
4167
4039
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
@@ -4182,10 +4054,10 @@ Result:
|
|
|
4182
4054
|
Examples:
|
|
4183
4055
|
> neurai-cli purgesnapshot "ASSET_NAME" 28546
|
|
4184
4056
|
> 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:19001/
|
|
4185
|
-
|
|
4186
|
-
<br> <br/>
|
|
4187
|
-
## reissue
|
|
4188
|
-
<br/> reissue "asset_name" qty "to_address" "change_address" ( reissuable ) ( new_units) "( new_ipfs )"
|
|
4057
|
+
|
|
4058
|
+
<br> <br/>
|
|
4059
|
+
## reissue
|
|
4060
|
+
<br/> reissue "asset_name" qty "to_address" "change_address" ( reissuable ) ( new_units) "( new_ipfs )"
|
|
4189
4061
|
|
|
4190
4062
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
4191
4063
|
https://github.com/NeuraiProject/rips/blob/master/rip-0002.mediawiki
|
|
@@ -4208,9 +4080,9 @@ Result:
|
|
|
4208
4080
|
Examples:
|
|
4209
4081
|
> neurai-cli reissue "ASSET_NAME" 20 "address"
|
|
4210
4082
|
> 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:19001/
|
|
4211
|
-
|
|
4212
|
-
<br> <br/>
|
|
4213
|
-
## reissuerestrictedasset
|
|
4083
|
+
|
|
4084
|
+
<br> <br/>
|
|
4085
|
+
## reissuerestrictedasset
|
|
4214
4086
|
<br/> reissuerestrictedasset "asset_name" qty to_address ( change_verifier ) ( "new_verifier" ) "( change_address )" ( new_units ) ( reissuable ) "( new_ipfs )"
|
|
4215
4087
|
|
|
4216
4088
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
@@ -4235,13 +4107,13 @@ Result:
|
|
|
4235
4107
|
|
|
4236
4108
|
Examples:
|
|
4237
4109
|
> neurai-cli reissuerestrictedasset "$ASSET_NAME" 1000 "myaddress" true "KYC & !AML"
|
|
4238
|
-
> neurai-cli reissuerestrictedasset "$ASSET_NAME" 1000 "myaddress" true "KYC & !AML"
|
|
4110
|
+
> neurai-cli reissuerestrictedasset "$ASSET_NAME" 1000 "myaddress" true "KYC & !AML"
|
|
4239
4111
|
> neurai-cli reissuerestrictedasset "$ASSET_NAME" 1000 "myaddress" true "KYC & !AML" "changeaddress"
|
|
4240
4112
|
> neurai-cli reissuerestrictedasset "$ASSET_NAME" 1000 "myaddress" true "KYC & !AML" "changeaddress" -1 true
|
|
4241
4113
|
> neurai-cli reissuerestrictedasset "$ASSET_NAME" 1000 "myaddress" false "" "changeaddress" -1 false QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E
|
|
4242
|
-
|
|
4243
|
-
<br> <br/>
|
|
4244
|
-
## removeprunedfunds
|
|
4114
|
+
|
|
4115
|
+
<br> <br/>
|
|
4116
|
+
## removeprunedfunds
|
|
4245
4117
|
<br/> removeprunedfunds "txid"
|
|
4246
4118
|
|
|
4247
4119
|
Deletes the specified transaction from the wallet. Meant for use with pruned wallets and as a companion to importprunedfunds. This will affect wallet balances.
|
|
@@ -4254,9 +4126,9 @@ Examples:
|
|
|
4254
4126
|
|
|
4255
4127
|
As a JSON-RPC call
|
|
4256
4128
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "removeprunedfunds", "params": ["a8d0c0184dde994a09ec054286f1ce581bebf46446a512166eae7628734ea0a5"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4257
|
-
|
|
4258
|
-
<br> <br/>
|
|
4259
|
-
## removetagfromaddress
|
|
4129
|
+
|
|
4130
|
+
<br> <br/>
|
|
4131
|
+
## removetagfromaddress
|
|
4260
4132
|
<br/> removetagfromaddress tag_name to_address (change_address) (asset_data)
|
|
4261
4133
|
|
|
4262
4134
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
@@ -4278,9 +4150,9 @@ Examples:
|
|
|
4278
4150
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "removetagfromaddress", "params": ["#TAG" "to_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4279
4151
|
> neurai-cli removetagfromaddress "#TAG" "to_address" "change_address"
|
|
4280
4152
|
> 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:19001/
|
|
4281
|
-
|
|
4282
|
-
<br> <br/>
|
|
4283
|
-
## requestsnapshot
|
|
4153
|
+
|
|
4154
|
+
<br> <br/>
|
|
4155
|
+
## requestsnapshot
|
|
4284
4156
|
<br/> requestsnapshot "asset_name" block_height
|
|
4285
4157
|
|
|
4286
4158
|
Schedules a snapshot of the specified asset at the specified block height.
|
|
@@ -4297,9 +4169,9 @@ Result:
|
|
|
4297
4169
|
Examples:
|
|
4298
4170
|
> neurai-cli requestsnapshot "TRONCO" 12345
|
|
4299
4171
|
> 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:19001/
|
|
4300
|
-
|
|
4301
|
-
<br> <br/>
|
|
4302
|
-
## rescanblockchain
|
|
4172
|
+
|
|
4173
|
+
<br> <br/>
|
|
4174
|
+
## rescanblockchain
|
|
4303
4175
|
<br/> rescanblockchain ("start_height") ("stop_height")
|
|
4304
4176
|
|
|
4305
4177
|
Rescan the local blockchain for wallet related transactions.
|
|
@@ -4317,19 +4189,19 @@ Result:
|
|
|
4317
4189
|
Examples:
|
|
4318
4190
|
> neurai-cli rescanblockchain 100000 120000
|
|
4319
4191
|
> 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:19001/
|
|
4320
|
-
|
|
4321
|
-
<br> <br/>
|
|
4322
|
-
## savemempool
|
|
4192
|
+
|
|
4193
|
+
<br> <br/>
|
|
4194
|
+
## savemempool
|
|
4323
4195
|
<br/> savemempool
|
|
4324
4196
|
|
|
4325
4197
|
Dumps the mempool to disk.
|
|
4326
4198
|
|
|
4327
4199
|
Examples:
|
|
4328
|
-
> neurai-cli savemempool
|
|
4200
|
+
> neurai-cli savemempool
|
|
4329
4201
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "savemempool", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4330
|
-
|
|
4331
|
-
<br> <br/>
|
|
4332
|
-
## selfrevokedepin
|
|
4202
|
+
|
|
4203
|
+
<br> <br/>
|
|
4204
|
+
## selfrevokedepin
|
|
4333
4205
|
<br/> selfrevokedepin "asset_name"
|
|
4334
4206
|
|
|
4335
4207
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
@@ -4362,9 +4234,9 @@ Result:
|
|
|
4362
4234
|
Examples:
|
|
4363
4235
|
> neurai-cli selfrevokedepin "&FRANCE"
|
|
4364
4236
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "selfrevokedepin", "params": ["&FRANCE"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4365
|
-
|
|
4366
|
-
<br> <br/>
|
|
4367
|
-
## sendfrom
|
|
4237
|
+
|
|
4238
|
+
<br> <br/>
|
|
4239
|
+
## sendfrom
|
|
4368
4240
|
<br/> sendfrom "fromaccount" "toaddress" amount ( minconf "comment" "comment_to" )
|
|
4369
4241
|
|
|
4370
4242
|
DEPRECATED (use sendtoaddress). Sent an amount from an account to a neurai address.
|
|
@@ -4377,10 +4249,10 @@ Arguments:
|
|
|
4377
4249
|
2. "toaddress" (string, required) The neurai address to send funds to.
|
|
4378
4250
|
3. amount (numeric or string, required) The amount in XNA (transaction fee is added on top).
|
|
4379
4251
|
4. minconf (numeric, optional, default=1) Only use funds with at least this many confirmations.
|
|
4380
|
-
5. "comment" (string, optional) A comment used to store what the transaction is for.
|
|
4252
|
+
5. "comment" (string, optional) A comment used to store what the transaction is for.
|
|
4381
4253
|
This is not part of the transaction, just kept in your wallet.
|
|
4382
|
-
6. "comment_to" (string, optional) An optional comment to store the name of the person or organization
|
|
4383
|
-
to which you're sending the transaction. This is not part of the transaction,
|
|
4254
|
+
6. "comment_to" (string, optional) An optional comment to store the name of the person or organization
|
|
4255
|
+
to which you're sending the transaction. This is not part of the transaction,
|
|
4384
4256
|
it is just kept in your wallet.
|
|
4385
4257
|
|
|
4386
4258
|
Result:
|
|
@@ -4396,9 +4268,9 @@ Send 0.01 from the tabby account to the given address, funds must have at least
|
|
|
4396
4268
|
|
|
4397
4269
|
As a json rpc call
|
|
4398
4270
|
> 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:19001/
|
|
4399
|
-
|
|
4400
|
-
<br> <br/>
|
|
4401
|
-
## sendfromaddress
|
|
4271
|
+
|
|
4272
|
+
<br> <br/>
|
|
4273
|
+
## sendfromaddress
|
|
4402
4274
|
<br/> sendfromaddress "from_address" "to_address" amount ( "comment" "comment_to" subtractfeefromamount replaceable conf_target "estimate_mode")
|
|
4403
4275
|
|
|
4404
4276
|
Send an amount from a specific address to a given address. All xna change will get sent back to the from_address
|
|
@@ -4407,10 +4279,10 @@ Arguments:
|
|
|
4407
4279
|
1. "from_address" (string, required) The neurai address to send from.
|
|
4408
4280
|
2. "to_address" (string, required) The neurai address to send to.
|
|
4409
4281
|
3. "amount" (numeric or string, required) The amount in XNA to send. eg 0.1
|
|
4410
|
-
4. "comment" (string, optional) A comment used to store what the transaction is for.
|
|
4282
|
+
4. "comment" (string, optional) A comment used to store what the transaction is for.
|
|
4411
4283
|
This is not part of the transaction, just kept in your wallet.
|
|
4412
|
-
5. "comment_to" (string, optional) A comment to store the name of the person or organization
|
|
4413
|
-
to which you're sending the transaction. This is not part of the
|
|
4284
|
+
5. "comment_to" (string, optional) A comment to store the name of the person or organization
|
|
4285
|
+
to which you're sending the transaction. This is not part of the
|
|
4414
4286
|
transaction, just kept in your wallet.
|
|
4415
4287
|
6. subtractfeefromamount (boolean, optional, default=false) The fee will be deducted from the amount being sent.
|
|
4416
4288
|
The recipient will receive less neurais than you enter in the amount field.
|
|
@@ -4428,9 +4300,9 @@ Examples:
|
|
|
4428
4300
|
> neurai-cli sendfromaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1 "donation" "seans outpost"
|
|
4429
4301
|
> neurai-cli sendfromaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1 "" "" true
|
|
4430
4302
|
> 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:19001/
|
|
4431
|
-
|
|
4432
|
-
<br> <br/>
|
|
4433
|
-
## sendmany
|
|
4303
|
+
|
|
4304
|
+
<br> <br/>
|
|
4305
|
+
## sendmany
|
|
4434
4306
|
<br/> sendmany "fromaccount" {"address":amount,...} ( minconf "comment" ["address",...] replaceable conf_target "estimate_mode")
|
|
4435
4307
|
|
|
4436
4308
|
Send multiple times. Amounts are double-precision floating point numbers.
|
|
@@ -4459,7 +4331,7 @@ Arguments:
|
|
|
4459
4331
|
"CONSERVATIVE"
|
|
4460
4332
|
|
|
4461
4333
|
Result:
|
|
4462
|
-
"txid" (string) The transaction id for the send. Only 1 transaction is created regardless of
|
|
4334
|
+
"txid" (string) The transaction id for the send. Only 1 transaction is created regardless of
|
|
4463
4335
|
the number of addresses.
|
|
4464
4336
|
|
|
4465
4337
|
Examples:
|
|
@@ -4475,9 +4347,9 @@ Send two amounts to two different addresses, subtract fee from amount:
|
|
|
4475
4347
|
|
|
4476
4348
|
As a json rpc call
|
|
4477
4349
|
> 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:19001/
|
|
4478
|
-
|
|
4479
|
-
<br> <br/>
|
|
4480
|
-
## sendmessage
|
|
4350
|
+
|
|
4351
|
+
<br> <br/>
|
|
4352
|
+
## sendmessage
|
|
4481
4353
|
<br/> sendmessage "channel_name" "ipfs_hash" (expire_time)
|
|
4482
4354
|
|
|
4483
4355
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
@@ -4496,9 +4368,9 @@ txid
|
|
|
4496
4368
|
Examples:
|
|
4497
4369
|
> neurai-cli sendmessage "ASSET_NAME!" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
4498
4370
|
> neurai-cli sendmessage "ASSET_NAME!" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
4499
|
-
|
|
4500
|
-
<br> <br/>
|
|
4501
|
-
## sendrawtransaction
|
|
4371
|
+
|
|
4372
|
+
<br> <br/>
|
|
4373
|
+
## sendrawtransaction
|
|
4502
4374
|
<br/> sendrawtransaction "hexstring" ( allowhighfees )
|
|
4503
4375
|
|
|
4504
4376
|
Submits raw transaction (serialized, hex-encoded) to local node and network.
|
|
@@ -4524,9 +4396,9 @@ Send the transaction (signed hex)
|
|
|
4524
4396
|
|
|
4525
4397
|
As a json rpc call
|
|
4526
4398
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendrawtransaction", "params": ["signedhex"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4527
|
-
|
|
4528
|
-
<br> <br/>
|
|
4529
|
-
## sendtoaddress
|
|
4399
|
+
|
|
4400
|
+
<br> <br/>
|
|
4401
|
+
## sendtoaddress
|
|
4530
4402
|
<br/> sendtoaddress "address" amount ( "comment" "comment_to" subtractfeefromamount replaceable conf_target "estimate_mode")
|
|
4531
4403
|
|
|
4532
4404
|
Send an amount to a given address.
|
|
@@ -4534,10 +4406,10 @@ Send an amount to a given address.
|
|
|
4534
4406
|
Arguments:
|
|
4535
4407
|
1. "address" (string, required) The neurai address to send to.
|
|
4536
4408
|
2. "amount" (numeric or string, required) The amount in XNA to send. eg 0.1
|
|
4537
|
-
3. "comment" (string, optional) A comment used to store what the transaction is for.
|
|
4409
|
+
3. "comment" (string, optional) A comment used to store what the transaction is for.
|
|
4538
4410
|
This is not part of the transaction, just kept in your wallet.
|
|
4539
|
-
4. "comment_to" (string, optional) A comment to store the name of the person or organization
|
|
4540
|
-
to which you're sending the transaction. This is not part of the
|
|
4411
|
+
4. "comment_to" (string, optional) A comment to store the name of the person or organization
|
|
4412
|
+
to which you're sending the transaction. This is not part of the
|
|
4541
4413
|
transaction, just kept in your wallet.
|
|
4542
4414
|
5. subtractfeefromamount (boolean, optional, default=false) The fee will be deducted from the amount being sent.
|
|
4543
4415
|
The recipient will receive less neurais than you enter in the amount field.
|
|
@@ -4555,9 +4427,9 @@ Examples:
|
|
|
4555
4427
|
> neurai-cli sendtoaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1 "donation" "seans outpost"
|
|
4556
4428
|
> neurai-cli sendtoaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1 "" "" true
|
|
4557
4429
|
> 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:19001/
|
|
4558
|
-
|
|
4559
|
-
<br> <br/>
|
|
4560
|
-
## setaccount
|
|
4430
|
+
|
|
4431
|
+
<br> <br/>
|
|
4432
|
+
## setaccount
|
|
4561
4433
|
<br/> setaccount "address" "account"
|
|
4562
4434
|
|
|
4563
4435
|
DEPRECATED. Sets the account associated with the given address.
|
|
@@ -4569,9 +4441,9 @@ Arguments:
|
|
|
4569
4441
|
Examples:
|
|
4570
4442
|
> neurai-cli setaccount "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX" "tabby"
|
|
4571
4443
|
> 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:19001/
|
|
4572
|
-
|
|
4573
|
-
<br> <br/>
|
|
4574
|
-
## setban
|
|
4444
|
+
|
|
4445
|
+
<br> <br/>
|
|
4446
|
+
## setban
|
|
4575
4447
|
<br/> setban "subnet" "add|remove" (bantime) (absolute)
|
|
4576
4448
|
|
|
4577
4449
|
Attempts to add or remove an IP/Subnet from the banned list.
|
|
@@ -4586,9 +4458,9 @@ Examples:
|
|
|
4586
4458
|
> neurai-cli setban "192.168.0.6" "add" 86400
|
|
4587
4459
|
> neurai-cli setban "192.168.0.0/24" "add"
|
|
4588
4460
|
> 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:19001/
|
|
4589
|
-
|
|
4590
|
-
<br> <br/>
|
|
4591
|
-
## setgenerate
|
|
4461
|
+
|
|
4462
|
+
<br> <br/>
|
|
4463
|
+
## setgenerate
|
|
4592
4464
|
<br/> setgenerate generate ( genproclimit )
|
|
4593
4465
|
|
|
4594
4466
|
Set 'generate' true or false to turn generation on or off.
|
|
@@ -4605,25 +4477,25 @@ Set the generation on with a limit of one processor
|
|
|
4605
4477
|
> neurai-cli setgenerate true 1
|
|
4606
4478
|
|
|
4607
4479
|
Check the setting
|
|
4608
|
-
> neurai-cli getgenerate
|
|
4480
|
+
> neurai-cli getgenerate
|
|
4609
4481
|
|
|
4610
4482
|
Turn off generation
|
|
4611
4483
|
> neurai-cli setgenerate false
|
|
4612
4484
|
|
|
4613
4485
|
Using json rpc
|
|
4614
4486
|
> 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:19001/
|
|
4615
|
-
|
|
4616
|
-
<br> <br/>
|
|
4617
|
-
## setnetworkactive
|
|
4487
|
+
|
|
4488
|
+
<br> <br/>
|
|
4489
|
+
## setnetworkactive
|
|
4618
4490
|
<br/> setnetworkactive true|false
|
|
4619
4491
|
|
|
4620
4492
|
Disable/enable all p2p network activity.
|
|
4621
4493
|
|
|
4622
4494
|
Arguments:
|
|
4623
4495
|
1. "state" (boolean, required) true to enable networking, false to disable
|
|
4624
|
-
|
|
4625
|
-
<br> <br/>
|
|
4626
|
-
## settxfee
|
|
4496
|
+
|
|
4497
|
+
<br> <br/>
|
|
4498
|
+
## settxfee
|
|
4627
4499
|
<br/> settxfee amount
|
|
4628
4500
|
|
|
4629
4501
|
Set the transaction fee per kB. Overwrites the paytxfee parameter.
|
|
@@ -4637,9 +4509,9 @@ true|false (boolean) Returns true if successful
|
|
|
4637
4509
|
Examples:
|
|
4638
4510
|
> neurai-cli settxfee 0.00001
|
|
4639
4511
|
> 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:19001/
|
|
4640
|
-
|
|
4641
|
-
<br> <br/>
|
|
4642
|
-
## signmessage
|
|
4512
|
+
|
|
4513
|
+
<br> <br/>
|
|
4514
|
+
## signmessage
|
|
4643
4515
|
<br/> signmessage "address" "message"
|
|
4644
4516
|
|
|
4645
4517
|
Sign a message with the private key of an address
|
|
@@ -4664,9 +4536,9 @@ Verify the signature
|
|
|
4664
4536
|
|
|
4665
4537
|
As json rpc
|
|
4666
4538
|
> 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:19001/
|
|
4667
|
-
|
|
4668
|
-
<br> <br/>
|
|
4669
|
-
## signmessagewithprivkey
|
|
4539
|
+
|
|
4540
|
+
<br> <br/>
|
|
4541
|
+
## signmessagewithprivkey
|
|
4670
4542
|
<br/> signmessagewithprivkey "privkey" "message"
|
|
4671
4543
|
|
|
4672
4544
|
Sign a message with the private key of an address
|
|
@@ -4688,9 +4560,9 @@ Verify the signature
|
|
|
4688
4560
|
|
|
4689
4561
|
As json rpc
|
|
4690
4562
|
> 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:19001/
|
|
4691
|
-
|
|
4692
|
-
<br> <br/>
|
|
4693
|
-
## signrawtransaction
|
|
4563
|
+
|
|
4564
|
+
<br> <br/>
|
|
4565
|
+
## signrawtransaction
|
|
4694
4566
|
<br/> signrawtransaction "hexstring" ( [{"txid":"id","vout":n,"scriptPubKey":"hex","redeemScript":"hex"},...] ["privatekey1",...] sighashtype )
|
|
4695
4567
|
|
|
4696
4568
|
Sign inputs for raw transaction (serialized, hex-encoded).
|
|
@@ -4745,15 +4617,15 @@ Result:
|
|
|
4745
4617
|
Examples:
|
|
4746
4618
|
> neurai-cli signrawtransaction "myhex"
|
|
4747
4619
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "signrawtransaction", "params": ["myhex"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4748
|
-
|
|
4749
|
-
<br> <br/>
|
|
4750
|
-
## stop
|
|
4620
|
+
|
|
4621
|
+
<br> <br/>
|
|
4622
|
+
## stop
|
|
4751
4623
|
<br/> stop
|
|
4752
4624
|
|
|
4753
4625
|
Stop Neurai server.
|
|
4754
|
-
|
|
4755
|
-
<br> <br/>
|
|
4756
|
-
## submitblock
|
|
4626
|
+
|
|
4627
|
+
<br> <br/>
|
|
4628
|
+
## submitblock
|
|
4757
4629
|
<br/> submitblock "hexdata" ( "dummy" )
|
|
4758
4630
|
|
|
4759
4631
|
Attempts to submit new block to network.
|
|
@@ -4768,10 +4640,10 @@ Result:
|
|
|
4768
4640
|
Examples:
|
|
4769
4641
|
> neurai-cli submitblock "mydata"
|
|
4770
4642
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "submitblock", "params": ["mydata"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4771
|
-
|
|
4772
|
-
<br> <br/>
|
|
4773
|
-
## subscribetochannel
|
|
4774
|
-
<br/> subscribetochannel
|
|
4643
|
+
|
|
4644
|
+
<br> <br/>
|
|
4645
|
+
## subscribetochannel
|
|
4646
|
+
<br/> subscribetochannel
|
|
4775
4647
|
|
|
4776
4648
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
4777
4649
|
https://github.com/NeuraiProject/rips/blob/master/rip-0005.mediawiki
|
|
@@ -4788,9 +4660,9 @@ Result:[
|
|
|
4788
4660
|
Examples:
|
|
4789
4661
|
> neurai-cli subscribetochannel "ASSET_NAME!"
|
|
4790
4662
|
> 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:19001/
|
|
4791
|
-
|
|
4792
|
-
<br> <br/>
|
|
4793
|
-
## testmempoolaccept
|
|
4663
|
+
|
|
4664
|
+
<br> <br/>
|
|
4665
|
+
## testmempoolaccept
|
|
4794
4666
|
<br/> testmempoolaccept ["rawtxs"] ( allowhighfees )
|
|
4795
4667
|
|
|
4796
4668
|
Returns if raw transaction (serialized, hex-encoded) would be accepted by mempool.
|
|
@@ -4826,9 +4698,9 @@ Test acceptance of the transaction (signed hex)
|
|
|
4826
4698
|
|
|
4827
4699
|
As a json rpc call
|
|
4828
4700
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "testmempoolaccept", "params": [["signedhex"]] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4829
|
-
|
|
4830
|
-
<br> <br/>
|
|
4831
|
-
## transfer
|
|
4701
|
+
|
|
4702
|
+
<br> <br/>
|
|
4703
|
+
## transfer
|
|
4832
4704
|
<br/> transfer "asset_name" qty "to_address" "message" expire_time "change_address" "asset_change_address"
|
|
4833
4705
|
|
|
4834
4706
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
@@ -4845,16 +4717,16 @@ Arguments:
|
|
|
4845
4717
|
7. "asset_change_address" (string, optional, default = "") the transactions Asset change will be sent to this address
|
|
4846
4718
|
|
|
4847
4719
|
Result:
|
|
4848
|
-
txid[
|
|
4720
|
+
txid[
|
|
4849
4721
|
txid
|
|
4850
4722
|
]
|
|
4851
4723
|
|
|
4852
4724
|
Examples:
|
|
4853
4725
|
> neurai-cli transfer "ASSET_NAME" 20 "address" "" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
4854
4726
|
> neurai-cli transfer "ASSET_NAME" 20 "address" "" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
4855
|
-
|
|
4856
|
-
<br> <br/>
|
|
4857
|
-
## transferfromaddress
|
|
4727
|
+
|
|
4728
|
+
<br> <br/>
|
|
4729
|
+
## transferfromaddress
|
|
4858
4730
|
<br/> transferfromaddress "asset_name" "from_address" qty "to_address" "message" expire_time "xna_change_address" "asset_change_address"
|
|
4859
4731
|
|
|
4860
4732
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
@@ -4872,16 +4744,16 @@ Arguments:
|
|
|
4872
4744
|
8. "asset_change_address" (string, optional, default = "") the transaction Asset change will be sent to this address
|
|
4873
4745
|
|
|
4874
4746
|
Result:
|
|
4875
|
-
txid[
|
|
4747
|
+
txid[
|
|
4876
4748
|
txid
|
|
4877
4749
|
]
|
|
4878
4750
|
|
|
4879
4751
|
Examples:
|
|
4880
4752
|
> neurai-cli transferfromaddress "ASSET_NAME" "fromaddress" 20 "address" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E", 156545652
|
|
4881
4753
|
> 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:19001/
|
|
4882
|
-
|
|
4883
|
-
<br> <br/>
|
|
4884
|
-
## transferfromaddresses
|
|
4754
|
+
|
|
4755
|
+
<br> <br/>
|
|
4756
|
+
## transferfromaddresses
|
|
4885
4757
|
<br/> transferfromaddresses "asset_name" ["from_addresses"] qty "to_address" "message" expire_time "xna_change_address" "asset_change_address"
|
|
4886
4758
|
|
|
4887
4759
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
@@ -4899,17 +4771,17 @@ Arguments:
|
|
|
4899
4771
|
8. "asset_change_address" (string, optional, default = "") the transactions Asset change will be sent to this address
|
|
4900
4772
|
|
|
4901
4773
|
Result:
|
|
4902
|
-
txid[
|
|
4774
|
+
txid[
|
|
4903
4775
|
txid
|
|
4904
4776
|
]
|
|
4905
4777
|
|
|
4906
4778
|
Examples:
|
|
4907
4779
|
> neurai-cli transferfromaddresses "ASSET_NAME" '["fromaddress1", "fromaddress2"]' 20 "to_address" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 154652365
|
|
4908
4780
|
> 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:19001/
|
|
4909
|
-
|
|
4910
|
-
<br> <br/>
|
|
4911
|
-
## transferqualifier
|
|
4912
|
-
<br/> transferqualifier "qualifier_name" qty "to_address" ("change_address") ("message") (expire_time)
|
|
4781
|
+
|
|
4782
|
+
<br> <br/>
|
|
4783
|
+
## transferqualifier
|
|
4784
|
+
<br/> transferqualifier "qualifier_name" qty "to_address" ("change_address") ("message") (expire_time)
|
|
4913
4785
|
|
|
4914
4786
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
4915
4787
|
|
|
@@ -4924,16 +4796,16 @@ Arguments:
|
|
|
4924
4796
|
6. "expire_time" (numeric, optional) UTC timestamp of when the message expires
|
|
4925
4797
|
|
|
4926
4798
|
Result:
|
|
4927
|
-
txid[
|
|
4799
|
+
txid[
|
|
4928
4800
|
txid
|
|
4929
4801
|
]
|
|
4930
4802
|
|
|
4931
4803
|
Examples:
|
|
4932
4804
|
> neurai-cli transferqualifier "#QUALIFIER" 20 "to_address" "" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
4933
4805
|
> neurai-cli transferqualifier "#QUALIFIER" 20 "to_address" "change_address" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
4934
|
-
|
|
4935
|
-
<br> <br/>
|
|
4936
|
-
## unfreezeaddress
|
|
4806
|
+
|
|
4807
|
+
<br> <br/>
|
|
4808
|
+
## unfreezeaddress
|
|
4937
4809
|
<br/> unfreezeaddress asset_name address (change_address) (asset_data)
|
|
4938
4810
|
|
|
4939
4811
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
@@ -4955,9 +4827,9 @@ Examples:
|
|
|
4955
4827
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "unfreezeaddress", "params": ["$RESTRICTED_ASSET" "address"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4956
4828
|
> neurai-cli unfreezeaddress "$RESTRICTED_ASSET" "address" "change_address"
|
|
4957
4829
|
> 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:19001/
|
|
4958
|
-
|
|
4959
|
-
<br> <br/>
|
|
4960
|
-
## unfreezedepin
|
|
4830
|
+
|
|
4831
|
+
<br> <br/>
|
|
4832
|
+
## unfreezedepin
|
|
4961
4833
|
<br/> unfreezedepin "asset_name" "address" ("change_address")
|
|
4962
4834
|
|
|
4963
4835
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
@@ -4980,9 +4852,9 @@ Result:
|
|
|
4980
4852
|
Examples:
|
|
4981
4853
|
> neurai-cli unfreezedepin "&FRANCE" "address"
|
|
4982
4854
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "unfreezedepin", "params": ["&FRANCE" "address"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4983
|
-
|
|
4984
|
-
<br> <br/>
|
|
4985
|
-
## unfreezerestrictedasset
|
|
4855
|
+
|
|
4856
|
+
<br> <br/>
|
|
4857
|
+
## unfreezerestrictedasset
|
|
4986
4858
|
<br/> unfreezerestrictedasset asset_name (change_address) (asset_data)
|
|
4987
4859
|
|
|
4988
4860
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
@@ -5003,10 +4875,10 @@ Examples:
|
|
|
5003
4875
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "unfreezerestrictedasset", "params": ["$RESTRICTED_ASSET"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
5004
4876
|
> neurai-cli unfreezerestrictedasset "$RESTRICTED_ASSET" "change_address"
|
|
5005
4877
|
> 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:19001/
|
|
5006
|
-
|
|
5007
|
-
<br> <br/>
|
|
5008
|
-
## unsubscribefromchannel
|
|
5009
|
-
<br/> unsubscribefromchannel
|
|
4878
|
+
|
|
4879
|
+
<br> <br/>
|
|
4880
|
+
## unsubscribefromchannel
|
|
4881
|
+
<br/> unsubscribefromchannel
|
|
5010
4882
|
|
|
5011
4883
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
5012
4884
|
https://github.com/NeuraiProject/rips/blob/master/rip-0005.mediawiki
|
|
@@ -5023,9 +4895,9 @@ Result:[
|
|
|
5023
4895
|
Examples:
|
|
5024
4896
|
> neurai-cli unsubscribefromchannel "ASSET_NAME!"
|
|
5025
4897
|
> 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:19001/
|
|
5026
|
-
|
|
5027
|
-
<br> <br/>
|
|
5028
|
-
## uptime
|
|
4898
|
+
|
|
4899
|
+
<br> <br/>
|
|
4900
|
+
## uptime
|
|
5029
4901
|
<br/> uptime
|
|
5030
4902
|
|
|
5031
4903
|
Returns the total uptime of the server.
|
|
@@ -5034,11 +4906,11 @@ Result:
|
|
|
5034
4906
|
ttt (numeric) The number of seconds that the server has been running
|
|
5035
4907
|
|
|
5036
4908
|
Examples:
|
|
5037
|
-
> neurai-cli uptime
|
|
4909
|
+
> neurai-cli uptime
|
|
5038
4910
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "uptime", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
5039
|
-
|
|
5040
|
-
<br> <br/>
|
|
5041
|
-
## validateaddress
|
|
4911
|
+
|
|
4912
|
+
<br> <br/>
|
|
4913
|
+
## validateaddress
|
|
5042
4914
|
<br/> validateaddress "address"
|
|
5043
4915
|
|
|
5044
4916
|
Return information about the given neurai address.
|
|
@@ -5077,9 +4949,9 @@ Result:
|
|
|
5077
4949
|
Examples:
|
|
5078
4950
|
> neurai-cli validateaddress "NLhdtwjgrcEkRqjJZkRY4sjhkJ93EytLeE"
|
|
5079
4951
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "validateaddress", "params": ["NLhdtwjgrcEkRqjJZkRY4sjhkJ93EytLeE"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
5080
|
-
|
|
5081
|
-
<br> <br/>
|
|
5082
|
-
## verifychain
|
|
4952
|
+
|
|
4953
|
+
<br> <br/>
|
|
4954
|
+
## verifychain
|
|
5083
4955
|
<br/> verifychain ( checklevel nblocks )
|
|
5084
4956
|
|
|
5085
4957
|
Verifies blockchain database.
|
|
@@ -5092,11 +4964,11 @@ Result:
|
|
|
5092
4964
|
true|false (boolean) Verified or not
|
|
5093
4965
|
|
|
5094
4966
|
Examples:
|
|
5095
|
-
> neurai-cli verifychain
|
|
4967
|
+
> neurai-cli verifychain
|
|
5096
4968
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "verifychain", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
5097
|
-
|
|
5098
|
-
<br> <br/>
|
|
5099
|
-
## verifymessage
|
|
4969
|
+
|
|
4970
|
+
<br> <br/>
|
|
4971
|
+
## verifymessage
|
|
5100
4972
|
<br/> verifymessage "address" "signature" "message"
|
|
5101
4973
|
|
|
5102
4974
|
Verify a signed message
|
|
@@ -5122,9 +4994,9 @@ Verify the signature
|
|
|
5122
4994
|
|
|
5123
4995
|
As json rpc
|
|
5124
4996
|
> 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:19001/
|
|
5125
|
-
|
|
5126
|
-
<br> <br/>
|
|
5127
|
-
## verifytxoutproof
|
|
4997
|
+
|
|
4998
|
+
<br> <br/>
|
|
4999
|
+
## verifytxoutproof
|
|
5128
5000
|
<br/> verifytxoutproof "proof"
|
|
5129
5001
|
|
|
5130
5002
|
Verifies that a proof points to a transaction in a block, returning the transaction it commits to
|
|
@@ -5135,10 +5007,10 @@ Arguments:
|
|
|
5135
5007
|
|
|
5136
5008
|
Result:
|
|
5137
5009
|
["txid"] (array, strings) The txid(s) which the proof commits to, or empty array if the proof is invalid
|
|
5138
|
-
|
|
5139
|
-
<br> <br/>
|
|
5140
|
-
## viewallmessagechannels
|
|
5141
|
-
<br/> viewallmessagechannels
|
|
5010
|
+
|
|
5011
|
+
<br> <br/>
|
|
5012
|
+
## viewallmessagechannels
|
|
5013
|
+
<br/> viewallmessagechannels
|
|
5142
5014
|
|
|
5143
5015
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
5144
5016
|
https://github.com/NeuraiProject/rips/blob/master/rip-0005.mediawiki
|
|
@@ -5151,12 +5023,12 @@ Result:[
|
|
|
5151
5023
|
]
|
|
5152
5024
|
|
|
5153
5025
|
Examples:
|
|
5154
|
-
> neurai-cli viewallmessagechannels
|
|
5026
|
+
> neurai-cli viewallmessagechannels
|
|
5155
5027
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewallmessagechannels", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
5156
|
-
|
|
5157
|
-
<br> <br/>
|
|
5158
|
-
## viewallmessages
|
|
5159
|
-
<br/> viewallmessages
|
|
5028
|
+
|
|
5029
|
+
<br> <br/>
|
|
5030
|
+
## viewallmessages
|
|
5031
|
+
<br/> viewallmessages
|
|
5160
5032
|
|
|
5161
5033
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
5162
5034
|
https://github.com/NeuraiProject/rips/blob/master/rip-0005.mediawiki
|
|
@@ -5173,12 +5045,12 @@ Result:
|
|
|
5173
5045
|
"Expire UTC Time:" (Date, optional) If the message contains an expire date that is too large, the UTC number will be displayed
|
|
5174
5046
|
|
|
5175
5047
|
Examples:
|
|
5176
|
-
> neurai-cli viewallmessages
|
|
5048
|
+
> neurai-cli viewallmessages
|
|
5177
5049
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewallmessages", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
5178
|
-
|
|
5179
|
-
<br> <br/>
|
|
5180
|
-
## viewmyrestrictedaddresses
|
|
5181
|
-
<br/> viewmyrestrictedaddresses
|
|
5050
|
+
|
|
5051
|
+
<br> <br/>
|
|
5052
|
+
## viewmyrestrictedaddresses
|
|
5053
|
+
<br/> viewmyrestrictedaddresses
|
|
5182
5054
|
|
|
5183
5055
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
5184
5056
|
https://github.com/NeuraiProject/rips/blob/master/rip-0005.mediawiki
|
|
@@ -5194,12 +5066,12 @@ Result:
|
|
|
5194
5066
|
}...
|
|
5195
5067
|
|
|
5196
5068
|
Examples:
|
|
5197
|
-
> neurai-cli viewmyrestrictedaddresses
|
|
5069
|
+
> neurai-cli viewmyrestrictedaddresses
|
|
5198
5070
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewmyrestrictedaddresses", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
5199
|
-
|
|
5200
|
-
<br> <br/>
|
|
5201
|
-
## viewmytaggedaddresses
|
|
5202
|
-
<br/> viewmytaggedaddresses
|
|
5071
|
+
|
|
5072
|
+
<br> <br/>
|
|
5073
|
+
## viewmytaggedaddresses
|
|
5074
|
+
<br/> viewmytaggedaddresses
|
|
5203
5075
|
|
|
5204
5076
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
5205
5077
|
https://github.com/NeuraiProject/rips/blob/master/rip-0005.mediawiki
|
|
@@ -5215,6 +5087,5 @@ Result:
|
|
|
5215
5087
|
}...
|
|
5216
5088
|
|
|
5217
5089
|
Examples:
|
|
5218
|
-
> neurai-cli viewmytaggedaddresses
|
|
5090
|
+
> neurai-cli viewmytaggedaddresses
|
|
5219
5091
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewmytaggedaddresses", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
5220
|
-
|