@neuraiproject/neurai-rpc 0.6.2 → 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 +17 -0
- package/DEPIN_EXAMPLES.md +45 -127
- package/DEPIN_IMPLEMENTATION_GUIDE_EN.md +19 -93
- package/README.md +29 -105
- package/depin.ts +144 -0
- package/dist/index.cjs +355 -331
- package/dist/index.d.cts +72 -4
- package/dist/index.d.ts +72 -4
- package/dist/index.mjs +346 -331
- package/docs.json +198 -198
- package/docs.ts +1342 -1504
- package/index.ts +54 -34
- package/json.ts +29 -0
- package/neurai_methods.md +743 -872
- package/package.json +4 -2
package/docs.ts
CHANGED
|
@@ -33,9 +33,9 @@ depinmcpstatus: string;
|
|
|
33
33
|
depinpoolpkey: string;
|
|
34
34
|
depinpoolstats: string;
|
|
35
35
|
depinreceivemsg: string;
|
|
36
|
+
depinreceiveseq: string;
|
|
36
37
|
depinsendmsg: string;
|
|
37
|
-
|
|
38
|
-
depinsignrequest: string;
|
|
38
|
+
depinsignrpc: string;
|
|
39
39
|
depinsubmitmsg: string;
|
|
40
40
|
disconnectnode: string;
|
|
41
41
|
distributereward: string;
|
|
@@ -200,12 +200,12 @@ viewmytaggedaddresses: string;
|
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
export const methods:IMethods ={
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
209
|
/** abandontransaction "txid"
|
|
210
210
|
|
|
211
211
|
Mark in-wallet transaction <txid> as abandoned
|
|
@@ -223,12 +223,12 @@ Examples:
|
|
|
223
223
|
> neurai-cli abandontransaction "1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"
|
|
224
224
|
> 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/
|
|
225
225
|
**/
|
|
226
|
-
abandontransaction:'abandontransaction',
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
226
|
+
abandontransaction:'abandontransaction',
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
232
|
/** abortrescan
|
|
233
233
|
|
|
234
234
|
Stops current wallet rescan triggered e.g. by an importprivkey call.
|
|
@@ -239,17 +239,17 @@ Import a private key
|
|
|
239
239
|
> neurai-cli importprivkey "mykey"
|
|
240
240
|
|
|
241
241
|
Abort the running wallet rescan
|
|
242
|
-
> neurai-cli abortrescan
|
|
242
|
+
> neurai-cli abortrescan
|
|
243
243
|
|
|
244
244
|
As a JSON-RPC call
|
|
245
245
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "abortrescan", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
246
246
|
**/
|
|
247
|
-
abortrescan:'abortrescan',
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
247
|
+
abortrescan:'abortrescan',
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
|
|
253
253
|
/** addmultisigaddress nrequired ["key",...] ( "account" )
|
|
254
254
|
|
|
255
255
|
Add a nrequired-to-sign multisignature address to the wallet.
|
|
@@ -276,12 +276,12 @@ Add a multisig address from 2 addresses
|
|
|
276
276
|
As json rpc call
|
|
277
277
|
> 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/
|
|
278
278
|
**/
|
|
279
|
-
addmultisigaddress:'addmultisigaddress',
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
279
|
+
addmultisigaddress:'addmultisigaddress',
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
285
|
/** addnode "node" "add|remove|onetry"
|
|
286
286
|
|
|
287
287
|
Attempts to add or remove a node from the addnode list.
|
|
@@ -297,12 +297,12 @@ Examples:
|
|
|
297
297
|
> neurai-cli addnode "192.168.0.6:19000" "onetry"
|
|
298
298
|
> 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/
|
|
299
299
|
**/
|
|
300
|
-
addnode:'addnode',
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
300
|
+
addnode:'addnode',
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
|
|
306
306
|
/** addtagtoaddress tag_name to_address (change_address) (asset_data)
|
|
307
307
|
|
|
308
308
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
@@ -325,12 +325,12 @@ Examples:
|
|
|
325
325
|
> neurai-cli addtagtoaddress "#TAG" "to_address" "change_address"
|
|
326
326
|
> 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/
|
|
327
327
|
**/
|
|
328
|
-
addtagtoaddress:'addtagtoaddress',
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
328
|
+
addtagtoaddress:'addtagtoaddress',
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
|
|
334
334
|
/** addwitnessaddress "address"
|
|
335
335
|
|
|
336
336
|
Add a witness address for a script (with pubkey or redeemscript known).
|
|
@@ -343,12 +343,12 @@ Result:
|
|
|
343
343
|
"witnessaddress", (string) The value of the new address (P2SH of witness script).
|
|
344
344
|
}
|
|
345
345
|
**/
|
|
346
|
-
addwitnessaddress:'addwitnessaddress',
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
346
|
+
addwitnessaddress:'addwitnessaddress',
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
|
|
352
352
|
/** backupwallet "destination"
|
|
353
353
|
|
|
354
354
|
Safely copies current wallet file to destination, which can be a directory or a path with filename.
|
|
@@ -360,20 +360,20 @@ Examples:
|
|
|
360
360
|
> neurai-cli backupwallet "backup.dat"
|
|
361
361
|
> 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/
|
|
362
362
|
**/
|
|
363
|
-
backupwallet:'backupwallet',
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
363
|
+
backupwallet:'backupwallet',
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
|
|
369
369
|
/** bumpfee has been deprecated on the XNA Wallet.
|
|
370
370
|
**/
|
|
371
|
-
bumpfee:'bumpfee',
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
371
|
+
bumpfee:'bumpfee',
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
|
|
377
377
|
/** cancelsnapshotrequest "asset_name" block_height
|
|
378
378
|
|
|
379
379
|
Cancels the specified snapshot request.
|
|
@@ -391,12 +391,12 @@ Examples:
|
|
|
391
391
|
> neurai-cli cancelsnapshotrequest "TRONCO" 12345
|
|
392
392
|
> 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/
|
|
393
393
|
**/
|
|
394
|
-
cancelsnapshotrequest:'cancelsnapshotrequest',
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
394
|
+
cancelsnapshotrequest:'cancelsnapshotrequest',
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
|
|
400
400
|
/** checkaddressrestriction address restricted_name
|
|
401
401
|
|
|
402
402
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
@@ -415,12 +415,12 @@ Examples:
|
|
|
415
415
|
> neurai-cli checkaddressrestriction "address" "restricted_name"
|
|
416
416
|
> 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/
|
|
417
417
|
**/
|
|
418
|
-
checkaddressrestriction:'checkaddressrestriction',
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
418
|
+
checkaddressrestriction:'checkaddressrestriction',
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
|
|
424
424
|
/** checkaddresstag address tag_name
|
|
425
425
|
|
|
426
426
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
@@ -439,12 +439,12 @@ Examples:
|
|
|
439
439
|
> neurai-cli checkaddresstag "address" "tag_name"
|
|
440
440
|
> 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/
|
|
441
441
|
**/
|
|
442
|
-
checkaddresstag:'checkaddresstag',
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
442
|
+
checkaddresstag:'checkaddresstag',
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
|
|
448
448
|
/** checkdepinvalidity "asset_name" "address"
|
|
449
449
|
|
|
450
450
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
@@ -468,12 +468,12 @@ Examples:
|
|
|
468
468
|
> neurai-cli checkdepinvalidity "&FRANCE" "address"
|
|
469
469
|
> 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/
|
|
470
470
|
**/
|
|
471
|
-
checkdepinvalidity:'checkdepinvalidity',
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
471
|
+
checkdepinvalidity:'checkdepinvalidity',
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
|
|
477
477
|
/** checkglobalrestriction restricted_name
|
|
478
478
|
|
|
479
479
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
@@ -491,41 +491,41 @@ Examples:
|
|
|
491
491
|
> neurai-cli checkglobalrestriction "restricted_name"
|
|
492
492
|
> 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/
|
|
493
493
|
**/
|
|
494
|
-
checkglobalrestriction:'checkglobalrestriction',
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
494
|
+
checkglobalrestriction:'checkglobalrestriction',
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
|
|
500
500
|
/** clearbanned
|
|
501
501
|
|
|
502
502
|
Clear all banned IPs.
|
|
503
503
|
|
|
504
504
|
Examples:
|
|
505
|
-
> neurai-cli clearbanned
|
|
505
|
+
> neurai-cli clearbanned
|
|
506
506
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearbanned", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
507
507
|
**/
|
|
508
|
-
clearbanned:'clearbanned',
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
508
|
+
clearbanned:'clearbanned',
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
|
|
514
514
|
/** clearmempool
|
|
515
515
|
|
|
516
516
|
Removes all transaction from the mempool
|
|
517
517
|
|
|
518
518
|
Examples:
|
|
519
|
-
> neurai-cli clearmempool
|
|
519
|
+
> neurai-cli clearmempool
|
|
520
520
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearmempool", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
521
521
|
**/
|
|
522
|
-
clearmempool:'clearmempool',
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
/** clearmessages
|
|
522
|
+
clearmempool:'clearmempool',
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
/** clearmessages
|
|
529
529
|
|
|
530
530
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
531
531
|
https://github.com/NeuraiProject/rips/blob/master/rip-0005.mediawiki
|
|
@@ -537,19 +537,19 @@ Result:[
|
|
|
537
537
|
]
|
|
538
538
|
|
|
539
539
|
Examples:
|
|
540
|
-
> neurai-cli clearmessages
|
|
540
|
+
> neurai-cli clearmessages
|
|
541
541
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearmessages", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
542
542
|
**/
|
|
543
|
-
clearmessages:'clearmessages',
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
543
|
+
clearmessages:'clearmessages',
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
|
|
549
549
|
/** combinerawtransaction ["hexstring",...]
|
|
550
550
|
|
|
551
551
|
Combine multiple partially signed transactions into one transaction.
|
|
552
|
-
The combined transaction may be another partially signed transaction or a
|
|
552
|
+
The combined transaction may be another partially signed transaction or a
|
|
553
553
|
fully signed transaction.
|
|
554
554
|
Arguments:
|
|
555
555
|
1. "txs" (string) A json array of hex strings of partially signed transactions
|
|
@@ -564,12 +564,12 @@ Result:
|
|
|
564
564
|
Examples:
|
|
565
565
|
> neurai-cli combinerawtransaction ["myhex1", "myhex2", "myhex3"]
|
|
566
566
|
**/
|
|
567
|
-
combinerawtransaction:'combinerawtransaction',
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
567
|
+
combinerawtransaction:'combinerawtransaction',
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
|
|
573
573
|
/** createmultisig nrequired ["key",...]
|
|
574
574
|
|
|
575
575
|
Creates a multi-signature address with n signature of m keys required.
|
|
@@ -597,12 +597,12 @@ Create a multisig address from 2 addresses
|
|
|
597
597
|
As a json rpc call
|
|
598
598
|
> 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/
|
|
599
599
|
**/
|
|
600
|
-
createmultisig:'createmultisig',
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
600
|
+
createmultisig:'createmultisig',
|
|
601
|
+
|
|
602
|
+
|
|
603
|
+
|
|
604
|
+
|
|
605
|
+
|
|
606
606
|
/** createrawtransaction [{"txid":"id","vout":n},...] {"address":(amount or object),"data":"hex",...}
|
|
607
607
|
createrawtransaction [{"txid":"id","vout":n},...] [{"address":(amount or object)},{"data":"hex"},...]
|
|
608
608
|
( locktime ) ( [{"txid":"id","vout":n},...] )
|
|
@@ -665,7 +665,7 @@ Arguments:
|
|
|
665
665
|
"txid":"id", (string, required) The transaction id
|
|
666
666
|
"vout":n, (number, required) The output number
|
|
667
667
|
"sequence":n (number, optional) The sequence number
|
|
668
|
-
}
|
|
668
|
+
}
|
|
669
669
|
,...
|
|
670
670
|
]
|
|
671
671
|
2. "outputs" (object or array, required) outputs in object or ordered-array form
|
|
@@ -709,10 +709,10 @@ Arguments:
|
|
|
709
709
|
{ (object) A json object describing new unique assets to issue
|
|
710
710
|
"issue_unique":
|
|
711
711
|
{
|
|
712
|
-
"root_name":"root-name", (string, required) name of the asset the unique asset(s)
|
|
712
|
+
"root_name":"root-name", (string, required) name of the asset the unique asset(s)
|
|
713
713
|
are being issued under
|
|
714
714
|
"asset_tags":["asset_tag", ...], (array, required) the unique tag for each asset which is to be issued
|
|
715
|
-
"ipfs_hashes":["hash", ...], (array, optional) ipfs hashes corresponding to each supplied tag
|
|
715
|
+
"ipfs_hashes":["hash", ...], (array, optional) ipfs hashes corresponding to each supplied tag
|
|
716
716
|
(should be same size as "asset_tags")
|
|
717
717
|
}
|
|
718
718
|
}
|
|
@@ -723,9 +723,9 @@ Arguments:
|
|
|
723
723
|
"asset_name":"asset-name", (string, required) name of asset to be reissued
|
|
724
724
|
"asset_quantity":n, (number, required) the number of raw units to issue
|
|
725
725
|
"reissuable":[0-1], (number, optional) default is 1, 1=reissuable asset
|
|
726
|
-
"ipfs_hash":"hash", (string, optional) An ipfs hash for discovering asset metadata,
|
|
726
|
+
"ipfs_hash":"hash", (string, optional) An ipfs hash for discovering asset metadata,
|
|
727
727
|
Overrides the current ipfs hash if given
|
|
728
|
-
"owner_change_address" (string, optional) the address where the owner token will be sent to.
|
|
728
|
+
"owner_change_address" (string, optional) the address where the owner token will be sent to.
|
|
729
729
|
If not given, it will be sent to the output address
|
|
730
730
|
}
|
|
731
731
|
}
|
|
@@ -735,13 +735,13 @@ Arguments:
|
|
|
735
735
|
{
|
|
736
736
|
"asset_name":"asset-name",(string, required) new asset name
|
|
737
737
|
"asset_quantity":n, (number, required) the number of raw units to issue
|
|
738
|
-
"verifier_string":"text", (string, required) the verifier string to be used for a restricted
|
|
738
|
+
"verifier_string":"text", (string, required) the verifier string to be used for a restricted
|
|
739
739
|
asset transfer verification
|
|
740
740
|
"units":[0-8], (number, required) display units, between 0 (integral) and 8 (max precision)
|
|
741
741
|
"reissuable":[0-1], (number, required) 1=reissuable asset
|
|
742
742
|
"has_ipfs":[0-1], (number, required) 1=passing ipfs_hash
|
|
743
743
|
"ipfs_hash":"hash", (string, optional) an ipfs hash for discovering asset metadata
|
|
744
|
-
"owner_change_address" (string, optional) the address where the owner token will be sent to.
|
|
744
|
+
"owner_change_address" (string, optional) the address where the owner token will be sent to.
|
|
745
745
|
If not given, it will be sent to the output address
|
|
746
746
|
}
|
|
747
747
|
}
|
|
@@ -752,11 +752,11 @@ Arguments:
|
|
|
752
752
|
"asset_name":"asset-name", (string, required) name of asset to be reissued
|
|
753
753
|
"asset_quantity":n, (number, required) the number of raw units to issue
|
|
754
754
|
"reissuable":[0-1], (number, optional) default is 1, 1=reissuable asset
|
|
755
|
-
"verifier_string":"text", (string, optional) the verifier string to be used for a restricted asset
|
|
755
|
+
"verifier_string":"text", (string, optional) the verifier string to be used for a restricted asset
|
|
756
756
|
transfer verification
|
|
757
|
-
"ipfs_hash":"hash", (string, optional) An ipfs hash for discovering asset metadata,
|
|
757
|
+
"ipfs_hash":"hash", (string, optional) An ipfs hash for discovering asset metadata,
|
|
758
758
|
Overrides the current ipfs hash if given
|
|
759
|
-
"owner_change_address" (string, optional) the address where the owner token will be sent to.
|
|
759
|
+
"owner_change_address" (string, optional) the address where the owner token will be sent to.
|
|
760
760
|
If not given, it will be sent to the output address
|
|
761
761
|
}
|
|
762
762
|
}
|
|
@@ -766,9 +766,9 @@ Arguments:
|
|
|
766
766
|
{
|
|
767
767
|
"asset_name":"asset_name", (string, required) a qualifier name (starts with '#')
|
|
768
768
|
"asset_quantity":n, (numeric, optional, default=1) the number of units to be issued (1 to 10)
|
|
769
|
-
"has_ipfs":[0-1], (boolean, optional, default=false), whether ifps hash is going
|
|
769
|
+
"has_ipfs":[0-1], (boolean, optional, default=false), whether ifps hash is going
|
|
770
770
|
to be added to the asset
|
|
771
|
-
"ipfs_hash":"hash", (string, optional but required if has_ipfs = 1), an ipfs hash or a
|
|
771
|
+
"ipfs_hash":"hash", (string, optional but required if has_ipfs = 1), an ipfs hash or a
|
|
772
772
|
txid hash once RIP5 is activated
|
|
773
773
|
"root_change_address" (string, optional) Only applies when issuing subqualifiers.
|
|
774
774
|
The address where the root qualifier will be sent.
|
|
@@ -867,12 +867,12 @@ Examples:
|
|
|
867
867
|
> neurai-cli createrawtransaction "[{\"txid\":\"mycoin\",\"vout\":0}]" "[{\"address\":500},{\"address\":{\"issue\":{\"asset_name\":\"MYASSET\",\"asset_quantity\":1000000,\"units\":1,\"reissuable\":0,\"has_ipfs\":0}}}]"
|
|
868
868
|
> 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/
|
|
869
869
|
**/
|
|
870
|
-
createrawtransaction:'createrawtransaction',
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
870
|
+
createrawtransaction:'createrawtransaction',
|
|
871
|
+
|
|
872
|
+
|
|
873
|
+
|
|
874
|
+
|
|
875
|
+
|
|
876
876
|
/** decodeblock "blockhex"
|
|
877
877
|
|
|
878
878
|
Arguments:
|
|
@@ -901,12 +901,12 @@ Examples:
|
|
|
901
901
|
> neurai-cli decodeblock "xxxx"
|
|
902
902
|
> 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/
|
|
903
903
|
**/
|
|
904
|
-
decodeblock:'decodeblock',
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
904
|
+
decodeblock:'decodeblock',
|
|
905
|
+
|
|
906
|
+
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
|
|
910
910
|
/** decoderawtransaction "hexstring"
|
|
911
911
|
|
|
912
912
|
Return a JSON object representing the serialized, hex-encoded transaction.
|
|
@@ -963,12 +963,12 @@ Examples:
|
|
|
963
963
|
> neurai-cli decoderawtransaction "hexstring"
|
|
964
964
|
> 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/
|
|
965
965
|
**/
|
|
966
|
-
decoderawtransaction:'decoderawtransaction',
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
966
|
+
decoderawtransaction:'decoderawtransaction',
|
|
967
|
+
|
|
968
|
+
|
|
969
|
+
|
|
970
|
+
|
|
971
|
+
|
|
972
972
|
/** decodescript "hexstring"
|
|
973
973
|
|
|
974
974
|
Decode a hex-encoded script.
|
|
@@ -1006,298 +1006,136 @@ Examples:
|
|
|
1006
1006
|
> neurai-cli decodescript "hexstring"
|
|
1007
1007
|
> 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/
|
|
1008
1008
|
**/
|
|
1009
|
-
decodescript:'decodescript',
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1009
|
+
decodescript:'decodescript',
|
|
1010
|
+
|
|
1011
|
+
/**
|
|
1012
|
+
* depinchallenge request
|
|
1013
|
+
*
|
|
1014
|
+
* DePIN RPC protocol 5. Exactly one request object, passed as [request] or {"request": request}. Legacy positional arguments and protocols 2/3/4 are rejected.
|
|
1015
|
+
* 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.
|
|
1016
|
+
*/
|
|
1017
|
+
depinchallenge:'depinchallenge',
|
|
1018
|
+
|
|
1019
|
+
/**
|
|
1020
|
+
* depinclearmsg request
|
|
1021
|
+
*
|
|
1022
|
+
* DePIN RPC protocol 5. Exactly one request object, passed as [request] or {"request": request}. Legacy positional arguments and protocols 2/3/4 are rejected.
|
|
1023
|
+
* 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.
|
|
1024
|
+
*/
|
|
1025
|
+
depinclearmsg:'depinclearmsg',
|
|
1026
|
+
|
|
1027
|
+
/**
|
|
1028
|
+
* depindecrypt "address" "encrypted"
|
|
1029
|
+
*
|
|
1030
|
+
* Decrypts an encrypted DePIN reply with a wallet key. Verify the reply's poolsig before using this method; depindecrypt does not verify it.
|
|
1031
|
+
*
|
|
1032
|
+
* Result:
|
|
1033
|
+
* The decrypted JSON value, or a string when the plaintext is not JSON.
|
|
1034
|
+
*/
|
|
1035
|
+
depindecrypt:'depindecrypt',
|
|
1036
|
+
|
|
1037
|
+
/**
|
|
1038
|
+
* depingetancestorrecipients request
|
|
1039
|
+
*
|
|
1040
|
+
* DePIN RPC protocol 5. Exactly one request object, passed as [request] or {"request": request}. Legacy positional arguments and protocols 2/3/4 are rejected.
|
|
1041
|
+
* 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.
|
|
1042
|
+
*/
|
|
1043
|
+
depingetancestorrecipients:'depingetancestorrecipients',
|
|
1044
|
+
|
|
1045
|
+
/**
|
|
1046
|
+
* depingetmsg "token" ( "fromaddress" )
|
|
1047
|
+
*
|
|
1048
|
+
* 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.
|
|
1049
|
+
*/
|
|
1050
|
+
depingetmsg:'depingetmsg',
|
|
1051
|
+
|
|
1052
|
+
/**
|
|
1053
|
+
* depingetmsginfo request
|
|
1054
|
+
*
|
|
1055
|
+
* DePIN RPC protocol 5. Exactly one request object, passed as [request] or {"request": request}. Legacy positional arguments and protocols 2/3/4 are rejected.
|
|
1056
|
+
* 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.
|
|
1057
|
+
*/
|
|
1058
|
+
depingetmsginfo:'depingetmsginfo',
|
|
1059
|
+
|
|
1060
|
+
/**
|
|
1061
|
+
* depinlistsections request
|
|
1062
|
+
*
|
|
1063
|
+
* DePIN RPC protocol 5. Exactly one request object, passed as [request] or {"request": request}. Legacy positional arguments and protocols 2/3/4 are rejected.
|
|
1064
|
+
* 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.
|
|
1065
|
+
*/
|
|
1066
|
+
depinlistsections:'depinlistsections',
|
|
1067
|
+
|
|
1068
|
+
/**
|
|
1069
|
+
* depinmcpstatus request
|
|
1070
|
+
*
|
|
1071
|
+
* DePIN RPC protocol 5. Exactly one request object, passed as [request] or {"request": request}. Legacy positional arguments and protocols 2/3/4 are rejected.
|
|
1072
|
+
* 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.
|
|
1073
|
+
*/
|
|
1074
|
+
depinmcpstatus:'depinmcpstatus',
|
|
1075
|
+
|
|
1076
|
+
/**
|
|
1077
|
+
* depinpoolpkey
|
|
1078
|
+
*
|
|
1079
|
+
* Wallet-only operator helper that derives the dedicated DePIN pool public key from the loaded service wallet.
|
|
1080
|
+
*
|
|
1081
|
+
* Result:
|
|
1082
|
+
* {
|
|
1083
|
+
* "pubkey": "hex",
|
|
1084
|
+
* "address": "address",
|
|
1085
|
+
* "path": "derivation_path"
|
|
1086
|
+
* }
|
|
1087
|
+
*/
|
|
1088
|
+
depinpoolpkey:'depinpoolpkey',
|
|
1089
|
+
|
|
1090
|
+
/**
|
|
1091
|
+
* depinpoolstats request
|
|
1092
|
+
*
|
|
1093
|
+
* DePIN RPC protocol 5. Exactly one request object, passed as [request] or {"request": request}. Legacy positional arguments and protocols 2/3/4 are rejected.
|
|
1094
|
+
* 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.
|
|
1095
|
+
*/
|
|
1096
|
+
depinpoolstats:'depinpoolstats',
|
|
1097
|
+
|
|
1098
|
+
/**
|
|
1099
|
+
* depinreceivemsg request
|
|
1100
|
+
*
|
|
1101
|
+
* DePIN RPC protocol 5. Exactly one request object, passed as [request] or {"request": request}. Legacy positional arguments and protocols 2/3/4 are rejected.
|
|
1102
|
+
* 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.
|
|
1103
|
+
*/
|
|
1104
|
+
depinreceivemsg:'depinreceivemsg',
|
|
1105
|
+
|
|
1106
|
+
/**
|
|
1107
|
+
* depinreceiveseq request
|
|
1108
|
+
*
|
|
1109
|
+
* DePIN RPC protocol 5. Exactly one request object, passed as [request] or {"request": request}. Legacy positional arguments and protocols 2/3/4 are rejected.
|
|
1110
|
+
* 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.
|
|
1111
|
+
*/
|
|
1112
|
+
depinreceiveseq:'depinreceiveseq',
|
|
1113
|
+
|
|
1114
|
+
/**
|
|
1115
|
+
* depinsendmsg "token" "message" "fromaddress"
|
|
1116
|
+
*
|
|
1117
|
+
* 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.
|
|
1118
|
+
*/
|
|
1119
|
+
depinsendmsg:'depinsendmsg',
|
|
1120
|
+
|
|
1121
|
+
/**
|
|
1122
|
+
* depinsignrpc "method" request
|
|
1123
|
+
* 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.
|
|
1124
|
+
*/
|
|
1125
|
+
depinsignrpc:'depinsignrpc',
|
|
1126
|
+
|
|
1127
|
+
/**
|
|
1128
|
+
* depinsubmitmsg request
|
|
1129
|
+
*
|
|
1130
|
+
* DePIN RPC protocol 5. Exactly one request object, passed as [request] or {"request": request}. Legacy positional arguments and protocols 2/3/4 are rejected.
|
|
1131
|
+
* 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.
|
|
1132
|
+
*/
|
|
1133
|
+
depinsubmitmsg:'depinsubmitmsg',
|
|
1032
1134
|
|
|
1033
|
-
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.
|
|
1034
1135
|
|
|
1035
|
-
Result:
|
|
1036
|
-
{
|
|
1037
|
-
"removed": n,
|
|
1038
|
-
"remaining": n
|
|
1039
|
-
}
|
|
1040
|
-
**/
|
|
1041
|
-
depinclearmsg:'depinclearmsg',
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
/** depindecrypt "address" "encrypted"
|
|
1048
|
-
|
|
1049
|
-
Decrypts an encrypted DePIN reply with a wallet key. Verify the reply's poolsig before using this method; depindecrypt does not verify it.
|
|
1050
|
-
|
|
1051
|
-
Result:
|
|
1052
|
-
The decrypted JSON value, or a string when the plaintext is not JSON.
|
|
1053
|
-
**/
|
|
1054
|
-
depindecrypt:'depindecrypt',
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
/** depingetancestorrecipients "token" ( max_results ) ( "stop_at" )
|
|
1061
|
-
|
|
1062
|
-
List the active holders of a DEPIN branch: the deduplicated union of the
|
|
1063
|
-
holders of the given token and of every one of its '/'-separated ancestors,
|
|
1064
|
-
each with the public key it has revealed on chain.
|
|
1065
|
-
|
|
1066
|
-
Active means: positive balance, public key revealed, and not blocked by an
|
|
1067
|
-
owner freeze or by self-revocation. Restriction is per (asset, address), so an
|
|
1068
|
-
address that is active in at least one ancestor is returned even if it revoked
|
|
1069
|
-
itself in another -- holding the root already grants visibility over the branch.
|
|
1070
|
-
|
|
1071
|
-
The query is exact: '&TEST' returns holders of '&TEST' only, never of
|
|
1072
|
-
'&TEST/APPLE', '&TESTING' or '&TEST.FOO'. Every derived ancestor must exist; a
|
|
1073
|
-
missing intermediate level is an error rather than something skipped.
|
|
1074
|
-
|
|
1075
|
-
This command is informational. It does not know about -depinmsgmaxusers, does
|
|
1076
|
-
not decide whether a message fits in a pool, and a truncated result must not be
|
|
1077
|
-
treated as a complete recipient set.
|
|
1078
|
-
|
|
1079
|
-
Requires -assetindex and -pubkeyindex.
|
|
1080
|
-
|
|
1081
|
-
Arguments:
|
|
1082
|
-
1. "token" (string, required) DEPIN token, e.g. "&TEST/APPLE/GOLDEN"
|
|
1083
|
-
2. max_results (numeric, optional, default=1000) Maximum recipients to return
|
|
1084
|
-
(1..10000)
|
|
1085
|
-
3. "stop_at" (string, optional) Stop deriving ancestors at this token,
|
|
1086
|
-
inclusive. Must be the token itself or one of its ancestors.
|
|
1087
|
-
Omitted: derive up to the absolute root.
|
|
1088
1136
|
|
|
1089
|
-
Result:
|
|
1090
|
-
{
|
|
1091
|
-
"token": "name", (string) Token queried
|
|
1092
|
-
"stop_at": "name", (string) Where derivation stopped ("" = root)
|
|
1093
|
-
"ancestors": ["name", ...], (array) Token first, then each ancestor
|
|
1094
|
-
"recipients": [ (array) Active holders, ordered by address
|
|
1095
|
-
{
|
|
1096
|
-
"address": "address", (string) Holder address
|
|
1097
|
-
"pubkey": "hex" (string) Public key revealed on chain
|
|
1098
|
-
}, ...
|
|
1099
|
-
],
|
|
1100
|
-
"returned": n, (numeric) Number of recipients returned
|
|
1101
|
-
"max_results": n, (numeric) Limit applied
|
|
1102
|
-
"truncated": true|false, (boolean) True if more eligible recipients exist
|
|
1103
|
-
"skipped_no_pubkey": n, (numeric) Addresses dropped for lacking a usable
|
|
1104
|
-
revealed public key
|
|
1105
|
-
"skipped_no_pubkey_complete": bool, (boolean) False when truncated: the count then
|
|
1106
|
-
covers only the addresses examined
|
|
1107
|
-
"skipped_restricted": n, (numeric) Addresses dropped as frozen or
|
|
1108
|
-
self-revoked in every ancestor they hold
|
|
1109
|
-
"skipped_restricted_complete": bool (boolean) Same rule as above
|
|
1110
|
-
}
|
|
1111
1137
|
|
|
1112
|
-
Examples:
|
|
1113
|
-
> neurai-cli depingetancestorrecipients "&TEST/APPLE/GOLDEN"
|
|
1114
|
-
> neurai-cli depingetancestorrecipients "&TEST/APPLE/GOLDEN" 50 "&TEST/APPLE"
|
|
1115
|
-
> 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/
|
|
1116
|
-
**/
|
|
1117
|
-
depingetancestorrecipients:'depingetancestorrecipients',
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
/** depingetmsg "token" ( "fromaddress" )
|
|
1124
1138
|
|
|
1125
|
-
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.
|
|
1126
|
-
**/
|
|
1127
|
-
depingetmsg:'depingetmsg',
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
/** depingetmsginfo
|
|
1134
|
-
|
|
1135
|
-
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.
|
|
1136
|
-
**/
|
|
1137
|
-
depingetmsginfo:'depingetmsginfo',
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
/** depinlistsections ( "address" "scope" "challenge" "signature" )
|
|
1144
|
-
|
|
1145
|
-
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.
|
|
1146
|
-
**/
|
|
1147
|
-
depinlistsections:'depinlistsections',
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
/** depinmcpstatus
|
|
1154
|
-
|
|
1155
|
-
Get status information about the DePIN MCP (AI) worker
|
|
1156
|
-
|
|
1157
|
-
Result:
|
|
1158
|
-
{
|
|
1159
|
-
"enabled": true|false, (boolean) Whether MCP worker is enabled
|
|
1160
|
-
"running": true|false, (boolean) Whether MCP worker is running
|
|
1161
|
-
"mcp_url": "url", (string) MCP server URL
|
|
1162
|
-
"model_name": "name", (string) Name of the loaded AI model
|
|
1163
|
-
"command_key": "key", (string) Command prefix (e.g. /ai)
|
|
1164
|
-
"depin_token": "token", (string) DePIN token being monitored
|
|
1165
|
-
"poll_interval": n, (numeric) Polling interval in seconds
|
|
1166
|
-
"commands_processed": n, (numeric) Total commands processed
|
|
1167
|
-
"total_errors": n, (numeric) Total errors encountered
|
|
1168
|
-
"rate_limited": n, (numeric) Commands rejected by rate limiting
|
|
1169
|
-
"concurrency": n, (numeric) Number of parallel task threads
|
|
1170
|
-
"tasks_in_flight": n, (numeric) AI requests currently being processed
|
|
1171
|
-
"processed_cache": n, (numeric) Size of the processed-message dedup cache
|
|
1172
|
-
"context_sessions": n, (numeric) Active conversation contexts
|
|
1173
|
-
"last_poll_time": n (numeric) Unix timestamp of last poll
|
|
1174
|
-
}
|
|
1175
|
-
|
|
1176
|
-
Examples:
|
|
1177
|
-
> neurai-cli depinmcpstatus
|
|
1178
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "depinmcpstatus", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1179
|
-
**/
|
|
1180
|
-
depinmcpstatus:'depinmcpstatus',
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
/** depinpoolpkey
|
|
1187
|
-
|
|
1188
|
-
Wallet-only operator helper that derives the dedicated DePIN pool public key from the loaded service wallet.
|
|
1189
|
-
|
|
1190
|
-
Result:
|
|
1191
|
-
{
|
|
1192
|
-
"pubkey": "hex",
|
|
1193
|
-
"address": "address",
|
|
1194
|
-
"path": "derivation_path"
|
|
1195
|
-
}
|
|
1196
|
-
**/
|
|
1197
|
-
depinpoolpkey:'depinpoolpkey',
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
/** depinpoolstats
|
|
1204
|
-
|
|
1205
|
-
Get statistical analysis of the DePIN message pool.
|
|
1206
|
-
|
|
1207
|
-
Result:
|
|
1208
|
-
{
|
|
1209
|
-
"enabled": true|false,
|
|
1210
|
-
"token": "string",
|
|
1211
|
-
"total_messages": n,
|
|
1212
|
-
"total_size_bytes": n,
|
|
1213
|
-
"memory_usage_bytes": n,
|
|
1214
|
-
"oldest_message": "YYYY-MM-DD HH:MM:SS",
|
|
1215
|
-
"newest_message": "YYYY-MM-DD HH:MM:SS",
|
|
1216
|
-
"messages_by_age": {
|
|
1217
|
-
"last_hour": n,
|
|
1218
|
-
"last_day": n,
|
|
1219
|
-
"last_week": n
|
|
1220
|
-
},
|
|
1221
|
-
"unique_senders": n,
|
|
1222
|
-
"unique_recipients": n,
|
|
1223
|
-
"avg_recipients_per_message": n.nn,
|
|
1224
|
-
"avg_message_size": n,
|
|
1225
|
-
"expiring_in_24h": n
|
|
1226
|
-
}
|
|
1227
|
-
|
|
1228
|
-
Examples:
|
|
1229
|
-
> neurai-cli depinpoolstats
|
|
1230
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "depinpoolstats", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1231
|
-
**/
|
|
1232
|
-
depinpoolstats:'depinpoolstats',
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
/** depinreceivemsg "token" "address" "challenge" "signature" ( timestamp "after_hash" limit )
|
|
1239
|
-
|
|
1240
|
-
Returns messages accessible to an address, encrypted for its revealed public key and signed by the pool key. Requires a receive challenge. Pagination uses timestamp, after_hash and limit. The decrypted reply includes next_challenge for subsequent calls.
|
|
1241
|
-
**/
|
|
1242
|
-
depinreceivemsg:'depinreceivemsg',
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
/** depinsendmsg "token" "message" "fromaddress"
|
|
1249
|
-
|
|
1250
|
-
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.
|
|
1251
|
-
**/
|
|
1252
|
-
depinsendmsg:'depinsendmsg',
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
/** depinsignchallenge "address" "token" "challenge" ( "type" )
|
|
1259
|
-
|
|
1260
|
-
Wallet helper that signs "DEPIN-GET|<token>|<address>|<challenge>" for receive access or "DEPIN-CLEAR|..." for admin access.
|
|
1261
|
-
|
|
1262
|
-
Result:
|
|
1263
|
-
{
|
|
1264
|
-
"signature": "base64",
|
|
1265
|
-
"preimage": "text"
|
|
1266
|
-
}
|
|
1267
|
-
**/
|
|
1268
|
-
depinsignchallenge:'depinsignchallenge',
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
/** depinsignrequest "address" "token" ( "type" )
|
|
1275
|
-
|
|
1276
|
-
Wallet helper that signs a depinchallenge request over the current Unix time in milliseconds.
|
|
1277
|
-
|
|
1278
|
-
Result:
|
|
1279
|
-
{
|
|
1280
|
-
"timestamp": n,
|
|
1281
|
-
"signature": "base64",
|
|
1282
|
-
"preimage": "DEPIN-REQ|..."
|
|
1283
|
-
}
|
|
1284
|
-
**/
|
|
1285
|
-
depinsignrequest:'depinsignrequest',
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
/** depinsubmitmsg {"sender":"...","encrypted":"..."}
|
|
1292
|
-
|
|
1293
|
-
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.
|
|
1294
|
-
**/
|
|
1295
|
-
depinsubmitmsg:'depinsubmitmsg',
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
1139
|
/** disconnectnode "[address]" [nodeid]
|
|
1302
1140
|
|
|
1303
1141
|
Immediately disconnects from the specified peer node.
|
|
@@ -1316,12 +1154,12 @@ Examples:
|
|
|
1316
1154
|
> 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/
|
|
1317
1155
|
> 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/
|
|
1318
1156
|
**/
|
|
1319
|
-
disconnectnode:'disconnectnode',
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1157
|
+
disconnectnode:'disconnectnode',
|
|
1158
|
+
|
|
1159
|
+
|
|
1160
|
+
|
|
1161
|
+
|
|
1162
|
+
|
|
1325
1163
|
/** distributereward "asset_name" snapshot_height "distribution_asset_name" gross_distribution_amount ( "exception_addresses" ) ("change_address") ("dry_run")
|
|
1326
1164
|
|
|
1327
1165
|
Splits the specified amount of the distribution asset to all owners of asset_name that are not in the optional exclusion_addresses
|
|
@@ -1358,12 +1196,12 @@ Examples:
|
|
|
1358
1196
|
> 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/
|
|
1359
1197
|
> 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/
|
|
1360
1198
|
**/
|
|
1361
|
-
distributereward:'distributereward',
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1199
|
+
distributereward:'distributereward',
|
|
1200
|
+
|
|
1201
|
+
|
|
1202
|
+
|
|
1203
|
+
|
|
1204
|
+
|
|
1367
1205
|
/** dumpextkeypq
|
|
1368
1206
|
|
|
1369
1207
|
Returns the master PQ extended private key (xpqpriv) for this wallet.
|
|
@@ -1373,15 +1211,15 @@ Result:
|
|
|
1373
1211
|
"xpqpriv..." (string) Base58Check-encoded master CExtKeyPQ
|
|
1374
1212
|
|
|
1375
1213
|
Examples:
|
|
1376
|
-
> neurai-cli dumpextkeypq
|
|
1214
|
+
> neurai-cli dumpextkeypq
|
|
1377
1215
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "dumpextkeypq", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1378
1216
|
**/
|
|
1379
|
-
dumpextkeypq:'dumpextkeypq',
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1217
|
+
dumpextkeypq:'dumpextkeypq',
|
|
1218
|
+
|
|
1219
|
+
|
|
1220
|
+
|
|
1221
|
+
|
|
1222
|
+
|
|
1385
1223
|
/** dumpprivkey "address"
|
|
1386
1224
|
|
|
1387
1225
|
Reveals the private key corresponding to 'address'.
|
|
@@ -1398,12 +1236,12 @@ Examples:
|
|
|
1398
1236
|
> neurai-cli importprivkey "mykey"
|
|
1399
1237
|
> 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/
|
|
1400
1238
|
**/
|
|
1401
|
-
dumpprivkey:'dumpprivkey',
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1239
|
+
dumpprivkey:'dumpprivkey',
|
|
1240
|
+
|
|
1241
|
+
|
|
1242
|
+
|
|
1243
|
+
|
|
1244
|
+
|
|
1407
1245
|
/** dumpwallet "filename"
|
|
1408
1246
|
|
|
1409
1247
|
Dumps all wallet keys in a human-readable format to a server-side file. This does not allow overwriting existing files.
|
|
@@ -1420,16 +1258,16 @@ Examples:
|
|
|
1420
1258
|
> neurai-cli dumpwallet "test"
|
|
1421
1259
|
> 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/
|
|
1422
1260
|
**/
|
|
1423
|
-
dumpwallet:'dumpwallet',
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1261
|
+
dumpwallet:'dumpwallet',
|
|
1262
|
+
|
|
1263
|
+
|
|
1264
|
+
|
|
1265
|
+
|
|
1266
|
+
|
|
1429
1267
|
/** encryptwallet "passphrase"
|
|
1430
1268
|
|
|
1431
1269
|
Encrypts the wallet with 'passphrase'. This is for first time encryption.
|
|
1432
|
-
After this, any calls that interact with private keys such as sending or signing
|
|
1270
|
+
After this, any calls that interact with private keys such as sending or signing
|
|
1433
1271
|
will require the passphrase to be set prior the making these calls.
|
|
1434
1272
|
Use the walletpassphrase call for this, and then walletlock call.
|
|
1435
1273
|
If the wallet is already encrypted, use the walletpassphrasechange call.
|
|
@@ -1450,17 +1288,17 @@ Now we can do something like sign
|
|
|
1450
1288
|
> neurai-cli signmessage "address" "test message"
|
|
1451
1289
|
|
|
1452
1290
|
Now lock the wallet again by removing the passphrase
|
|
1453
|
-
> neurai-cli walletlock
|
|
1291
|
+
> neurai-cli walletlock
|
|
1454
1292
|
|
|
1455
1293
|
As a json rpc call
|
|
1456
1294
|
> 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/
|
|
1457
1295
|
**/
|
|
1458
|
-
encryptwallet:'encryptwallet',
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1296
|
+
encryptwallet:'encryptwallet',
|
|
1297
|
+
|
|
1298
|
+
|
|
1299
|
+
|
|
1300
|
+
|
|
1301
|
+
|
|
1464
1302
|
/** estimatefee nblocks
|
|
1465
1303
|
|
|
1466
1304
|
DEPRECATED. Please use estimatesmartfee for more intelligent estimates.
|
|
@@ -1482,12 +1320,12 @@ a fee that is high enough to get reliably included in the next block.
|
|
|
1482
1320
|
Example:
|
|
1483
1321
|
> neurai-cli estimatefee 6
|
|
1484
1322
|
**/
|
|
1485
|
-
estimatefee:'estimatefee',
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1323
|
+
estimatefee:'estimatefee',
|
|
1324
|
+
|
|
1325
|
+
|
|
1326
|
+
|
|
1327
|
+
|
|
1328
|
+
|
|
1491
1329
|
/** estimatesmartfee conf_target ("estimate_mode")
|
|
1492
1330
|
|
|
1493
1331
|
Estimates the approximate fee per kilobyte needed for a transaction to begin
|
|
@@ -1522,12 +1360,12 @@ have been observed to make an estimate for any number of blocks.
|
|
|
1522
1360
|
Example:
|
|
1523
1361
|
> neurai-cli estimatesmartfee 6
|
|
1524
1362
|
**/
|
|
1525
|
-
estimatesmartfee:'estimatesmartfee',
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1363
|
+
estimatesmartfee:'estimatesmartfee',
|
|
1364
|
+
|
|
1365
|
+
|
|
1366
|
+
|
|
1367
|
+
|
|
1368
|
+
|
|
1531
1369
|
/** exportxpqpub count ( chain offset )
|
|
1532
1370
|
|
|
1533
1371
|
Generates a batch of count ML-DSA-44 public keys and returns the xpqpub blob.
|
|
@@ -1544,12 +1382,12 @@ Examples:
|
|
|
1544
1382
|
> neurai-cli exportxpqpub 20
|
|
1545
1383
|
> 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/
|
|
1546
1384
|
**/
|
|
1547
|
-
exportxpqpub:'exportxpqpub',
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1385
|
+
exportxpqpub:'exportxpqpub',
|
|
1386
|
+
|
|
1387
|
+
|
|
1388
|
+
|
|
1389
|
+
|
|
1390
|
+
|
|
1553
1391
|
/** freezeaddress asset_name address (change_address) (asset_data)
|
|
1554
1392
|
|
|
1555
1393
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
@@ -1572,12 +1410,12 @@ Examples:
|
|
|
1572
1410
|
> neurai-cli freezeaddress "$RESTRICTED_ASSET" "address" "change_address"
|
|
1573
1411
|
> 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/
|
|
1574
1412
|
**/
|
|
1575
|
-
freezeaddress:'freezeaddress',
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1413
|
+
freezeaddress:'freezeaddress',
|
|
1414
|
+
|
|
1415
|
+
|
|
1416
|
+
|
|
1417
|
+
|
|
1418
|
+
|
|
1581
1419
|
/** freezedepin "asset_name" "address" ("change_address")
|
|
1582
1420
|
|
|
1583
1421
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
@@ -1601,12 +1439,12 @@ Examples:
|
|
|
1601
1439
|
> neurai-cli freezedepin "&FRANCE" "address"
|
|
1602
1440
|
> 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/
|
|
1603
1441
|
**/
|
|
1604
|
-
freezedepin:'freezedepin',
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1442
|
+
freezedepin:'freezedepin',
|
|
1443
|
+
|
|
1444
|
+
|
|
1445
|
+
|
|
1446
|
+
|
|
1447
|
+
|
|
1610
1448
|
/** freezerestrictedasset asset_name (change_address) (asset_data)
|
|
1611
1449
|
|
|
1612
1450
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
@@ -1628,12 +1466,12 @@ Examples:
|
|
|
1628
1466
|
> neurai-cli freezerestrictedasset "$RESTRICTED_ASSET" "change_address"
|
|
1629
1467
|
> 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/
|
|
1630
1468
|
**/
|
|
1631
|
-
freezerestrictedasset:'freezerestrictedasset',
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1469
|
+
freezerestrictedasset:'freezerestrictedasset',
|
|
1470
|
+
|
|
1471
|
+
|
|
1472
|
+
|
|
1473
|
+
|
|
1474
|
+
|
|
1637
1475
|
/** fundrawtransaction "hexstring" ( options )
|
|
1638
1476
|
|
|
1639
1477
|
Add inputs to a transaction until it has enough in value to meet its out value.
|
|
@@ -1692,12 +1530,12 @@ Sign the transaction
|
|
|
1692
1530
|
Send the transaction
|
|
1693
1531
|
> neurai-cli sendrawtransaction "signedtransactionhex"
|
|
1694
1532
|
**/
|
|
1695
|
-
fundrawtransaction:'fundrawtransaction',
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1533
|
+
fundrawtransaction:'fundrawtransaction',
|
|
1534
|
+
|
|
1535
|
+
|
|
1536
|
+
|
|
1537
|
+
|
|
1538
|
+
|
|
1701
1539
|
/** generate nblocks ( maxtries )
|
|
1702
1540
|
|
|
1703
1541
|
Mine up to nblocks blocks immediately (before the RPC call returns) to an address in the wallet.
|
|
@@ -1714,12 +1552,12 @@ Examples:
|
|
|
1714
1552
|
Generate 11 blocks
|
|
1715
1553
|
> neurai-cli generate 11
|
|
1716
1554
|
**/
|
|
1717
|
-
generate:'generate',
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1555
|
+
generate:'generate',
|
|
1556
|
+
|
|
1557
|
+
|
|
1558
|
+
|
|
1559
|
+
|
|
1560
|
+
|
|
1723
1561
|
/** generatetoaddress nblocks address (maxtries)
|
|
1724
1562
|
|
|
1725
1563
|
Mine blocks immediately to a specified address (before the RPC call returns)
|
|
@@ -1737,12 +1575,12 @@ Examples:
|
|
|
1737
1575
|
Generate 11 blocks to myaddress
|
|
1738
1576
|
> neurai-cli generatetoaddress 11 "myaddress"
|
|
1739
1577
|
**/
|
|
1740
|
-
generatetoaddress:'generatetoaddress',
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1578
|
+
generatetoaddress:'generatetoaddress',
|
|
1579
|
+
|
|
1580
|
+
|
|
1581
|
+
|
|
1582
|
+
|
|
1583
|
+
|
|
1746
1584
|
/** getaccount "address"
|
|
1747
1585
|
|
|
1748
1586
|
DEPRECATED. Returns the account associated with the given address.
|
|
@@ -1757,12 +1595,12 @@ Examples:
|
|
|
1757
1595
|
> neurai-cli getaccount "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX"
|
|
1758
1596
|
> 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/
|
|
1759
1597
|
**/
|
|
1760
|
-
getaccount:'getaccount',
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1598
|
+
getaccount:'getaccount',
|
|
1599
|
+
|
|
1600
|
+
|
|
1601
|
+
|
|
1602
|
+
|
|
1603
|
+
|
|
1766
1604
|
/** getaccountaddress "account"
|
|
1767
1605
|
|
|
1768
1606
|
DEPRECATED. Returns the current Neurai address for receiving payments to this account.
|
|
@@ -1774,17 +1612,17 @@ Result:
|
|
|
1774
1612
|
"address" (string) The account neurai address
|
|
1775
1613
|
|
|
1776
1614
|
Examples:
|
|
1777
|
-
> neurai-cli getaccountaddress
|
|
1615
|
+
> neurai-cli getaccountaddress
|
|
1778
1616
|
> neurai-cli getaccountaddress ""
|
|
1779
1617
|
> neurai-cli getaccountaddress "myaccount"
|
|
1780
1618
|
> 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/
|
|
1781
1619
|
**/
|
|
1782
|
-
getaccountaddress:'getaccountaddress',
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1620
|
+
getaccountaddress:'getaccountaddress',
|
|
1621
|
+
|
|
1622
|
+
|
|
1623
|
+
|
|
1624
|
+
|
|
1625
|
+
|
|
1788
1626
|
/** getaddednodeinfo ( "node" )
|
|
1789
1627
|
|
|
1790
1628
|
Returns information about the given added node, or all added nodes
|
|
@@ -1812,12 +1650,12 @@ Examples:
|
|
|
1812
1650
|
> neurai-cli getaddednodeinfo "192.168.0.201"
|
|
1813
1651
|
> 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/
|
|
1814
1652
|
**/
|
|
1815
|
-
getaddednodeinfo:'getaddednodeinfo',
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1653
|
+
getaddednodeinfo:'getaddednodeinfo',
|
|
1654
|
+
|
|
1655
|
+
|
|
1656
|
+
|
|
1657
|
+
|
|
1658
|
+
|
|
1821
1659
|
/** getaddressbalance
|
|
1822
1660
|
|
|
1823
1661
|
Returns the balance for an address(es) (requires addressindex to be enabled).
|
|
@@ -1853,12 +1691,12 @@ Examples:
|
|
|
1853
1691
|
> 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/
|
|
1854
1692
|
> 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/
|
|
1855
1693
|
**/
|
|
1856
|
-
getaddressbalance:'getaddressbalance',
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1694
|
+
getaddressbalance:'getaddressbalance',
|
|
1695
|
+
|
|
1696
|
+
|
|
1697
|
+
|
|
1698
|
+
|
|
1699
|
+
|
|
1862
1700
|
/** getaddressdeltas
|
|
1863
1701
|
|
|
1864
1702
|
Returns all changes for an address (requires addressindex to be enabled).
|
|
@@ -1894,12 +1732,12 @@ Examples:
|
|
|
1894
1732
|
> neurai-cli getaddressdeltas '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"],"assetName":"MY_ASSET"}'
|
|
1895
1733
|
> 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/
|
|
1896
1734
|
**/
|
|
1897
|
-
getaddressdeltas:'getaddressdeltas',
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1735
|
+
getaddressdeltas:'getaddressdeltas',
|
|
1736
|
+
|
|
1737
|
+
|
|
1738
|
+
|
|
1739
|
+
|
|
1740
|
+
|
|
1903
1741
|
/** getaddressesbyaccount "account"
|
|
1904
1742
|
|
|
1905
1743
|
DEPRECATED. Returns the list of addresses for the given account.
|
|
@@ -1917,12 +1755,12 @@ Examples:
|
|
|
1917
1755
|
> neurai-cli getaddressesbyaccount "tabby"
|
|
1918
1756
|
> 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/
|
|
1919
1757
|
**/
|
|
1920
|
-
getaddressesbyaccount:'getaddressesbyaccount',
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1758
|
+
getaddressesbyaccount:'getaddressesbyaccount',
|
|
1759
|
+
|
|
1760
|
+
|
|
1761
|
+
|
|
1762
|
+
|
|
1763
|
+
|
|
1926
1764
|
/** getaddressmempool
|
|
1927
1765
|
|
|
1928
1766
|
Returns all mempool deltas for an address (requires addressindex to be enabled).
|
|
@@ -1957,12 +1795,12 @@ Examples:
|
|
|
1957
1795
|
> neurai-cli getaddressmempool '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}', true
|
|
1958
1796
|
> 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/
|
|
1959
1797
|
**/
|
|
1960
|
-
getaddressmempool:'getaddressmempool',
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1798
|
+
getaddressmempool:'getaddressmempool',
|
|
1799
|
+
|
|
1800
|
+
|
|
1801
|
+
|
|
1802
|
+
|
|
1803
|
+
|
|
1966
1804
|
/** getaddresstxids
|
|
1967
1805
|
|
|
1968
1806
|
Returns the txids for an address(es) (requires addressindex to be enabled).
|
|
@@ -1991,12 +1829,12 @@ Examples:
|
|
|
1991
1829
|
> neurai-cli getaddresstxids '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}', true
|
|
1992
1830
|
> 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/
|
|
1993
1831
|
**/
|
|
1994
|
-
getaddresstxids:'getaddresstxids',
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
1832
|
+
getaddresstxids:'getaddresstxids',
|
|
1833
|
+
|
|
1834
|
+
|
|
1835
|
+
|
|
1836
|
+
|
|
1837
|
+
|
|
2000
1838
|
/** getaddressutxos
|
|
2001
1839
|
|
|
2002
1840
|
Returns all unspent outputs for an address (requires addressindex to be enabled).
|
|
@@ -2031,12 +1869,12 @@ Examples:
|
|
|
2031
1869
|
> neurai-cli getaddressutxos '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"],"assetName":"MY_ASSET"}'
|
|
2032
1870
|
> 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/
|
|
2033
1871
|
**/
|
|
2034
|
-
getaddressutxos:'getaddressutxos',
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
1872
|
+
getaddressutxos:'getaddressutxos',
|
|
1873
|
+
|
|
1874
|
+
|
|
1875
|
+
|
|
1876
|
+
|
|
1877
|
+
|
|
2040
1878
|
/** getassetdata "asset_name"
|
|
2041
1879
|
|
|
2042
1880
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
@@ -2063,12 +1901,12 @@ Examples:
|
|
|
2063
1901
|
> neurai-cli getassetdata "ASSET_NAME"
|
|
2064
1902
|
> 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/
|
|
2065
1903
|
**/
|
|
2066
|
-
getassetdata:'getassetdata',
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
1904
|
+
getassetdata:'getassetdata',
|
|
1905
|
+
|
|
1906
|
+
|
|
1907
|
+
|
|
1908
|
+
|
|
1909
|
+
|
|
2072
1910
|
/** getbalance ( "account" minconf include_watchonly )
|
|
2073
1911
|
|
|
2074
1912
|
If account is not specified, returns the server's total available balance.
|
|
@@ -2098,7 +1936,7 @@ amount (numeric) The total amount in XNA received for this account.
|
|
|
2098
1936
|
Examples:
|
|
2099
1937
|
|
|
2100
1938
|
The total amount in the wallet with 1 or more confirmations
|
|
2101
|
-
> neurai-cli getbalance
|
|
1939
|
+
> neurai-cli getbalance
|
|
2102
1940
|
|
|
2103
1941
|
The total amount in the wallet at least 6 blocks confirmed
|
|
2104
1942
|
> neurai-cli getbalance "*" 6
|
|
@@ -2106,12 +1944,12 @@ The total amount in the wallet at least 6 blocks confirmed
|
|
|
2106
1944
|
As a json rpc call
|
|
2107
1945
|
> 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/
|
|
2108
1946
|
**/
|
|
2109
|
-
getbalance:'getbalance',
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
1947
|
+
getbalance:'getbalance',
|
|
1948
|
+
|
|
1949
|
+
|
|
1950
|
+
|
|
1951
|
+
|
|
1952
|
+
|
|
2115
1953
|
/** getbestblockhash
|
|
2116
1954
|
|
|
2117
1955
|
Returns the hash of the best (tip) block in the longest blockchain.
|
|
@@ -2120,20 +1958,20 @@ Result:
|
|
|
2120
1958
|
"hex" (string) the block hash hex encoded
|
|
2121
1959
|
|
|
2122
1960
|
Examples:
|
|
2123
|
-
> neurai-cli getbestblockhash
|
|
1961
|
+
> neurai-cli getbestblockhash
|
|
2124
1962
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getbestblockhash", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2125
1963
|
**/
|
|
2126
|
-
getbestblockhash:'getbestblockhash',
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
/** getblock "blockhash" ( verbosity )
|
|
1964
|
+
getbestblockhash:'getbestblockhash',
|
|
1965
|
+
|
|
1966
|
+
|
|
1967
|
+
|
|
1968
|
+
|
|
1969
|
+
|
|
1970
|
+
/** getblock "blockhash" ( verbosity )
|
|
2133
1971
|
|
|
2134
1972
|
If verbosity is 0, returns a string that is serialized, hex-encoded data for block 'hash'.
|
|
2135
1973
|
If verbosity is 1, returns an Object with information about block <hash>.
|
|
2136
|
-
If verbosity is 2, returns an Object with information about block <hash> and information about each transaction.
|
|
1974
|
+
If verbosity is 2, returns an Object with information about block <hash> and information about each transaction.
|
|
2137
1975
|
|
|
2138
1976
|
Arguments:
|
|
2139
1977
|
1. "blockhash" (string, required) The block hash
|
|
@@ -2180,12 +2018,12 @@ Examples:
|
|
|
2180
2018
|
> neurai-cli getblock "00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"
|
|
2181
2019
|
> 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/
|
|
2182
2020
|
**/
|
|
2183
|
-
getblock:'getblock',
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2021
|
+
getblock:'getblock',
|
|
2022
|
+
|
|
2023
|
+
|
|
2024
|
+
|
|
2025
|
+
|
|
2026
|
+
|
|
2189
2027
|
/** getblockchaininfo
|
|
2190
2028
|
Returns an object containing various state info regarding blockchain processing.
|
|
2191
2029
|
|
|
@@ -2221,11 +2059,11 @@ Result:
|
|
|
2221
2059
|
"timeout": xx, (numeric) the median time past of a block at which the deployment is considered failed if not yet locked in
|
|
2222
2060
|
"since": xx, (numeric) height of the first block to which the status applies
|
|
2223
2061
|
"statistics": { (object) numeric statistics about BIP9 signalling for a softfork (only for "started" status)
|
|
2224
|
-
"period": xx, (numeric) the length in blocks of the BIP9 signalling period
|
|
2225
|
-
"threshold": xx, (numeric) the number of blocks with the version bit set required to activate the feature
|
|
2226
|
-
"elapsed": xx, (numeric) the number of blocks elapsed since the beginning of the current period
|
|
2227
|
-
"count": xx, (numeric) the number of blocks with the version bit set in the current period
|
|
2228
|
-
"possible": xx (boolean) returns false if there are not enough blocks left in this period to pass activation threshold
|
|
2062
|
+
"period": xx, (numeric) the length in blocks of the BIP9 signalling period
|
|
2063
|
+
"threshold": xx, (numeric) the number of blocks with the version bit set required to activate the feature
|
|
2064
|
+
"elapsed": xx, (numeric) the number of blocks elapsed since the beginning of the current period
|
|
2065
|
+
"count": xx, (numeric) the number of blocks with the version bit set in the current period
|
|
2066
|
+
"possible": xx (boolean) returns false if there are not enough blocks left in this period to pass activation threshold
|
|
2229
2067
|
}
|
|
2230
2068
|
}
|
|
2231
2069
|
}
|
|
@@ -2233,15 +2071,15 @@ Result:
|
|
|
2233
2071
|
}
|
|
2234
2072
|
|
|
2235
2073
|
Examples:
|
|
2236
|
-
> neurai-cli getblockchaininfo
|
|
2074
|
+
> neurai-cli getblockchaininfo
|
|
2237
2075
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockchaininfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2238
2076
|
**/
|
|
2239
|
-
getblockchaininfo:'getblockchaininfo',
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2077
|
+
getblockchaininfo:'getblockchaininfo',
|
|
2078
|
+
|
|
2079
|
+
|
|
2080
|
+
|
|
2081
|
+
|
|
2082
|
+
|
|
2245
2083
|
/** getblockcount
|
|
2246
2084
|
|
|
2247
2085
|
Returns the number of blocks in the longest blockchain.
|
|
@@ -2250,15 +2088,15 @@ Result:
|
|
|
2250
2088
|
n (numeric) The current block count
|
|
2251
2089
|
|
|
2252
2090
|
Examples:
|
|
2253
|
-
> neurai-cli getblockcount
|
|
2091
|
+
> neurai-cli getblockcount
|
|
2254
2092
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockcount", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2255
2093
|
**/
|
|
2256
|
-
getblockcount:'getblockcount',
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2094
|
+
getblockcount:'getblockcount',
|
|
2095
|
+
|
|
2096
|
+
|
|
2097
|
+
|
|
2098
|
+
|
|
2099
|
+
|
|
2262
2100
|
/** getblockhash height
|
|
2263
2101
|
|
|
2264
2102
|
Returns hash of block in best-block-chain at height provided.
|
|
@@ -2273,12 +2111,12 @@ Examples:
|
|
|
2273
2111
|
> neurai-cli getblockhash 1000
|
|
2274
2112
|
> 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/
|
|
2275
2113
|
**/
|
|
2276
|
-
getblockhash:'getblockhash',
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2114
|
+
getblockhash:'getblockhash',
|
|
2115
|
+
|
|
2116
|
+
|
|
2117
|
+
|
|
2118
|
+
|
|
2119
|
+
|
|
2282
2120
|
/** getblockhashes timestamp
|
|
2283
2121
|
|
|
2284
2122
|
Returns array of hashes of blocks within the timestamp range provided.
|
|
@@ -2308,12 +2146,12 @@ Examples:
|
|
|
2308
2146
|
> 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/
|
|
2309
2147
|
> neurai-cli getblockhashes 1231614698 1231024505 '{"noOrphans":false, "logicalTimes":true}'
|
|
2310
2148
|
**/
|
|
2311
|
-
getblockhashes:'getblockhashes',
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2149
|
+
getblockhashes:'getblockhashes',
|
|
2150
|
+
|
|
2151
|
+
|
|
2152
|
+
|
|
2153
|
+
|
|
2154
|
+
|
|
2317
2155
|
/** getblockheader "hash" ( verbose )
|
|
2318
2156
|
|
|
2319
2157
|
If verbose is false, returns a string that is serialized, hex-encoded data for blockheader 'hash'.
|
|
@@ -2348,12 +2186,12 @@ Examples:
|
|
|
2348
2186
|
> neurai-cli getblockheader "00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"
|
|
2349
2187
|
> 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/
|
|
2350
2188
|
**/
|
|
2351
|
-
getblockheader:'getblockheader',
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2189
|
+
getblockheader:'getblockheader',
|
|
2190
|
+
|
|
2191
|
+
|
|
2192
|
+
|
|
2193
|
+
|
|
2194
|
+
|
|
2357
2195
|
/** getblocktemplate ( TemplateRequest )
|
|
2358
2196
|
|
|
2359
2197
|
If the request parameters include a 'mode' key, that is used to explicitly select between the default 'template' request or a 'proposal'.
|
|
@@ -2394,7 +2232,7 @@ Result:
|
|
|
2394
2232
|
"data" : "xxxx", (string) transaction data encoded in hexadecimal (byte-for-byte)
|
|
2395
2233
|
"txid" : "xxxx", (string) transaction id encoded in little-endian hexadecimal
|
|
2396
2234
|
"hash" : "xxxx", (string) hash encoded in little-endian hexadecimal (including witness data)
|
|
2397
|
-
"depends" : [ (array) array of numbers
|
|
2235
|
+
"depends" : [ (array) array of numbers
|
|
2398
2236
|
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
|
|
2399
2237
|
,...
|
|
2400
2238
|
],
|
|
@@ -2412,7 +2250,7 @@ Result:
|
|
|
2412
2250
|
"coinbasetxn" : { ... }, (json object) information for coinbase transaction
|
|
2413
2251
|
"target" : "xxxx", (string) The hash target
|
|
2414
2252
|
"mintime" : xxx, (numeric) The minimum timestamp appropriate for next block time in seconds since epoch (Jan 1 1970 GMT)
|
|
2415
|
-
"mutable" : [ (array of string) list of ways the block template may be changed
|
|
2253
|
+
"mutable" : [ (array of string) list of ways the block template may be changed
|
|
2416
2254
|
"value" (string) A way the block template may be changed, e.g. 'time', 'transactions', 'prevblock'
|
|
2417
2255
|
,...
|
|
2418
2256
|
],
|
|
@@ -2426,16 +2264,16 @@ Result:
|
|
|
2426
2264
|
}
|
|
2427
2265
|
|
|
2428
2266
|
Examples:
|
|
2429
|
-
> neurai-cli getblocktemplate
|
|
2267
|
+
> neurai-cli getblocktemplate
|
|
2430
2268
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblocktemplate", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2431
2269
|
**/
|
|
2432
|
-
getblocktemplate:'getblocktemplate',
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
/** getcacheinfo
|
|
2270
|
+
getblocktemplate:'getblocktemplate',
|
|
2271
|
+
|
|
2272
|
+
|
|
2273
|
+
|
|
2274
|
+
|
|
2275
|
+
|
|
2276
|
+
/** getcacheinfo
|
|
2439
2277
|
|
|
2440
2278
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
2441
2279
|
https://github.com/NeuraiProject/rips/blob/master/rip-0002.mediawiki
|
|
@@ -2455,14 +2293,14 @@ Result:
|
|
|
2455
2293
|
|
|
2456
2294
|
Examples:
|
|
2457
2295
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getcacheinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2458
|
-
> neurai-cli getcacheinfo
|
|
2459
|
-
**/
|
|
2460
|
-
getcacheinfo:'getcacheinfo',
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2296
|
+
> neurai-cli getcacheinfo
|
|
2297
|
+
**/
|
|
2298
|
+
getcacheinfo:'getcacheinfo',
|
|
2299
|
+
|
|
2300
|
+
|
|
2301
|
+
|
|
2302
|
+
|
|
2303
|
+
|
|
2466
2304
|
/** getchaintips
|
|
2467
2305
|
Return information about all known tips in the block tree, including the main chain as well as orphaned branches.
|
|
2468
2306
|
|
|
@@ -2489,15 +2327,15 @@ Possible values for status:
|
|
|
2489
2327
|
5. "active" This is the tip of the active main chain, which is certainly valid
|
|
2490
2328
|
|
|
2491
2329
|
Examples:
|
|
2492
|
-
> neurai-cli getchaintips
|
|
2330
|
+
> neurai-cli getchaintips
|
|
2493
2331
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getchaintips", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2494
2332
|
**/
|
|
2495
|
-
getchaintips:'getchaintips',
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2333
|
+
getchaintips:'getchaintips',
|
|
2334
|
+
|
|
2335
|
+
|
|
2336
|
+
|
|
2337
|
+
|
|
2338
|
+
|
|
2501
2339
|
/** getchaintxstats ( nblocks blockhash )
|
|
2502
2340
|
|
|
2503
2341
|
Compute statistics about the total number and rate of transactions in the chain.
|
|
@@ -2517,15 +2355,15 @@ Result:
|
|
|
2517
2355
|
}
|
|
2518
2356
|
|
|
2519
2357
|
Examples:
|
|
2520
|
-
> neurai-cli getchaintxstats
|
|
2358
|
+
> neurai-cli getchaintxstats
|
|
2521
2359
|
> 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/
|
|
2522
2360
|
**/
|
|
2523
|
-
getchaintxstats:'getchaintxstats',
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2361
|
+
getchaintxstats:'getchaintxstats',
|
|
2362
|
+
|
|
2363
|
+
|
|
2364
|
+
|
|
2365
|
+
|
|
2366
|
+
|
|
2529
2367
|
/** getconnectioncount
|
|
2530
2368
|
|
|
2531
2369
|
Returns the number of connections to other nodes.
|
|
@@ -2534,15 +2372,15 @@ Result:
|
|
|
2534
2372
|
n (numeric) The connection count
|
|
2535
2373
|
|
|
2536
2374
|
Examples:
|
|
2537
|
-
> neurai-cli getconnectioncount
|
|
2375
|
+
> neurai-cli getconnectioncount
|
|
2538
2376
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getconnectioncount", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2539
2377
|
**/
|
|
2540
|
-
getconnectioncount:'getconnectioncount',
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2378
|
+
getconnectioncount:'getconnectioncount',
|
|
2379
|
+
|
|
2380
|
+
|
|
2381
|
+
|
|
2382
|
+
|
|
2383
|
+
|
|
2546
2384
|
/** getdifficulty
|
|
2547
2385
|
|
|
2548
2386
|
Returns the proof-of-work difficulty as a multiple of the minimum difficulty.
|
|
@@ -2551,15 +2389,15 @@ Result:
|
|
|
2551
2389
|
n.nnn (numeric) the proof-of-work difficulty as a multiple of the minimum difficulty.
|
|
2552
2390
|
|
|
2553
2391
|
Examples:
|
|
2554
|
-
> neurai-cli getdifficulty
|
|
2392
|
+
> neurai-cli getdifficulty
|
|
2555
2393
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getdifficulty", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2556
2394
|
**/
|
|
2557
|
-
getdifficulty:'getdifficulty',
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2395
|
+
getdifficulty:'getdifficulty',
|
|
2396
|
+
|
|
2397
|
+
|
|
2398
|
+
|
|
2399
|
+
|
|
2400
|
+
|
|
2563
2401
|
/** getdistributestatus "asset_name" snapshot_height "distribution_asset_name" gross_distribution_amount ( "exception_addresses" )
|
|
2564
2402
|
|
|
2565
2403
|
Give information about the status of the distribution
|
|
@@ -2577,12 +2415,12 @@ Examples:
|
|
|
2577
2415
|
> 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/
|
|
2578
2416
|
> 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/
|
|
2579
2417
|
**/
|
|
2580
|
-
getdistributestatus:'getdistributestatus',
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2418
|
+
getdistributestatus:'getdistributestatus',
|
|
2419
|
+
|
|
2420
|
+
|
|
2421
|
+
|
|
2422
|
+
|
|
2423
|
+
|
|
2586
2424
|
/** getgenerate
|
|
2587
2425
|
|
|
2588
2426
|
Return if the server is set to generate coins or not. The default is false.
|
|
@@ -2593,15 +2431,15 @@ Result
|
|
|
2593
2431
|
true|false (boolean) If the server is set to generate coins or not
|
|
2594
2432
|
|
|
2595
2433
|
Examples:
|
|
2596
|
-
> neurai-cli getgenerate
|
|
2434
|
+
> neurai-cli getgenerate
|
|
2597
2435
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getgenerate", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2598
2436
|
**/
|
|
2599
|
-
getgenerate:'getgenerate',
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2437
|
+
getgenerate:'getgenerate',
|
|
2438
|
+
|
|
2439
|
+
|
|
2440
|
+
|
|
2441
|
+
|
|
2442
|
+
|
|
2605
2443
|
/** getibdstatus
|
|
2606
2444
|
|
|
2607
2445
|
Returns header synchronization timing collected since process start.
|
|
@@ -2622,12 +2460,12 @@ Examples:
|
|
|
2622
2460
|
> neurai-cli getibdstatus
|
|
2623
2461
|
> curl --user myusername --data-binary '{"jsonrpc":"2.0","id":1,"method":"getibdstatus","params":[]}' -H 'content-type: application/json' http://127.0.0.1:19001/
|
|
2624
2462
|
**/
|
|
2625
|
-
getibdstatus:'getibdstatus',
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2463
|
+
getibdstatus:'getibdstatus',
|
|
2464
|
+
|
|
2465
|
+
|
|
2466
|
+
|
|
2467
|
+
|
|
2468
|
+
|
|
2631
2469
|
/** getinfo
|
|
2632
2470
|
|
|
2633
2471
|
DEPRECATED. Returns an object containing various state info.
|
|
@@ -2654,15 +2492,15 @@ Result:
|
|
|
2654
2492
|
}
|
|
2655
2493
|
|
|
2656
2494
|
Examples:
|
|
2657
|
-
> neurai-cli getinfo
|
|
2495
|
+
> neurai-cli getinfo
|
|
2658
2496
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2659
2497
|
**/
|
|
2660
|
-
getinfo:'getinfo',
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2498
|
+
getinfo:'getinfo',
|
|
2499
|
+
|
|
2500
|
+
|
|
2501
|
+
|
|
2502
|
+
|
|
2503
|
+
|
|
2666
2504
|
/** getkawpowhash "header_hash" "mix_hash" nonce, height, "target"
|
|
2667
2505
|
|
|
2668
2506
|
Get the kawpow hash for a block given its block data
|
|
@@ -2680,12 +2518,12 @@ Examples:
|
|
|
2680
2518
|
> neurai-cli getkawpowhash "header_hash" "mix_hash" "0x100000" 2456
|
|
2681
2519
|
> 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/
|
|
2682
2520
|
**/
|
|
2683
|
-
getkawpowhash:'getkawpowhash',
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2521
|
+
getkawpowhash:'getkawpowhash',
|
|
2522
|
+
|
|
2523
|
+
|
|
2524
|
+
|
|
2525
|
+
|
|
2526
|
+
|
|
2689
2527
|
/** getmasterkeyinfo
|
|
2690
2528
|
|
|
2691
2529
|
Fetches and displays the master private key and the master public key.
|
|
@@ -2702,15 +2540,15 @@ Result:
|
|
|
2702
2540
|
}
|
|
2703
2541
|
|
|
2704
2542
|
Examples:
|
|
2705
|
-
> neurai-cli getmasterkeyinfo
|
|
2543
|
+
> neurai-cli getmasterkeyinfo
|
|
2706
2544
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmasterkeyinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2707
2545
|
**/
|
|
2708
|
-
getmasterkeyinfo:'getmasterkeyinfo',
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2546
|
+
getmasterkeyinfo:'getmasterkeyinfo',
|
|
2547
|
+
|
|
2548
|
+
|
|
2549
|
+
|
|
2550
|
+
|
|
2551
|
+
|
|
2714
2552
|
/** getmemoryinfo ("mode")
|
|
2715
2553
|
Returns an object containing information about memory usage.
|
|
2716
2554
|
Arguments:
|
|
@@ -2734,15 +2572,15 @@ Result (mode "mallocinfo"):
|
|
|
2734
2572
|
"<malloc version="1">..."
|
|
2735
2573
|
|
|
2736
2574
|
Examples:
|
|
2737
|
-
> neurai-cli getmemoryinfo
|
|
2575
|
+
> neurai-cli getmemoryinfo
|
|
2738
2576
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmemoryinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2739
2577
|
**/
|
|
2740
|
-
getmemoryinfo:'getmemoryinfo',
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2578
|
+
getmemoryinfo:'getmemoryinfo',
|
|
2579
|
+
|
|
2580
|
+
|
|
2581
|
+
|
|
2582
|
+
|
|
2583
|
+
|
|
2746
2584
|
/** getmempoolancestors txid (verbose)
|
|
2747
2585
|
|
|
2748
2586
|
If txid is in the mempool, returns all in-mempool ancestors.
|
|
@@ -2782,12 +2620,12 @@ Examples:
|
|
|
2782
2620
|
> neurai-cli getmempoolancestors "mytxid"
|
|
2783
2621
|
> 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/
|
|
2784
2622
|
**/
|
|
2785
|
-
getmempoolancestors:'getmempoolancestors',
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2623
|
+
getmempoolancestors:'getmempoolancestors',
|
|
2624
|
+
|
|
2625
|
+
|
|
2626
|
+
|
|
2627
|
+
|
|
2628
|
+
|
|
2791
2629
|
/** getmempooldescendants txid (verbose)
|
|
2792
2630
|
|
|
2793
2631
|
If txid is in the mempool, returns all in-mempool descendants.
|
|
@@ -2827,12 +2665,12 @@ Examples:
|
|
|
2827
2665
|
> neurai-cli getmempooldescendants "mytxid"
|
|
2828
2666
|
> 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/
|
|
2829
2667
|
**/
|
|
2830
|
-
getmempooldescendants:'getmempooldescendants',
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2668
|
+
getmempooldescendants:'getmempooldescendants',
|
|
2669
|
+
|
|
2670
|
+
|
|
2671
|
+
|
|
2672
|
+
|
|
2673
|
+
|
|
2836
2674
|
/** getmempoolentry txid
|
|
2837
2675
|
|
|
2838
2676
|
Returns mempool data for given transaction
|
|
@@ -2863,12 +2701,12 @@ Examples:
|
|
|
2863
2701
|
> neurai-cli getmempoolentry "mytxid"
|
|
2864
2702
|
> 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/
|
|
2865
2703
|
**/
|
|
2866
|
-
getmempoolentry:'getmempoolentry',
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2704
|
+
getmempoolentry:'getmempoolentry',
|
|
2705
|
+
|
|
2706
|
+
|
|
2707
|
+
|
|
2708
|
+
|
|
2709
|
+
|
|
2872
2710
|
/** getmempoolinfo
|
|
2873
2711
|
|
|
2874
2712
|
Returns details on the active state of the TX memory pool.
|
|
@@ -2883,15 +2721,15 @@ Result:
|
|
|
2883
2721
|
}
|
|
2884
2722
|
|
|
2885
2723
|
Examples:
|
|
2886
|
-
> neurai-cli getmempoolinfo
|
|
2724
|
+
> neurai-cli getmempoolinfo
|
|
2887
2725
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempoolinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2888
2726
|
**/
|
|
2889
|
-
getmempoolinfo:'getmempoolinfo',
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2727
|
+
getmempoolinfo:'getmempoolinfo',
|
|
2728
|
+
|
|
2729
|
+
|
|
2730
|
+
|
|
2731
|
+
|
|
2732
|
+
|
|
2895
2733
|
/** getmininginfo
|
|
2896
2734
|
|
|
2897
2735
|
Returns a json object containing mining-related information.
|
|
@@ -2910,15 +2748,15 @@ Result:
|
|
|
2910
2748
|
}
|
|
2911
2749
|
|
|
2912
2750
|
Examples:
|
|
2913
|
-
> neurai-cli getmininginfo
|
|
2751
|
+
> neurai-cli getmininginfo
|
|
2914
2752
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmininginfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2915
2753
|
**/
|
|
2916
|
-
getmininginfo:'getmininginfo',
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2754
|
+
getmininginfo:'getmininginfo',
|
|
2755
|
+
|
|
2756
|
+
|
|
2757
|
+
|
|
2758
|
+
|
|
2759
|
+
|
|
2922
2760
|
/** getmywords ( "account" )
|
|
2923
2761
|
|
|
2924
2762
|
Returns the 12 words and passphrase used by BIP39 to generate the wallets private keys
|
|
@@ -2929,15 +2767,15 @@ Result:
|
|
|
2929
2767
|
"passphrase:" (optional) Only show if passphrase was used when creating the wallet
|
|
2930
2768
|
|
|
2931
2769
|
Examples:
|
|
2932
|
-
> neurai-cli getmywords
|
|
2770
|
+
> neurai-cli getmywords
|
|
2933
2771
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmywords", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2934
2772
|
**/
|
|
2935
|
-
getmywords:'getmywords',
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2773
|
+
getmywords:'getmywords',
|
|
2774
|
+
|
|
2775
|
+
|
|
2776
|
+
|
|
2777
|
+
|
|
2778
|
+
|
|
2941
2779
|
/** getnettotals
|
|
2942
2780
|
|
|
2943
2781
|
Returns information about network traffic, including bytes in, bytes out,
|
|
@@ -2960,15 +2798,15 @@ Result:
|
|
|
2960
2798
|
}
|
|
2961
2799
|
|
|
2962
2800
|
Examples:
|
|
2963
|
-
> neurai-cli getnettotals
|
|
2801
|
+
> neurai-cli getnettotals
|
|
2964
2802
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnettotals", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2965
2803
|
**/
|
|
2966
|
-
getnettotals:'getnettotals',
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2804
|
+
getnettotals:'getnettotals',
|
|
2805
|
+
|
|
2806
|
+
|
|
2807
|
+
|
|
2808
|
+
|
|
2809
|
+
|
|
2972
2810
|
/** getnetworkhashps ( nblocks height )
|
|
2973
2811
|
|
|
2974
2812
|
Returns the estimated network hashes per second based on the last n blocks.
|
|
@@ -2983,15 +2821,15 @@ Result:
|
|
|
2983
2821
|
x (numeric) Hashes per second estimated
|
|
2984
2822
|
|
|
2985
2823
|
Examples:
|
|
2986
|
-
> neurai-cli getnetworkhashps
|
|
2824
|
+
> neurai-cli getnetworkhashps
|
|
2987
2825
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnetworkhashps", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2988
2826
|
**/
|
|
2989
|
-
getnetworkhashps:'getnetworkhashps',
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2827
|
+
getnetworkhashps:'getnetworkhashps',
|
|
2828
|
+
|
|
2829
|
+
|
|
2830
|
+
|
|
2831
|
+
|
|
2832
|
+
|
|
2995
2833
|
/** getnetworkinfo
|
|
2996
2834
|
Returns an object containing various state info regarding P2P networking.
|
|
2997
2835
|
|
|
@@ -3029,19 +2867,19 @@ Result:
|
|
|
3029
2867
|
}
|
|
3030
2868
|
|
|
3031
2869
|
Examples:
|
|
3032
|
-
> neurai-cli getnetworkinfo
|
|
2870
|
+
> neurai-cli getnetworkinfo
|
|
3033
2871
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnetworkinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3034
2872
|
**/
|
|
3035
|
-
getnetworkinfo:'getnetworkinfo',
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
2873
|
+
getnetworkinfo:'getnetworkinfo',
|
|
2874
|
+
|
|
2875
|
+
|
|
2876
|
+
|
|
2877
|
+
|
|
2878
|
+
|
|
3041
2879
|
/** getnewaddress ( "account" "address_type" )
|
|
3042
2880
|
|
|
3043
2881
|
Returns a new Neurai address for receiving payments.
|
|
3044
|
-
If 'account' is specified (DEPRECATED), it is added to the address book
|
|
2882
|
+
If 'account' is specified (DEPRECATED), it is added to the address book
|
|
3045
2883
|
so payments received with the address will be credited to 'account'.
|
|
3046
2884
|
|
|
3047
2885
|
Arguments:
|
|
@@ -3052,16 +2890,16 @@ Result:
|
|
|
3052
2890
|
"address" (string) The new neurai address
|
|
3053
2891
|
|
|
3054
2892
|
Examples:
|
|
3055
|
-
> neurai-cli getnewaddress
|
|
2893
|
+
> neurai-cli getnewaddress
|
|
3056
2894
|
> neurai-cli getnewaddress "" "ecdsa"
|
|
3057
2895
|
> 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/
|
|
3058
2896
|
**/
|
|
3059
|
-
getnewaddress:'getnewaddress',
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
2897
|
+
getnewaddress:'getnewaddress',
|
|
2898
|
+
|
|
2899
|
+
|
|
2900
|
+
|
|
2901
|
+
|
|
2902
|
+
|
|
3065
2903
|
/** getpeerinfo
|
|
3066
2904
|
|
|
3067
2905
|
Returns data about each connected network node as a json array of objects.
|
|
@@ -3110,15 +2948,15 @@ Result:
|
|
|
3110
2948
|
]
|
|
3111
2949
|
|
|
3112
2950
|
Examples:
|
|
3113
|
-
> neurai-cli getpeerinfo
|
|
2951
|
+
> neurai-cli getpeerinfo
|
|
3114
2952
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getpeerinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3115
2953
|
**/
|
|
3116
|
-
getpeerinfo:'getpeerinfo',
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
2954
|
+
getpeerinfo:'getpeerinfo',
|
|
2955
|
+
|
|
2956
|
+
|
|
2957
|
+
|
|
2958
|
+
|
|
2959
|
+
|
|
3122
2960
|
/** getpubkey "address"
|
|
3123
2961
|
|
|
3124
2962
|
Returns the public key for an address that has revealed it by spending (requires pubkeyindex to be enabled).
|
|
@@ -3139,12 +2977,12 @@ Examples:
|
|
|
3139
2977
|
> neurai-cli getpubkey "NXa1b2c3d4e5f6..."
|
|
3140
2978
|
> 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/
|
|
3141
2979
|
**/
|
|
3142
|
-
getpubkey:'getpubkey',
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
2980
|
+
getpubkey:'getpubkey',
|
|
2981
|
+
|
|
2982
|
+
|
|
2983
|
+
|
|
2984
|
+
|
|
2985
|
+
|
|
3148
2986
|
/** getrawchangeaddress ( "address_type" )
|
|
3149
2987
|
|
|
3150
2988
|
Returns a new Neurai address, for receiving change.
|
|
@@ -3157,15 +2995,15 @@ Result:
|
|
|
3157
2995
|
"address" (string) The address
|
|
3158
2996
|
|
|
3159
2997
|
Examples:
|
|
3160
|
-
> neurai-cli getrawchangeaddress
|
|
2998
|
+
> neurai-cli getrawchangeaddress
|
|
3161
2999
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrawchangeaddress", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3162
3000
|
**/
|
|
3163
|
-
getrawchangeaddress:'getrawchangeaddress',
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3001
|
+
getrawchangeaddress:'getrawchangeaddress',
|
|
3002
|
+
|
|
3003
|
+
|
|
3004
|
+
|
|
3005
|
+
|
|
3006
|
+
|
|
3169
3007
|
/** getrawmempool ( verbose )
|
|
3170
3008
|
|
|
3171
3009
|
Returns all transaction ids in memory pool as a json array of string transaction ids.
|
|
@@ -3206,12 +3044,12 @@ Examples:
|
|
|
3206
3044
|
> neurai-cli getrawmempool true
|
|
3207
3045
|
> 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/
|
|
3208
3046
|
**/
|
|
3209
|
-
getrawmempool:'getrawmempool',
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3047
|
+
getrawmempool:'getrawmempool',
|
|
3048
|
+
|
|
3049
|
+
|
|
3050
|
+
|
|
3051
|
+
|
|
3052
|
+
|
|
3215
3053
|
/** getrawtransaction "txid" ( verbose )
|
|
3216
3054
|
|
|
3217
3055
|
NOTE: By default this function only works for mempool transactions. If the -txindex option is
|
|
@@ -3242,7 +3080,7 @@ Result (if verbose is set to true):
|
|
|
3242
3080
|
"vin" : [ (array of json objects)
|
|
3243
3081
|
{
|
|
3244
3082
|
"txid": "id", (string) The transaction id
|
|
3245
|
-
"vout": n, (numeric)
|
|
3083
|
+
"vout": n, (numeric)
|
|
3246
3084
|
"scriptSig": { (json object) The script
|
|
3247
3085
|
"asm": "asm", (string) asm
|
|
3248
3086
|
"hex": "hex" (string) hex
|
|
@@ -3280,12 +3118,12 @@ Examples:
|
|
|
3280
3118
|
> neurai-cli getrawtransaction "mytxid" true
|
|
3281
3119
|
> 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/
|
|
3282
3120
|
**/
|
|
3283
|
-
getrawtransaction:'getrawtransaction',
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3121
|
+
getrawtransaction:'getrawtransaction',
|
|
3122
|
+
|
|
3123
|
+
|
|
3124
|
+
|
|
3125
|
+
|
|
3126
|
+
|
|
3289
3127
|
/** getreceivedbyaccount "account" ( minconf )
|
|
3290
3128
|
|
|
3291
3129
|
DEPRECATED. Returns the total amount received by addresses with <account> in transactions with at least [minconf] confirmations.
|
|
@@ -3311,12 +3149,12 @@ The amount with at least 6 confirmations
|
|
|
3311
3149
|
As a json rpc call
|
|
3312
3150
|
> 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/
|
|
3313
3151
|
**/
|
|
3314
|
-
getreceivedbyaccount:'getreceivedbyaccount',
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3152
|
+
getreceivedbyaccount:'getreceivedbyaccount',
|
|
3153
|
+
|
|
3154
|
+
|
|
3155
|
+
|
|
3156
|
+
|
|
3157
|
+
|
|
3320
3158
|
/** getreceivedbyaddress "address" ( minconf )
|
|
3321
3159
|
|
|
3322
3160
|
Returns the total amount received by the given address in transactions with at least minconf confirmations.
|
|
@@ -3342,12 +3180,12 @@ The amount with at least 6 confirmations
|
|
|
3342
3180
|
As a json rpc call
|
|
3343
3181
|
> 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/
|
|
3344
3182
|
**/
|
|
3345
|
-
getreceivedbyaddress:'getreceivedbyaddress',
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3183
|
+
getreceivedbyaddress:'getreceivedbyaddress',
|
|
3184
|
+
|
|
3185
|
+
|
|
3186
|
+
|
|
3187
|
+
|
|
3188
|
+
|
|
3351
3189
|
/** getrpcinfo
|
|
3352
3190
|
Returns details of the RPC server.
|
|
3353
3191
|
|
|
@@ -3356,20 +3194,20 @@ Result:
|
|
|
3356
3194
|
"active_commands" (array) All active commands
|
|
3357
3195
|
[
|
|
3358
3196
|
{ (object) Information about an active command
|
|
3359
|
-
"method" (string) The name of the RPC command
|
|
3197
|
+
"method" (string) The name of the RPC command
|
|
3360
3198
|
"duration" (numeric) The running time in microseconds
|
|
3361
3199
|
},...
|
|
3362
3200
|
],
|
|
3363
3201
|
}
|
|
3364
|
-
> neurai-cli getrpcinfo
|
|
3202
|
+
> neurai-cli getrpcinfo
|
|
3365
3203
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrpcinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3366
3204
|
**/
|
|
3367
|
-
getrpcinfo:'getrpcinfo',
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3205
|
+
getrpcinfo:'getrpcinfo',
|
|
3206
|
+
|
|
3207
|
+
|
|
3208
|
+
|
|
3209
|
+
|
|
3210
|
+
|
|
3373
3211
|
/** getsnapshot "asset_name" block_height
|
|
3374
3212
|
|
|
3375
3213
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
@@ -3395,12 +3233,12 @@ Result:
|
|
|
3395
3233
|
Examples:
|
|
3396
3234
|
> 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/
|
|
3397
3235
|
**/
|
|
3398
|
-
getsnapshot:'getsnapshot',
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3236
|
+
getsnapshot:'getsnapshot',
|
|
3237
|
+
|
|
3238
|
+
|
|
3239
|
+
|
|
3240
|
+
|
|
3241
|
+
|
|
3404
3242
|
/** getsnapshotrequest "asset_name" block_height
|
|
3405
3243
|
|
|
3406
3244
|
Retrieves the specified snapshot request details.
|
|
@@ -3419,12 +3257,12 @@ Examples:
|
|
|
3419
3257
|
> neurai-cli getsnapshotrequest "TRONCO" 12345
|
|
3420
3258
|
> 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/
|
|
3421
3259
|
**/
|
|
3422
|
-
getsnapshotrequest:'getsnapshotrequest',
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3260
|
+
getsnapshotrequest:'getsnapshotrequest',
|
|
3261
|
+
|
|
3262
|
+
|
|
3263
|
+
|
|
3264
|
+
|
|
3265
|
+
|
|
3428
3266
|
/** getspentinfo
|
|
3429
3267
|
|
|
3430
3268
|
Returns the txid and index where an output is spent.
|
|
@@ -3446,12 +3284,12 @@ Examples:
|
|
|
3446
3284
|
> neurai-cli getspentinfo '{"txid": "0437cd7f8525ceed2324359c2d0ba26006d92d856a9c20fa0241106ee5a597c9", "index": 0}'
|
|
3447
3285
|
> 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/
|
|
3448
3286
|
**/
|
|
3449
|
-
getspentinfo:'getspentinfo',
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3287
|
+
getspentinfo:'getspentinfo',
|
|
3288
|
+
|
|
3289
|
+
|
|
3290
|
+
|
|
3291
|
+
|
|
3292
|
+
|
|
3455
3293
|
/** gettransaction "txid" ( include_watchonly )
|
|
3456
3294
|
|
|
3457
3295
|
Get detailed information about in-wallet transaction <txid>
|
|
@@ -3463,7 +3301,7 @@ Arguments:
|
|
|
3463
3301
|
Result:
|
|
3464
3302
|
{
|
|
3465
3303
|
"amount" : x.xxx, (numeric) The transaction amount in XNA
|
|
3466
|
-
"fee": x.xxx, (numeric) The amount of the fee in XNA. This is negative and only available for the
|
|
3304
|
+
"fee": x.xxx, (numeric) The amount of the fee in XNA. This is negative and only available for the
|
|
3467
3305
|
'send' category of transactions.
|
|
3468
3306
|
"confirmations" : n, (numeric) The number of confirmations
|
|
3469
3307
|
"blockhash" : "hash", (string) The block hash
|
|
@@ -3482,9 +3320,9 @@ Result:
|
|
|
3482
3320
|
"amount" : x.xxx, (numeric) The amount in XNA
|
|
3483
3321
|
"label" : "label", (string) A comment for the address/transaction, if any
|
|
3484
3322
|
"vout" : n, (numeric) the vout value
|
|
3485
|
-
"fee": x.xxx, (numeric) The amount of the fee in XNA. This is negative and only available for the
|
|
3323
|
+
"fee": x.xxx, (numeric) The amount of the fee in XNA. This is negative and only available for the
|
|
3486
3324
|
'send' category of transactions.
|
|
3487
|
-
"abandoned": xxx (bool) 'true' if the transaction has been abandoned (inputs are respendable). Only available for the
|
|
3325
|
+
"abandoned": xxx (bool) 'true' if the transaction has been abandoned (inputs are respendable). Only available for the
|
|
3488
3326
|
'send' category of transactions.
|
|
3489
3327
|
}
|
|
3490
3328
|
,...
|
|
@@ -3508,12 +3346,12 @@ Examples:
|
|
|
3508
3346
|
> neurai-cli gettransaction "1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d" true
|
|
3509
3347
|
> 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/
|
|
3510
3348
|
**/
|
|
3511
|
-
gettransaction:'gettransaction',
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3349
|
+
gettransaction:'gettransaction',
|
|
3350
|
+
|
|
3351
|
+
|
|
3352
|
+
|
|
3353
|
+
|
|
3354
|
+
|
|
3517
3355
|
/** gettxout "txid" n ( include_mempool )
|
|
3518
3356
|
|
|
3519
3357
|
Returns details about an unspent transaction output.
|
|
@@ -3529,8 +3367,8 @@ Result:
|
|
|
3529
3367
|
"confirmations" : n, (numeric) The number of confirmations
|
|
3530
3368
|
"value" : x.xxx, (numeric) The transaction value in XNA
|
|
3531
3369
|
"scriptPubKey" : { (json object)
|
|
3532
|
-
"asm" : "code", (string)
|
|
3533
|
-
"hex" : "hex", (string)
|
|
3370
|
+
"asm" : "code", (string)
|
|
3371
|
+
"hex" : "hex", (string)
|
|
3534
3372
|
"reqSigs" : n, (numeric) Number of required signatures
|
|
3535
3373
|
"type" : "pubkeyhash", (string) The type, eg pubkeyhash
|
|
3536
3374
|
"addresses" : [ (array of string) array of neurai addresses
|
|
@@ -3544,7 +3382,7 @@ Result:
|
|
|
3544
3382
|
Examples:
|
|
3545
3383
|
|
|
3546
3384
|
Get unspent transactions
|
|
3547
|
-
> neurai-cli listunspent
|
|
3385
|
+
> neurai-cli listunspent
|
|
3548
3386
|
|
|
3549
3387
|
View the details
|
|
3550
3388
|
> neurai-cli gettxout "txid" 1
|
|
@@ -3552,12 +3390,12 @@ View the details
|
|
|
3552
3390
|
As a json rpc call
|
|
3553
3391
|
> 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/
|
|
3554
3392
|
**/
|
|
3555
|
-
gettxout:'gettxout',
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3393
|
+
gettxout:'gettxout',
|
|
3394
|
+
|
|
3395
|
+
|
|
3396
|
+
|
|
3397
|
+
|
|
3398
|
+
|
|
3561
3399
|
/** gettxoutproof ["txid",...] ( blockhash )
|
|
3562
3400
|
|
|
3563
3401
|
Returns a hex-encoded proof that "txid" was included in a block.
|
|
@@ -3578,12 +3416,12 @@ Arguments:
|
|
|
3578
3416
|
Result:
|
|
3579
3417
|
"data" (string) A string that is a serialized, hex-encoded data for the proof.
|
|
3580
3418
|
**/
|
|
3581
|
-
gettxoutproof:'gettxoutproof',
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3419
|
+
gettxoutproof:'gettxoutproof',
|
|
3420
|
+
|
|
3421
|
+
|
|
3422
|
+
|
|
3423
|
+
|
|
3424
|
+
|
|
3587
3425
|
/** gettxoutsetinfo
|
|
3588
3426
|
|
|
3589
3427
|
Returns statistics about the unspent transaction output set.
|
|
@@ -3602,24 +3440,24 @@ Result:
|
|
|
3602
3440
|
}
|
|
3603
3441
|
|
|
3604
3442
|
Examples:
|
|
3605
|
-
> neurai-cli gettxoutsetinfo
|
|
3443
|
+
> neurai-cli gettxoutsetinfo
|
|
3606
3444
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettxoutsetinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3607
3445
|
**/
|
|
3608
|
-
gettxoutsetinfo:'gettxoutsetinfo',
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3446
|
+
gettxoutsetinfo:'gettxoutsetinfo',
|
|
3447
|
+
|
|
3448
|
+
|
|
3449
|
+
|
|
3450
|
+
|
|
3451
|
+
|
|
3614
3452
|
/** getunconfirmedbalance
|
|
3615
3453
|
Returns the server's total unconfirmed balance
|
|
3616
3454
|
**/
|
|
3617
|
-
getunconfirmedbalance:'getunconfirmedbalance',
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3455
|
+
getunconfirmedbalance:'getunconfirmedbalance',
|
|
3456
|
+
|
|
3457
|
+
|
|
3458
|
+
|
|
3459
|
+
|
|
3460
|
+
|
|
3623
3461
|
/** getverifierstring restricted_name
|
|
3624
3462
|
|
|
3625
3463
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
@@ -3637,12 +3475,12 @@ Examples:
|
|
|
3637
3475
|
> neurai-cli getverifierstring "restricted_name"
|
|
3638
3476
|
> 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/
|
|
3639
3477
|
**/
|
|
3640
|
-
getverifierstring:'getverifierstring',
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3478
|
+
getverifierstring:'getverifierstring',
|
|
3479
|
+
|
|
3480
|
+
|
|
3481
|
+
|
|
3482
|
+
|
|
3483
|
+
|
|
3646
3484
|
/** getwalletinfo
|
|
3647
3485
|
Returns an object containing various wallet state info.
|
|
3648
3486
|
|
|
@@ -3664,15 +3502,15 @@ Result:
|
|
|
3664
3502
|
}
|
|
3665
3503
|
|
|
3666
3504
|
Examples:
|
|
3667
|
-
> neurai-cli getwalletinfo
|
|
3505
|
+
> neurai-cli getwalletinfo
|
|
3668
3506
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getwalletinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3669
3507
|
**/
|
|
3670
|
-
getwalletinfo:'getwalletinfo',
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3508
|
+
getwalletinfo:'getwalletinfo',
|
|
3509
|
+
|
|
3510
|
+
|
|
3511
|
+
|
|
3512
|
+
|
|
3513
|
+
|
|
3676
3514
|
/** help ( "command" )
|
|
3677
3515
|
|
|
3678
3516
|
List all commands, or get help for a specified command.
|
|
@@ -3683,12 +3521,12 @@ Arguments:
|
|
|
3683
3521
|
Result:
|
|
3684
3522
|
"text" (string) The help text
|
|
3685
3523
|
**/
|
|
3686
|
-
help:'help',
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3524
|
+
help:'help',
|
|
3525
|
+
|
|
3526
|
+
|
|
3527
|
+
|
|
3528
|
+
|
|
3529
|
+
|
|
3692
3530
|
/** importaddress "address" ( "label" rescan p2sh )
|
|
3693
3531
|
|
|
3694
3532
|
Adds a script (in hex) or address that can be watched as if it were in your wallet but cannot be used to spend.
|
|
@@ -3716,12 +3554,12 @@ Import using a label without rescan
|
|
|
3716
3554
|
As a JSON-RPC call
|
|
3717
3555
|
> 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/
|
|
3718
3556
|
**/
|
|
3719
|
-
importaddress:'importaddress',
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3557
|
+
importaddress:'importaddress',
|
|
3558
|
+
|
|
3559
|
+
|
|
3560
|
+
|
|
3561
|
+
|
|
3562
|
+
|
|
3725
3563
|
/** importmulti "requests" ( "options" )
|
|
3726
3564
|
|
|
3727
3565
|
Import addresses/scripts (with private or public keys, redeem script (P2SH)), rescanning all addresses in one-shot-only (rescan can be disabled via options).
|
|
@@ -3758,12 +3596,12 @@ Examples:
|
|
|
3758
3596
|
Response is an array with the same size as the input that has the execution result :
|
|
3759
3597
|
[{ "success": true } , { "success": false, "error": { "code": -1, "message": "Internal Server Error"} }, ... ]
|
|
3760
3598
|
**/
|
|
3761
|
-
importmulti:'importmulti',
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3599
|
+
importmulti:'importmulti',
|
|
3600
|
+
|
|
3601
|
+
|
|
3602
|
+
|
|
3603
|
+
|
|
3604
|
+
|
|
3767
3605
|
/** importprivkey "privkey" ( "label" ) ( rescan )
|
|
3768
3606
|
|
|
3769
3607
|
Adds a private key (as returned by dumpprivkey) to your wallet.
|
|
@@ -3792,12 +3630,12 @@ Import using default blank label and without rescan
|
|
|
3792
3630
|
As a JSON-RPC call
|
|
3793
3631
|
> 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/
|
|
3794
3632
|
**/
|
|
3795
|
-
importprivkey:'importprivkey',
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3633
|
+
importprivkey:'importprivkey',
|
|
3634
|
+
|
|
3635
|
+
|
|
3636
|
+
|
|
3637
|
+
|
|
3638
|
+
|
|
3801
3639
|
/** importprunedfunds
|
|
3802
3640
|
|
|
3803
3641
|
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.
|
|
@@ -3806,12 +3644,12 @@ Arguments:
|
|
|
3806
3644
|
1. "rawtransaction" (string, required) A raw transaction in hex funding an already-existing address in wallet
|
|
3807
3645
|
2. "txoutproof" (string, required) The hex output from gettxoutproof that contains the transaction
|
|
3808
3646
|
**/
|
|
3809
|
-
importprunedfunds:'importprunedfunds',
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3647
|
+
importprunedfunds:'importprunedfunds',
|
|
3648
|
+
|
|
3649
|
+
|
|
3650
|
+
|
|
3651
|
+
|
|
3652
|
+
|
|
3815
3653
|
/** importpubkey "pubkey" ( "label" rescan )
|
|
3816
3654
|
|
|
3817
3655
|
Adds a public key (in hex) that can be watched as if it were in your wallet but cannot be used to spend.
|
|
@@ -3834,12 +3672,12 @@ Import using a label without rescan
|
|
|
3834
3672
|
As a JSON-RPC call
|
|
3835
3673
|
> 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/
|
|
3836
3674
|
**/
|
|
3837
|
-
importpubkey:'importpubkey',
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3675
|
+
importpubkey:'importpubkey',
|
|
3676
|
+
|
|
3677
|
+
|
|
3678
|
+
|
|
3679
|
+
|
|
3680
|
+
|
|
3843
3681
|
/** importwallet "filename"
|
|
3844
3682
|
|
|
3845
3683
|
Imports keys from a wallet dump file (see dumpwallet).
|
|
@@ -3858,12 +3696,12 @@ Import the wallet
|
|
|
3858
3696
|
Import using the json rpc call
|
|
3859
3697
|
> 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/
|
|
3860
3698
|
**/
|
|
3861
|
-
importwallet:'importwallet',
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3699
|
+
importwallet:'importwallet',
|
|
3700
|
+
|
|
3701
|
+
|
|
3702
|
+
|
|
3703
|
+
|
|
3704
|
+
|
|
3867
3705
|
/** issue "asset_name" qty "( to_address )" "( change_address )" ( units ) ( reissuable ) ( has_ipfs ) "( ipfs_hash )"
|
|
3868
3706
|
|
|
3869
3707
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
@@ -3897,12 +3735,12 @@ Examples:
|
|
|
3897
3735
|
> neurai-cli issue "ASSET_NAME/SUB_ASSET" 1000 "myaddress" "changeaddress" 2 true
|
|
3898
3736
|
> neurai-cli issue "ASSET_NAME#uniquetag"
|
|
3899
3737
|
**/
|
|
3900
|
-
issue:'issue',
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3738
|
+
issue:'issue',
|
|
3739
|
+
|
|
3740
|
+
|
|
3741
|
+
|
|
3742
|
+
|
|
3743
|
+
|
|
3906
3744
|
/** issuequalifierasset "asset_name" qty "( to_address )" "( change_address )" ( has_ipfs ) "( ipfs_hash )"
|
|
3907
3745
|
|
|
3908
3746
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
@@ -3935,12 +3773,12 @@ Examples:
|
|
|
3935
3773
|
> neurai-cli issuequalifierasset "ASSET_NAME/SUB_QUALIFIER" 1000 "myaddress" "changeaddress"
|
|
3936
3774
|
> neurai-cli issuequalifierasset "#ASSET_NAME"
|
|
3937
3775
|
**/
|
|
3938
|
-
issuequalifierasset:'issuequalifierasset',
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3776
|
+
issuequalifierasset:'issuequalifierasset',
|
|
3777
|
+
|
|
3778
|
+
|
|
3779
|
+
|
|
3780
|
+
|
|
3781
|
+
|
|
3944
3782
|
/** issuerestrictedasset "asset_name" qty "verifier" "to_address" "( change_address )" (units) ( reissuable ) ( has_ipfs ) "( ipfs_hash )"
|
|
3945
3783
|
|
|
3946
3784
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
@@ -3972,12 +3810,12 @@ Examples:
|
|
|
3972
3810
|
> neurai-cli issuerestrictedasset "$ASSET_NAME" 1000 "#KYC & !#AML" "myaddress" "changeaddress" 8 true
|
|
3973
3811
|
> neurai-cli issuerestrictedasset "$ASSET_NAME" 1000 "#KYC & !#AML" "myaddress" "changeaddress" 0 false true QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E
|
|
3974
3812
|
**/
|
|
3975
|
-
issuerestrictedasset:'issuerestrictedasset',
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3813
|
+
issuerestrictedasset:'issuerestrictedasset',
|
|
3814
|
+
|
|
3815
|
+
|
|
3816
|
+
|
|
3817
|
+
|
|
3818
|
+
|
|
3981
3819
|
/** issueunique "root_name" [asset_tags] ( [ipfs_hashes] ) "( to_address )" "( change_address )"
|
|
3982
3820
|
|
|
3983
3821
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
@@ -4003,12 +3841,12 @@ Examples:
|
|
|
4003
3841
|
> neurai-cli issueunique "MY_ASSET" '["primo","secundo"]'
|
|
4004
3842
|
> neurai-cli issueunique "MY_ASSET" '["primo","secundo"]' '["first_hash","second_hash"]'
|
|
4005
3843
|
**/
|
|
4006
|
-
issueunique:'issueunique',
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
3844
|
+
issueunique:'issueunique',
|
|
3845
|
+
|
|
3846
|
+
|
|
3847
|
+
|
|
3848
|
+
|
|
3849
|
+
|
|
4012
3850
|
/** isvalidverifierstring verifier_string
|
|
4013
3851
|
|
|
4014
3852
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
@@ -4026,12 +3864,12 @@ Examples:
|
|
|
4026
3864
|
> neurai-cli isvalidverifierstring "verifier_string"
|
|
4027
3865
|
> 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/
|
|
4028
3866
|
**/
|
|
4029
|
-
isvalidverifierstring:'isvalidverifierstring',
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
3867
|
+
isvalidverifierstring:'isvalidverifierstring',
|
|
3868
|
+
|
|
3869
|
+
|
|
3870
|
+
|
|
3871
|
+
|
|
3872
|
+
|
|
4035
3873
|
/** keypoolrefill ( newsize )
|
|
4036
3874
|
|
|
4037
3875
|
Fills the keypool.
|
|
@@ -4040,15 +3878,15 @@ Arguments
|
|
|
4040
3878
|
1. newsize (numeric, optional, default=100) The new keypool size
|
|
4041
3879
|
|
|
4042
3880
|
Examples:
|
|
4043
|
-
> neurai-cli keypoolrefill
|
|
3881
|
+
> neurai-cli keypoolrefill
|
|
4044
3882
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "keypoolrefill", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4045
3883
|
**/
|
|
4046
|
-
keypoolrefill:'keypoolrefill',
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
3884
|
+
keypoolrefill:'keypoolrefill',
|
|
3885
|
+
|
|
3886
|
+
|
|
3887
|
+
|
|
3888
|
+
|
|
3889
|
+
|
|
4052
3890
|
/** listaccounts ( minconf include_watchonly)
|
|
4053
3891
|
|
|
4054
3892
|
DEPRECATED. Returns Object that has account names as keys, account balances as values.
|
|
@@ -4066,7 +3904,7 @@ Result:
|
|
|
4066
3904
|
Examples:
|
|
4067
3905
|
|
|
4068
3906
|
List account balances where there at least 1 confirmation
|
|
4069
|
-
> neurai-cli listaccounts
|
|
3907
|
+
> neurai-cli listaccounts
|
|
4070
3908
|
|
|
4071
3909
|
List account balances including zero confirmation transactions
|
|
4072
3910
|
> neurai-cli listaccounts 0
|
|
@@ -4077,12 +3915,12 @@ List account balances for 6 or more confirmations
|
|
|
4077
3915
|
As json rpc call
|
|
4078
3916
|
> 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/
|
|
4079
3917
|
**/
|
|
4080
|
-
listaccounts:'listaccounts',
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
3918
|
+
listaccounts:'listaccounts',
|
|
3919
|
+
|
|
3920
|
+
|
|
3921
|
+
|
|
3922
|
+
|
|
3923
|
+
|
|
4086
3924
|
/** listaddressesbyasset "asset_name" (onlytotal) (count) (start)
|
|
4087
3925
|
|
|
4088
3926
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
@@ -4106,12 +3944,12 @@ Examples:
|
|
|
4106
3944
|
> neurai-cli listaddressesbyasset "ASSET_NAME" true
|
|
4107
3945
|
> neurai-cli listaddressesbyasset "ASSET_NAME"
|
|
4108
3946
|
**/
|
|
4109
|
-
listaddressesbyasset:'listaddressesbyasset',
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
3947
|
+
listaddressesbyasset:'listaddressesbyasset',
|
|
3948
|
+
|
|
3949
|
+
|
|
3950
|
+
|
|
3951
|
+
|
|
3952
|
+
|
|
4115
3953
|
/** listaddressesfortag tag_name
|
|
4116
3954
|
|
|
4117
3955
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
@@ -4131,12 +3969,12 @@ Examples:
|
|
|
4131
3969
|
> neurai-cli listaddressesfortag "#TAG"
|
|
4132
3970
|
> 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/
|
|
4133
3971
|
**/
|
|
4134
|
-
listaddressesfortag:'listaddressesfortag',
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
3972
|
+
listaddressesfortag:'listaddressesfortag',
|
|
3973
|
+
|
|
3974
|
+
|
|
3975
|
+
|
|
3976
|
+
|
|
3977
|
+
|
|
4140
3978
|
/** listaddressgroupings
|
|
4141
3979
|
|
|
4142
3980
|
Lists groups of addresses which have had their common ownership
|
|
@@ -4157,15 +3995,15 @@ Result:
|
|
|
4157
3995
|
]
|
|
4158
3996
|
|
|
4159
3997
|
Examples:
|
|
4160
|
-
> neurai-cli listaddressgroupings
|
|
3998
|
+
> neurai-cli listaddressgroupings
|
|
4161
3999
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressgroupings", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4162
4000
|
**/
|
|
4163
|
-
listaddressgroupings:'listaddressgroupings',
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4001
|
+
listaddressgroupings:'listaddressgroupings',
|
|
4002
|
+
|
|
4003
|
+
|
|
4004
|
+
|
|
4005
|
+
|
|
4006
|
+
|
|
4169
4007
|
/** listaddressrestrictions address
|
|
4170
4008
|
|
|
4171
4009
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
@@ -4185,12 +4023,12 @@ Examples:
|
|
|
4185
4023
|
> neurai-cli listaddressrestrictions "address"
|
|
4186
4024
|
> 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/
|
|
4187
4025
|
**/
|
|
4188
|
-
listaddressrestrictions:'listaddressrestrictions',
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4026
|
+
listaddressrestrictions:'listaddressrestrictions',
|
|
4027
|
+
|
|
4028
|
+
|
|
4029
|
+
|
|
4030
|
+
|
|
4031
|
+
|
|
4194
4032
|
/** listassetbalancesbyaddress "address" (onlytotal) (count) (start)
|
|
4195
4033
|
|
|
4196
4034
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
@@ -4215,12 +4053,12 @@ Examples:
|
|
|
4215
4053
|
> neurai-cli listassetbalancesbyaddress "myaddress" true
|
|
4216
4054
|
> neurai-cli listassetbalancesbyaddress "myaddress"
|
|
4217
4055
|
**/
|
|
4218
|
-
listassetbalancesbyaddress:'listassetbalancesbyaddress',
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4056
|
+
listassetbalancesbyaddress:'listassetbalancesbyaddress',
|
|
4057
|
+
|
|
4058
|
+
|
|
4059
|
+
|
|
4060
|
+
|
|
4061
|
+
|
|
4224
4062
|
/** listassets "( asset )" ( verbose ) ( count ) ( start )
|
|
4225
4063
|
|
|
4226
4064
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
@@ -4261,26 +4099,26 @@ Examples:
|
|
|
4261
4099
|
> neurai-cli listassets ASSET
|
|
4262
4100
|
> neurai-cli listassets "ASSET*" true 10 20
|
|
4263
4101
|
**/
|
|
4264
|
-
listassets:'listassets',
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4102
|
+
listassets:'listassets',
|
|
4103
|
+
|
|
4104
|
+
|
|
4105
|
+
|
|
4106
|
+
|
|
4107
|
+
|
|
4270
4108
|
/** listbanned
|
|
4271
4109
|
|
|
4272
4110
|
List all banned IPs/Subnets.
|
|
4273
4111
|
|
|
4274
4112
|
Examples:
|
|
4275
|
-
> neurai-cli listbanned
|
|
4113
|
+
> neurai-cli listbanned
|
|
4276
4114
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listbanned", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4277
4115
|
**/
|
|
4278
|
-
listbanned:'listbanned',
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4116
|
+
listbanned:'listbanned',
|
|
4117
|
+
|
|
4118
|
+
|
|
4119
|
+
|
|
4120
|
+
|
|
4121
|
+
|
|
4284
4122
|
/** listdepinaddresses "asset_name" (count) (start)
|
|
4285
4123
|
|
|
4286
4124
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
@@ -4308,12 +4146,12 @@ Examples:
|
|
|
4308
4146
|
> neurai-cli listdepinaddresses "ASSET_NAME" 10 0
|
|
4309
4147
|
> 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/
|
|
4310
4148
|
**/
|
|
4311
|
-
listdepinaddresses:'listdepinaddresses',
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4149
|
+
listdepinaddresses:'listdepinaddresses',
|
|
4150
|
+
|
|
4151
|
+
|
|
4152
|
+
|
|
4153
|
+
|
|
4154
|
+
|
|
4317
4155
|
/** listdepinholders "asset_name"
|
|
4318
4156
|
|
|
4319
4157
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
@@ -4340,12 +4178,12 @@ Examples:
|
|
|
4340
4178
|
> neurai-cli listdepinholders "&FRANCE"
|
|
4341
4179
|
> 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/
|
|
4342
4180
|
**/
|
|
4343
|
-
listdepinholders:'listdepinholders',
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4181
|
+
listdepinholders:'listdepinholders',
|
|
4182
|
+
|
|
4183
|
+
|
|
4184
|
+
|
|
4185
|
+
|
|
4186
|
+
|
|
4349
4187
|
/** listglobalrestrictions
|
|
4350
4188
|
|
|
4351
4189
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
@@ -4359,15 +4197,15 @@ Result:
|
|
|
4359
4197
|
]
|
|
4360
4198
|
|
|
4361
4199
|
Examples:
|
|
4362
|
-
> neurai-cli listglobalrestrictions
|
|
4200
|
+
> neurai-cli listglobalrestrictions
|
|
4363
4201
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listglobalrestrictions", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4364
4202
|
**/
|
|
4365
|
-
listglobalrestrictions:'listglobalrestrictions',
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4203
|
+
listglobalrestrictions:'listglobalrestrictions',
|
|
4204
|
+
|
|
4205
|
+
|
|
4206
|
+
|
|
4207
|
+
|
|
4208
|
+
|
|
4371
4209
|
/** listlockunspent
|
|
4372
4210
|
|
|
4373
4211
|
Returns list of temporarily unspendable outputs.
|
|
@@ -4385,13 +4223,13 @@ Result:
|
|
|
4385
4223
|
Examples:
|
|
4386
4224
|
|
|
4387
4225
|
List the unspent transactions
|
|
4388
|
-
> neurai-cli listunspent
|
|
4226
|
+
> neurai-cli listunspent
|
|
4389
4227
|
|
|
4390
4228
|
Lock an unspent transaction
|
|
4391
4229
|
> neurai-cli lockunspent false "[{\"txid\":\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\",\"vout\":1}]"
|
|
4392
4230
|
|
|
4393
4231
|
List the locked transactions
|
|
4394
|
-
> neurai-cli listlockunspent
|
|
4232
|
+
> neurai-cli listlockunspent
|
|
4395
4233
|
|
|
4396
4234
|
Unlock the transaction again
|
|
4397
4235
|
> neurai-cli lockunspent true "[{\"txid\":\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\",\"vout\":1}]"
|
|
@@ -4399,13 +4237,13 @@ Unlock the transaction again
|
|
|
4399
4237
|
As a json rpc call
|
|
4400
4238
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listlockunspent", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4401
4239
|
**/
|
|
4402
|
-
listlockunspent:'listlockunspent',
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
/** listmyassets "( asset )" ( verbose ) ( count ) ( start ) (confs)
|
|
4240
|
+
listlockunspent:'listlockunspent',
|
|
4241
|
+
|
|
4242
|
+
|
|
4243
|
+
|
|
4244
|
+
|
|
4245
|
+
|
|
4246
|
+
/** listmyassets "( asset )" ( verbose ) ( count ) ( start ) (confs)
|
|
4409
4247
|
|
|
4410
4248
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
4411
4249
|
https://github.com/NeuraiProject/rips/blob/master/rip-0002.mediawiki
|
|
@@ -4449,12 +4287,12 @@ Examples:
|
|
|
4449
4287
|
> neurai-cli listmyassets "ASSET*" true 10 20
|
|
4450
4288
|
> neurai-cli listmyassets "ASSET*" true 10 20 1
|
|
4451
4289
|
**/
|
|
4452
|
-
listmyassets:'listmyassets',
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4290
|
+
listmyassets:'listmyassets',
|
|
4291
|
+
|
|
4292
|
+
|
|
4293
|
+
|
|
4294
|
+
|
|
4295
|
+
|
|
4458
4296
|
/** listpqaddresses
|
|
4459
4297
|
|
|
4460
4298
|
Returns the list of post-quantum (ML-DSA-44) Bech32m addresses in the wallet.
|
|
@@ -4466,15 +4304,15 @@ Result:
|
|
|
4466
4304
|
]
|
|
4467
4305
|
|
|
4468
4306
|
Examples:
|
|
4469
|
-
> neurai-cli listpqaddresses
|
|
4307
|
+
> neurai-cli listpqaddresses
|
|
4470
4308
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listpqaddresses", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4471
4309
|
**/
|
|
4472
|
-
listpqaddresses:'listpqaddresses',
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4310
|
+
listpqaddresses:'listpqaddresses',
|
|
4311
|
+
|
|
4312
|
+
|
|
4313
|
+
|
|
4314
|
+
|
|
4315
|
+
|
|
4478
4316
|
/** listreceivedbyaccount ( minconf include_empty include_watchonly)
|
|
4479
4317
|
|
|
4480
4318
|
DEPRECATED. List balances by account.
|
|
@@ -4497,16 +4335,16 @@ Result:
|
|
|
4497
4335
|
]
|
|
4498
4336
|
|
|
4499
4337
|
Examples:
|
|
4500
|
-
> neurai-cli listreceivedbyaccount
|
|
4338
|
+
> neurai-cli listreceivedbyaccount
|
|
4501
4339
|
> neurai-cli listreceivedbyaccount 6 true
|
|
4502
4340
|
> 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/
|
|
4503
4341
|
**/
|
|
4504
|
-
listreceivedbyaccount:'listreceivedbyaccount',
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4342
|
+
listreceivedbyaccount:'listreceivedbyaccount',
|
|
4343
|
+
|
|
4344
|
+
|
|
4345
|
+
|
|
4346
|
+
|
|
4347
|
+
|
|
4510
4348
|
/** listreceivedbyaddress ( minconf include_empty include_watchonly)
|
|
4511
4349
|
|
|
4512
4350
|
List balances by receiving address.
|
|
@@ -4526,7 +4364,7 @@ Result:
|
|
|
4526
4364
|
"confirmations" : n, (numeric) The number of confirmations of the most recent transaction included
|
|
4527
4365
|
"label" : "label", (string) A comment for the address/transaction, if any
|
|
4528
4366
|
"txids": [
|
|
4529
|
-
n, (numeric) The ids of transactions received with the address
|
|
4367
|
+
n, (numeric) The ids of transactions received with the address
|
|
4530
4368
|
...
|
|
4531
4369
|
]
|
|
4532
4370
|
}
|
|
@@ -4534,16 +4372,16 @@ Result:
|
|
|
4534
4372
|
]
|
|
4535
4373
|
|
|
4536
4374
|
Examples:
|
|
4537
|
-
> neurai-cli listreceivedbyaddress
|
|
4375
|
+
> neurai-cli listreceivedbyaddress
|
|
4538
4376
|
> neurai-cli listreceivedbyaddress 6 true
|
|
4539
4377
|
> 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/
|
|
4540
4378
|
**/
|
|
4541
|
-
listreceivedbyaddress:'listreceivedbyaddress',
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4379
|
+
listreceivedbyaddress:'listreceivedbyaddress',
|
|
4380
|
+
|
|
4381
|
+
|
|
4382
|
+
|
|
4383
|
+
|
|
4384
|
+
|
|
4547
4385
|
/** listsinceblock ( "blockhash" target_confirmations include_watchonly include_removed )
|
|
4548
4386
|
|
|
4549
4387
|
Get all transactions in blocks since block [blockhash], or all transactions if omitted.
|
|
@@ -4563,7 +4401,7 @@ Result:
|
|
|
4563
4401
|
"account":"accountname", (string) DEPRECATED. The account name associated with the transaction. Will be "" for the default account.
|
|
4564
4402
|
"address":"address", (string) The neurai address of the transaction. Not present for move transactions (category = move).
|
|
4565
4403
|
"category":"send|receive", (string) The transaction category. 'send' has negative amounts, 'receive' has positive amounts.
|
|
4566
|
-
"amount": x.xxx, (numeric) The amount in XNA. This is negative for the 'send' category, and for the 'move' category for moves
|
|
4404
|
+
"amount": x.xxx, (numeric) The amount in XNA. This is negative for the 'send' category, and for the 'move' category for moves
|
|
4567
4405
|
outbound. It is positive for the 'receive' category, and for the 'move' category for inbound funds.
|
|
4568
4406
|
"vout" : n, (numeric) the vout value
|
|
4569
4407
|
"fee": x.xxx, (numeric) The amount of the fee in XNA. This is negative and only available for the 'send' category of transactions.
|
|
@@ -4590,16 +4428,16 @@ Result:
|
|
|
4590
4428
|
}
|
|
4591
4429
|
|
|
4592
4430
|
Examples:
|
|
4593
|
-
> neurai-cli listsinceblock
|
|
4431
|
+
> neurai-cli listsinceblock
|
|
4594
4432
|
> neurai-cli listsinceblock "000000000000000bacf66f7497b7dc45ef753ee9a7d38571037cdb1a57f663ad" 6
|
|
4595
4433
|
> 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/
|
|
4596
4434
|
**/
|
|
4597
|
-
listsinceblock:'listsinceblock',
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4435
|
+
listsinceblock:'listsinceblock',
|
|
4436
|
+
|
|
4437
|
+
|
|
4438
|
+
|
|
4439
|
+
|
|
4440
|
+
|
|
4603
4441
|
/** listsnapshotrequests ["asset_name" [block_height]]
|
|
4604
4442
|
|
|
4605
4443
|
List snapshot request details.
|
|
@@ -4617,15 +4455,15 @@ Result:
|
|
|
4617
4455
|
]
|
|
4618
4456
|
|
|
4619
4457
|
Examples:
|
|
4620
|
-
> neurai-cli listsnapshotrequests
|
|
4458
|
+
> neurai-cli listsnapshotrequests
|
|
4621
4459
|
> 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/
|
|
4622
4460
|
**/
|
|
4623
|
-
listsnapshotrequests:'listsnapshotrequests',
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4461
|
+
listsnapshotrequests:'listsnapshotrequests',
|
|
4462
|
+
|
|
4463
|
+
|
|
4464
|
+
|
|
4465
|
+
|
|
4466
|
+
|
|
4629
4467
|
/** listtagsforaddress address
|
|
4630
4468
|
|
|
4631
4469
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
@@ -4645,12 +4483,12 @@ Examples:
|
|
|
4645
4483
|
> neurai-cli listtagsforaddress "address"
|
|
4646
4484
|
> 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/
|
|
4647
4485
|
**/
|
|
4648
|
-
listtagsforaddress:'listtagsforaddress',
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4486
|
+
listtagsforaddress:'listtagsforaddress',
|
|
4487
|
+
|
|
4488
|
+
|
|
4489
|
+
|
|
4490
|
+
|
|
4491
|
+
|
|
4654
4492
|
/** listtransactions ( "account" count skip include_watchonly)
|
|
4655
4493
|
|
|
4656
4494
|
Returns up to 'count' most recent transactions skipping the first 'from' transactions for account 'account'.
|
|
@@ -4664,22 +4502,22 @@ Arguments:
|
|
|
4664
4502
|
Result:
|
|
4665
4503
|
[
|
|
4666
4504
|
{
|
|
4667
|
-
"account":"accountname", (string) DEPRECATED. The account name associated with the transaction.
|
|
4505
|
+
"account":"accountname", (string) DEPRECATED. The account name associated with the transaction.
|
|
4668
4506
|
It will be "" for the default account.
|
|
4669
|
-
"address":"address", (string) The neurai address of the transaction. Not present for
|
|
4507
|
+
"address":"address", (string) The neurai address of the transaction. Not present for
|
|
4670
4508
|
move transactions (category = move).
|
|
4671
4509
|
"category":"send|receive|move", (string) The transaction category. 'move' is a local (off blockchain)
|
|
4672
4510
|
transaction between accounts, and not associated with an address,
|
|
4673
|
-
transaction id or block. 'send' and 'receive' transactions are
|
|
4511
|
+
transaction id or block. 'send' and 'receive' transactions are
|
|
4674
4512
|
associated with an address, transaction id and block details
|
|
4675
4513
|
"amount": x.xxx, (numeric) The amount in XNA. This is negative for the 'send' category, and for the
|
|
4676
4514
|
'move' category for moves outbound. It is positive for the 'receive' category,
|
|
4677
4515
|
and for the 'move' category for inbound funds.
|
|
4678
4516
|
"label": "label", (string) A comment for the address/transaction, if any
|
|
4679
4517
|
"vout": n, (numeric) the vout value
|
|
4680
|
-
"fee": x.xxx, (numeric) The amount of the fee in XNA. This is negative and only available for the
|
|
4518
|
+
"fee": x.xxx, (numeric) The amount of the fee in XNA. This is negative and only available for the
|
|
4681
4519
|
'send' category of transactions.
|
|
4682
|
-
"confirmations": n, (numeric) The number of confirmations for the transaction. Available for 'send' and
|
|
4520
|
+
"confirmations": n, (numeric) The number of confirmations for the transaction. Available for 'send' and
|
|
4683
4521
|
'receive' category of transactions. Negative confirmations indicate the
|
|
4684
4522
|
transaction conflicts with the block chain
|
|
4685
4523
|
"trusted": xxx, (bool) Whether we consider the outputs of this unconfirmed transaction safe to spend.
|
|
@@ -4690,15 +4528,15 @@ Result:
|
|
|
4690
4528
|
"blocktime": xxx, (numeric) The block time in seconds since epoch (1 Jan 1970 GMT).
|
|
4691
4529
|
"txid": "transactionid", (string) The transaction id. Available for 'send' and 'receive' category of transactions.
|
|
4692
4530
|
"time": xxx, (numeric) The transaction time in seconds since epoch (midnight Jan 1 1970 GMT).
|
|
4693
|
-
"timereceived": xxx, (numeric) The time received in seconds since epoch (midnight Jan 1 1970 GMT). Available
|
|
4531
|
+
"timereceived": xxx, (numeric) The time received in seconds since epoch (midnight Jan 1 1970 GMT). Available
|
|
4694
4532
|
for 'send' and 'receive' category of transactions.
|
|
4695
4533
|
"comment": "...", (string) If a comment is associated with the transaction.
|
|
4696
|
-
"otheraccount": "accountname", (string) DEPRECATED. For the 'move' category of transactions, the account the funds came
|
|
4534
|
+
"otheraccount": "accountname", (string) DEPRECATED. For the 'move' category of transactions, the account the funds came
|
|
4697
4535
|
from (for receiving funds, positive amounts), or went to (for sending funds,
|
|
4698
4536
|
negative amounts).
|
|
4699
4537
|
"bip125-replaceable": "yes|no|unknown", (string) Whether this transaction could be replaced due to BIP125 (replace-by-fee);
|
|
4700
4538
|
may be unknown for unconfirmed transactions not in the mempool
|
|
4701
|
-
"abandoned": xxx (bool) 'true' if the transaction has been abandoned (inputs are respendable). Only available for the
|
|
4539
|
+
"abandoned": xxx (bool) 'true' if the transaction has been abandoned (inputs are respendable). Only available for the
|
|
4702
4540
|
'send' category of transactions.
|
|
4703
4541
|
}
|
|
4704
4542
|
]
|
|
@@ -4706,7 +4544,7 @@ Result:
|
|
|
4706
4544
|
Examples:
|
|
4707
4545
|
|
|
4708
4546
|
List the most recent 10 transactions in the systems
|
|
4709
|
-
> neurai-cli listtransactions
|
|
4547
|
+
> neurai-cli listtransactions
|
|
4710
4548
|
|
|
4711
4549
|
List transactions 100 to 120
|
|
4712
4550
|
> neurai-cli listtransactions "*" 20 100
|
|
@@ -4714,12 +4552,12 @@ List transactions 100 to 120
|
|
|
4714
4552
|
As a json rpc call
|
|
4715
4553
|
> 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/
|
|
4716
4554
|
**/
|
|
4717
|
-
listtransactions:'listtransactions',
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4555
|
+
listtransactions:'listtransactions',
|
|
4556
|
+
|
|
4557
|
+
|
|
4558
|
+
|
|
4559
|
+
|
|
4560
|
+
|
|
4723
4561
|
/** listunspent ( minconf maxconf ["addresses",...] [include_unsafe] [query_options])
|
|
4724
4562
|
|
|
4725
4563
|
Returns array of unspent transaction outputs
|
|
@@ -4747,7 +4585,7 @@ Arguments:
|
|
|
4747
4585
|
Result
|
|
4748
4586
|
[ (array of json object)
|
|
4749
4587
|
{
|
|
4750
|
-
"txid" : "txid", (string) the transaction id
|
|
4588
|
+
"txid" : "txid", (string) the transaction id
|
|
4751
4589
|
"vout" : n, (numeric) the vout value
|
|
4752
4590
|
"address" : "address", (string) the neurai address
|
|
4753
4591
|
"account" : "account", (string) DEPRECATED. The associated account, or "" for the default account
|
|
@@ -4765,18 +4603,18 @@ Result
|
|
|
4765
4603
|
]
|
|
4766
4604
|
|
|
4767
4605
|
Examples
|
|
4768
|
-
> neurai-cli listunspent
|
|
4606
|
+
> neurai-cli listunspent
|
|
4769
4607
|
> neurai-cli listunspent 6 9999999 "[\"1PGFqEzfmQch1gKD3ra4k18PNj3tTUUSqg\",\"1LtvqCaApEdUGFkpKMM4MstjcaL4dKg8SP\"]"
|
|
4770
4608
|
> 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/
|
|
4771
4609
|
> neurai-cli listunspent 6 9999999 '[]' true '{ "minimumAmount": 0.005 }'
|
|
4772
4610
|
> 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/
|
|
4773
4611
|
**/
|
|
4774
|
-
listunspent:'listunspent',
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4612
|
+
listunspent:'listunspent',
|
|
4613
|
+
|
|
4614
|
+
|
|
4615
|
+
|
|
4616
|
+
|
|
4617
|
+
|
|
4780
4618
|
/** listwallets
|
|
4781
4619
|
Returns a list of currently loaded wallets.
|
|
4782
4620
|
For full information on the wallet, use "getwalletinfo"
|
|
@@ -4788,15 +4626,15 @@ Result:
|
|
|
4788
4626
|
]
|
|
4789
4627
|
|
|
4790
4628
|
Examples:
|
|
4791
|
-
> neurai-cli listwallets
|
|
4629
|
+
> neurai-cli listwallets
|
|
4792
4630
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listwallets", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4793
4631
|
**/
|
|
4794
|
-
listwallets:'listwallets',
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4632
|
+
listwallets:'listwallets',
|
|
4633
|
+
|
|
4634
|
+
|
|
4635
|
+
|
|
4636
|
+
|
|
4637
|
+
|
|
4800
4638
|
/** lockunspent unlock ([{"txid":"txid","vout":n},...])
|
|
4801
4639
|
|
|
4802
4640
|
Updates list of temporarily unspendable outputs.
|
|
@@ -4824,13 +4662,13 @@ true|false (boolean) Whether the command was successful or not
|
|
|
4824
4662
|
Examples:
|
|
4825
4663
|
|
|
4826
4664
|
List the unspent transactions
|
|
4827
|
-
> neurai-cli listunspent
|
|
4665
|
+
> neurai-cli listunspent
|
|
4828
4666
|
|
|
4829
4667
|
Lock an unspent transaction
|
|
4830
4668
|
> neurai-cli lockunspent false "[{\"txid\":\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\",\"vout\":1}]"
|
|
4831
4669
|
|
|
4832
4670
|
List the locked transactions
|
|
4833
|
-
> neurai-cli listlockunspent
|
|
4671
|
+
> neurai-cli listlockunspent
|
|
4834
4672
|
|
|
4835
4673
|
Unlock the transaction again
|
|
4836
4674
|
> neurai-cli lockunspent true "[{\"txid\":\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\",\"vout\":1}]"
|
|
@@ -4838,12 +4676,12 @@ Unlock the transaction again
|
|
|
4838
4676
|
As a json rpc call
|
|
4839
4677
|
> 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/
|
|
4840
4678
|
**/
|
|
4841
|
-
lockunspent:'lockunspent',
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4679
|
+
lockunspent:'lockunspent',
|
|
4680
|
+
|
|
4681
|
+
|
|
4682
|
+
|
|
4683
|
+
|
|
4684
|
+
|
|
4847
4685
|
/** move "fromaccount" "toaccount" amount ( minconf "comment" )
|
|
4848
4686
|
|
|
4849
4687
|
DEPRECATED. Move a specified amount from one account in your wallet to another.
|
|
@@ -4869,12 +4707,12 @@ Move 0.01 XNA timotei to akiko with a comment and funds have 6 confirmations
|
|
|
4869
4707
|
As a json rpc call
|
|
4870
4708
|
> 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/
|
|
4871
4709
|
**/
|
|
4872
|
-
move:'move',
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4710
|
+
move:'move',
|
|
4711
|
+
|
|
4712
|
+
|
|
4713
|
+
|
|
4714
|
+
|
|
4715
|
+
|
|
4878
4716
|
/** ping
|
|
4879
4717
|
|
|
4880
4718
|
Requests that a ping be sent to all other nodes, to measure ping time.
|
|
@@ -4882,15 +4720,15 @@ Results provided in getpeerinfo, pingtime and pingwait fields are decimal second
|
|
|
4882
4720
|
Ping command is handled in queue with all other commands, so it measures processing backlog, not just network ping.
|
|
4883
4721
|
|
|
4884
4722
|
Examples:
|
|
4885
|
-
> neurai-cli ping
|
|
4723
|
+
> neurai-cli ping
|
|
4886
4724
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "ping", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4887
4725
|
**/
|
|
4888
|
-
ping:'ping',
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4726
|
+
ping:'ping',
|
|
4727
|
+
|
|
4728
|
+
|
|
4729
|
+
|
|
4730
|
+
|
|
4731
|
+
|
|
4894
4732
|
/** pprpcsb "header_hash" "mix_hash" "nonce"
|
|
4895
4733
|
|
|
4896
4734
|
Attempts to submit new block to network mined by kawpow gpu miner via rpc.
|
|
@@ -4906,12 +4744,12 @@ Examples:
|
|
|
4906
4744
|
> neurai-cli pprpcsb "header_hash" "mix_hash" 100000
|
|
4907
4745
|
> 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/
|
|
4908
4746
|
**/
|
|
4909
|
-
pprpcsb:'pprpcsb',
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4747
|
+
pprpcsb:'pprpcsb',
|
|
4748
|
+
|
|
4749
|
+
|
|
4750
|
+
|
|
4751
|
+
|
|
4752
|
+
|
|
4915
4753
|
/** preciousblock "blockhash"
|
|
4916
4754
|
|
|
4917
4755
|
Treats a block as if it were received before others with the same work.
|
|
@@ -4929,12 +4767,12 @@ Examples:
|
|
|
4929
4767
|
> neurai-cli preciousblock "blockhash"
|
|
4930
4768
|
> 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/
|
|
4931
4769
|
**/
|
|
4932
|
-
preciousblock:'preciousblock',
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4770
|
+
preciousblock:'preciousblock',
|
|
4771
|
+
|
|
4772
|
+
|
|
4773
|
+
|
|
4774
|
+
|
|
4775
|
+
|
|
4938
4776
|
/** prioritisetransaction <txid> <dummy value> <fee delta>
|
|
4939
4777
|
Accepts the transaction into mined blocks at a higher (or lower) priority
|
|
4940
4778
|
|
|
@@ -4953,12 +4791,12 @@ Examples:
|
|
|
4953
4791
|
> neurai-cli prioritisetransaction "txid" 0.0 10000
|
|
4954
4792
|
> 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/
|
|
4955
4793
|
**/
|
|
4956
|
-
prioritisetransaction:'prioritisetransaction',
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4794
|
+
prioritisetransaction:'prioritisetransaction',
|
|
4795
|
+
|
|
4796
|
+
|
|
4797
|
+
|
|
4798
|
+
|
|
4799
|
+
|
|
4962
4800
|
/** pruneblockchain
|
|
4963
4801
|
|
|
4964
4802
|
Arguments:
|
|
@@ -4972,12 +4810,12 @@ Examples:
|
|
|
4972
4810
|
> neurai-cli pruneblockchain 1000
|
|
4973
4811
|
> 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/
|
|
4974
4812
|
**/
|
|
4975
|
-
pruneblockchain:'pruneblockchain',
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4813
|
+
pruneblockchain:'pruneblockchain',
|
|
4814
|
+
|
|
4815
|
+
|
|
4816
|
+
|
|
4817
|
+
|
|
4818
|
+
|
|
4981
4819
|
/** purgesnapshot "asset_name" block_height
|
|
4982
4820
|
|
|
4983
4821
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
@@ -4999,13 +4837,13 @@ Examples:
|
|
|
4999
4837
|
> neurai-cli purgesnapshot "ASSET_NAME" 28546
|
|
5000
4838
|
> 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/
|
|
5001
4839
|
**/
|
|
5002
|
-
purgesnapshot:'purgesnapshot',
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
/** reissue "asset_name" qty "to_address" "change_address" ( reissuable ) ( new_units) "( new_ipfs )"
|
|
4840
|
+
purgesnapshot:'purgesnapshot',
|
|
4841
|
+
|
|
4842
|
+
|
|
4843
|
+
|
|
4844
|
+
|
|
4845
|
+
|
|
4846
|
+
/** reissue "asset_name" qty "to_address" "change_address" ( reissuable ) ( new_units) "( new_ipfs )"
|
|
5009
4847
|
|
|
5010
4848
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
5011
4849
|
https://github.com/NeuraiProject/rips/blob/master/rip-0002.mediawiki
|
|
@@ -5029,12 +4867,12 @@ Examples:
|
|
|
5029
4867
|
> neurai-cli reissue "ASSET_NAME" 20 "address"
|
|
5030
4868
|
> 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/
|
|
5031
4869
|
**/
|
|
5032
|
-
reissue:'reissue',
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
4870
|
+
reissue:'reissue',
|
|
4871
|
+
|
|
4872
|
+
|
|
4873
|
+
|
|
4874
|
+
|
|
4875
|
+
|
|
5038
4876
|
/** reissuerestrictedasset "asset_name" qty to_address ( change_verifier ) ( "new_verifier" ) "( change_address )" ( new_units ) ( reissuable ) "( new_ipfs )"
|
|
5039
4877
|
|
|
5040
4878
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
@@ -5059,17 +4897,17 @@ Result:
|
|
|
5059
4897
|
|
|
5060
4898
|
Examples:
|
|
5061
4899
|
> neurai-cli reissuerestrictedasset "$ASSET_NAME" 1000 "myaddress" true "KYC & !AML"
|
|
5062
|
-
> neurai-cli reissuerestrictedasset "$ASSET_NAME" 1000 "myaddress" true "KYC & !AML"
|
|
4900
|
+
> neurai-cli reissuerestrictedasset "$ASSET_NAME" 1000 "myaddress" true "KYC & !AML"
|
|
5063
4901
|
> neurai-cli reissuerestrictedasset "$ASSET_NAME" 1000 "myaddress" true "KYC & !AML" "changeaddress"
|
|
5064
4902
|
> neurai-cli reissuerestrictedasset "$ASSET_NAME" 1000 "myaddress" true "KYC & !AML" "changeaddress" -1 true
|
|
5065
4903
|
> neurai-cli reissuerestrictedasset "$ASSET_NAME" 1000 "myaddress" false "" "changeaddress" -1 false QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E
|
|
5066
4904
|
**/
|
|
5067
|
-
reissuerestrictedasset:'reissuerestrictedasset',
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
4905
|
+
reissuerestrictedasset:'reissuerestrictedasset',
|
|
4906
|
+
|
|
4907
|
+
|
|
4908
|
+
|
|
4909
|
+
|
|
4910
|
+
|
|
5073
4911
|
/** removeprunedfunds "txid"
|
|
5074
4912
|
|
|
5075
4913
|
Deletes the specified transaction from the wallet. Meant for use with pruned wallets and as a companion to importprunedfunds. This will affect wallet balances.
|
|
@@ -5083,12 +4921,12 @@ Examples:
|
|
|
5083
4921
|
As a JSON-RPC call
|
|
5084
4922
|
> 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/
|
|
5085
4923
|
**/
|
|
5086
|
-
removeprunedfunds:'removeprunedfunds',
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
4924
|
+
removeprunedfunds:'removeprunedfunds',
|
|
4925
|
+
|
|
4926
|
+
|
|
4927
|
+
|
|
4928
|
+
|
|
4929
|
+
|
|
5092
4930
|
/** removetagfromaddress tag_name to_address (change_address) (asset_data)
|
|
5093
4931
|
|
|
5094
4932
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
@@ -5111,12 +4949,12 @@ Examples:
|
|
|
5111
4949
|
> neurai-cli removetagfromaddress "#TAG" "to_address" "change_address"
|
|
5112
4950
|
> 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/
|
|
5113
4951
|
**/
|
|
5114
|
-
removetagfromaddress:'removetagfromaddress',
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
4952
|
+
removetagfromaddress:'removetagfromaddress',
|
|
4953
|
+
|
|
4954
|
+
|
|
4955
|
+
|
|
4956
|
+
|
|
4957
|
+
|
|
5120
4958
|
/** requestsnapshot "asset_name" block_height
|
|
5121
4959
|
|
|
5122
4960
|
Schedules a snapshot of the specified asset at the specified block height.
|
|
@@ -5134,12 +4972,12 @@ Examples:
|
|
|
5134
4972
|
> neurai-cli requestsnapshot "TRONCO" 12345
|
|
5135
4973
|
> 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/
|
|
5136
4974
|
**/
|
|
5137
|
-
requestsnapshot:'requestsnapshot',
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
4975
|
+
requestsnapshot:'requestsnapshot',
|
|
4976
|
+
|
|
4977
|
+
|
|
4978
|
+
|
|
4979
|
+
|
|
4980
|
+
|
|
5143
4981
|
/** rescanblockchain ("start_height") ("stop_height")
|
|
5144
4982
|
|
|
5145
4983
|
Rescan the local blockchain for wallet related transactions.
|
|
@@ -5158,26 +4996,26 @@ Examples:
|
|
|
5158
4996
|
> neurai-cli rescanblockchain 100000 120000
|
|
5159
4997
|
> 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/
|
|
5160
4998
|
**/
|
|
5161
|
-
rescanblockchain:'rescanblockchain',
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
4999
|
+
rescanblockchain:'rescanblockchain',
|
|
5000
|
+
|
|
5001
|
+
|
|
5002
|
+
|
|
5003
|
+
|
|
5004
|
+
|
|
5167
5005
|
/** savemempool
|
|
5168
5006
|
|
|
5169
5007
|
Dumps the mempool to disk.
|
|
5170
5008
|
|
|
5171
5009
|
Examples:
|
|
5172
|
-
> neurai-cli savemempool
|
|
5010
|
+
> neurai-cli savemempool
|
|
5173
5011
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "savemempool", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
5174
5012
|
**/
|
|
5175
|
-
savemempool:'savemempool',
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5013
|
+
savemempool:'savemempool',
|
|
5014
|
+
|
|
5015
|
+
|
|
5016
|
+
|
|
5017
|
+
|
|
5018
|
+
|
|
5181
5019
|
/** selfrevokedepin "asset_name"
|
|
5182
5020
|
|
|
5183
5021
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
@@ -5211,12 +5049,12 @@ Examples:
|
|
|
5211
5049
|
> neurai-cli selfrevokedepin "&FRANCE"
|
|
5212
5050
|
> 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/
|
|
5213
5051
|
**/
|
|
5214
|
-
selfrevokedepin:'selfrevokedepin',
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5052
|
+
selfrevokedepin:'selfrevokedepin',
|
|
5053
|
+
|
|
5054
|
+
|
|
5055
|
+
|
|
5056
|
+
|
|
5057
|
+
|
|
5220
5058
|
/** sendfrom "fromaccount" "toaddress" amount ( minconf "comment" "comment_to" )
|
|
5221
5059
|
|
|
5222
5060
|
DEPRECATED (use sendtoaddress). Sent an amount from an account to a neurai address.
|
|
@@ -5229,10 +5067,10 @@ Arguments:
|
|
|
5229
5067
|
2. "toaddress" (string, required) The neurai address to send funds to.
|
|
5230
5068
|
3. amount (numeric or string, required) The amount in XNA (transaction fee is added on top).
|
|
5231
5069
|
4. minconf (numeric, optional, default=1) Only use funds with at least this many confirmations.
|
|
5232
|
-
5. "comment" (string, optional) A comment used to store what the transaction is for.
|
|
5070
|
+
5. "comment" (string, optional) A comment used to store what the transaction is for.
|
|
5233
5071
|
This is not part of the transaction, just kept in your wallet.
|
|
5234
|
-
6. "comment_to" (string, optional) An optional comment to store the name of the person or organization
|
|
5235
|
-
to which you're sending the transaction. This is not part of the transaction,
|
|
5072
|
+
6. "comment_to" (string, optional) An optional comment to store the name of the person or organization
|
|
5073
|
+
to which you're sending the transaction. This is not part of the transaction,
|
|
5236
5074
|
it is just kept in your wallet.
|
|
5237
5075
|
|
|
5238
5076
|
Result:
|
|
@@ -5249,12 +5087,12 @@ Send 0.01 from the tabby account to the given address, funds must have at least
|
|
|
5249
5087
|
As a json rpc call
|
|
5250
5088
|
> 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/
|
|
5251
5089
|
**/
|
|
5252
|
-
sendfrom:'sendfrom',
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5090
|
+
sendfrom:'sendfrom',
|
|
5091
|
+
|
|
5092
|
+
|
|
5093
|
+
|
|
5094
|
+
|
|
5095
|
+
|
|
5258
5096
|
/** sendfromaddress "from_address" "to_address" amount ( "comment" "comment_to" subtractfeefromamount replaceable conf_target "estimate_mode")
|
|
5259
5097
|
|
|
5260
5098
|
Send an amount from a specific address to a given address. All xna change will get sent back to the from_address
|
|
@@ -5263,10 +5101,10 @@ Arguments:
|
|
|
5263
5101
|
1. "from_address" (string, required) The neurai address to send from.
|
|
5264
5102
|
2. "to_address" (string, required) The neurai address to send to.
|
|
5265
5103
|
3. "amount" (numeric or string, required) The amount in XNA to send. eg 0.1
|
|
5266
|
-
4. "comment" (string, optional) A comment used to store what the transaction is for.
|
|
5104
|
+
4. "comment" (string, optional) A comment used to store what the transaction is for.
|
|
5267
5105
|
This is not part of the transaction, just kept in your wallet.
|
|
5268
|
-
5. "comment_to" (string, optional) A comment to store the name of the person or organization
|
|
5269
|
-
to which you're sending the transaction. This is not part of the
|
|
5106
|
+
5. "comment_to" (string, optional) A comment to store the name of the person or organization
|
|
5107
|
+
to which you're sending the transaction. This is not part of the
|
|
5270
5108
|
transaction, just kept in your wallet.
|
|
5271
5109
|
6. subtractfeefromamount (boolean, optional, default=false) The fee will be deducted from the amount being sent.
|
|
5272
5110
|
The recipient will receive less neurais than you enter in the amount field.
|
|
@@ -5285,12 +5123,12 @@ Examples:
|
|
|
5285
5123
|
> neurai-cli sendfromaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1 "" "" true
|
|
5286
5124
|
> 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/
|
|
5287
5125
|
**/
|
|
5288
|
-
sendfromaddress:'sendfromaddress',
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
|
|
5126
|
+
sendfromaddress:'sendfromaddress',
|
|
5127
|
+
|
|
5128
|
+
|
|
5129
|
+
|
|
5130
|
+
|
|
5131
|
+
|
|
5294
5132
|
/** sendmany "fromaccount" {"address":amount,...} ( minconf "comment" ["address",...] replaceable conf_target "estimate_mode")
|
|
5295
5133
|
|
|
5296
5134
|
Send multiple times. Amounts are double-precision floating point numbers.
|
|
@@ -5319,7 +5157,7 @@ Arguments:
|
|
|
5319
5157
|
"CONSERVATIVE"
|
|
5320
5158
|
|
|
5321
5159
|
Result:
|
|
5322
|
-
"txid" (string) The transaction id for the send. Only 1 transaction is created regardless of
|
|
5160
|
+
"txid" (string) The transaction id for the send. Only 1 transaction is created regardless of
|
|
5323
5161
|
the number of addresses.
|
|
5324
5162
|
|
|
5325
5163
|
Examples:
|
|
@@ -5336,12 +5174,12 @@ Send two amounts to two different addresses, subtract fee from amount:
|
|
|
5336
5174
|
As a json rpc call
|
|
5337
5175
|
> 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/
|
|
5338
5176
|
**/
|
|
5339
|
-
sendmany:'sendmany',
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5177
|
+
sendmany:'sendmany',
|
|
5178
|
+
|
|
5179
|
+
|
|
5180
|
+
|
|
5181
|
+
|
|
5182
|
+
|
|
5345
5183
|
/** sendmessage "channel_name" "ipfs_hash" (expire_time)
|
|
5346
5184
|
|
|
5347
5185
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
@@ -5361,12 +5199,12 @@ Examples:
|
|
|
5361
5199
|
> neurai-cli sendmessage "ASSET_NAME!" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
5362
5200
|
> neurai-cli sendmessage "ASSET_NAME!" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
5363
5201
|
**/
|
|
5364
|
-
sendmessage:'sendmessage',
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5202
|
+
sendmessage:'sendmessage',
|
|
5203
|
+
|
|
5204
|
+
|
|
5205
|
+
|
|
5206
|
+
|
|
5207
|
+
|
|
5370
5208
|
/** sendrawtransaction "hexstring" ( allowhighfees )
|
|
5371
5209
|
|
|
5372
5210
|
Submits raw transaction (serialized, hex-encoded) to local node and network.
|
|
@@ -5393,12 +5231,12 @@ Send the transaction (signed hex)
|
|
|
5393
5231
|
As a json rpc call
|
|
5394
5232
|
> 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/
|
|
5395
5233
|
**/
|
|
5396
|
-
sendrawtransaction:'sendrawtransaction',
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5234
|
+
sendrawtransaction:'sendrawtransaction',
|
|
5235
|
+
|
|
5236
|
+
|
|
5237
|
+
|
|
5238
|
+
|
|
5239
|
+
|
|
5402
5240
|
/** sendtoaddress "address" amount ( "comment" "comment_to" subtractfeefromamount replaceable conf_target "estimate_mode")
|
|
5403
5241
|
|
|
5404
5242
|
Send an amount to a given address.
|
|
@@ -5406,10 +5244,10 @@ Send an amount to a given address.
|
|
|
5406
5244
|
Arguments:
|
|
5407
5245
|
1. "address" (string, required) The neurai address to send to.
|
|
5408
5246
|
2. "amount" (numeric or string, required) The amount in XNA to send. eg 0.1
|
|
5409
|
-
3. "comment" (string, optional) A comment used to store what the transaction is for.
|
|
5247
|
+
3. "comment" (string, optional) A comment used to store what the transaction is for.
|
|
5410
5248
|
This is not part of the transaction, just kept in your wallet.
|
|
5411
|
-
4. "comment_to" (string, optional) A comment to store the name of the person or organization
|
|
5412
|
-
to which you're sending the transaction. This is not part of the
|
|
5249
|
+
4. "comment_to" (string, optional) A comment to store the name of the person or organization
|
|
5250
|
+
to which you're sending the transaction. This is not part of the
|
|
5413
5251
|
transaction, just kept in your wallet.
|
|
5414
5252
|
5. subtractfeefromamount (boolean, optional, default=false) The fee will be deducted from the amount being sent.
|
|
5415
5253
|
The recipient will receive less neurais than you enter in the amount field.
|
|
@@ -5428,12 +5266,12 @@ Examples:
|
|
|
5428
5266
|
> neurai-cli sendtoaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1 "" "" true
|
|
5429
5267
|
> 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/
|
|
5430
5268
|
**/
|
|
5431
|
-
sendtoaddress:'sendtoaddress',
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5269
|
+
sendtoaddress:'sendtoaddress',
|
|
5270
|
+
|
|
5271
|
+
|
|
5272
|
+
|
|
5273
|
+
|
|
5274
|
+
|
|
5437
5275
|
/** setaccount "address" "account"
|
|
5438
5276
|
|
|
5439
5277
|
DEPRECATED. Sets the account associated with the given address.
|
|
@@ -5446,12 +5284,12 @@ Examples:
|
|
|
5446
5284
|
> neurai-cli setaccount "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX" "tabby"
|
|
5447
5285
|
> 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/
|
|
5448
5286
|
**/
|
|
5449
|
-
setaccount:'setaccount',
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5287
|
+
setaccount:'setaccount',
|
|
5288
|
+
|
|
5289
|
+
|
|
5290
|
+
|
|
5291
|
+
|
|
5292
|
+
|
|
5455
5293
|
/** setban "subnet" "add|remove" (bantime) (absolute)
|
|
5456
5294
|
|
|
5457
5295
|
Attempts to add or remove an IP/Subnet from the banned list.
|
|
@@ -5467,12 +5305,12 @@ Examples:
|
|
|
5467
5305
|
> neurai-cli setban "192.168.0.0/24" "add"
|
|
5468
5306
|
> 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/
|
|
5469
5307
|
**/
|
|
5470
|
-
setban:'setban',
|
|
5471
|
-
|
|
5472
|
-
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
|
|
5308
|
+
setban:'setban',
|
|
5309
|
+
|
|
5310
|
+
|
|
5311
|
+
|
|
5312
|
+
|
|
5313
|
+
|
|
5476
5314
|
/** setgenerate generate ( genproclimit )
|
|
5477
5315
|
|
|
5478
5316
|
Set 'generate' true or false to turn generation on or off.
|
|
@@ -5489,7 +5327,7 @@ Set the generation on with a limit of one processor
|
|
|
5489
5327
|
> neurai-cli setgenerate true 1
|
|
5490
5328
|
|
|
5491
5329
|
Check the setting
|
|
5492
|
-
> neurai-cli getgenerate
|
|
5330
|
+
> neurai-cli getgenerate
|
|
5493
5331
|
|
|
5494
5332
|
Turn off generation
|
|
5495
5333
|
> neurai-cli setgenerate false
|
|
@@ -5497,12 +5335,12 @@ Turn off generation
|
|
|
5497
5335
|
Using json rpc
|
|
5498
5336
|
> 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/
|
|
5499
5337
|
**/
|
|
5500
|
-
setgenerate:'setgenerate',
|
|
5501
|
-
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
|
|
5505
|
-
|
|
5338
|
+
setgenerate:'setgenerate',
|
|
5339
|
+
|
|
5340
|
+
|
|
5341
|
+
|
|
5342
|
+
|
|
5343
|
+
|
|
5506
5344
|
/** setnetworkactive true|false
|
|
5507
5345
|
|
|
5508
5346
|
Disable/enable all p2p network activity.
|
|
@@ -5510,12 +5348,12 @@ Disable/enable all p2p network activity.
|
|
|
5510
5348
|
Arguments:
|
|
5511
5349
|
1. "state" (boolean, required) true to enable networking, false to disable
|
|
5512
5350
|
**/
|
|
5513
|
-
setnetworkactive:'setnetworkactive',
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
|
|
5351
|
+
setnetworkactive:'setnetworkactive',
|
|
5352
|
+
|
|
5353
|
+
|
|
5354
|
+
|
|
5355
|
+
|
|
5356
|
+
|
|
5519
5357
|
/** settxfee amount
|
|
5520
5358
|
|
|
5521
5359
|
Set the transaction fee per kB. Overwrites the paytxfee parameter.
|
|
@@ -5530,12 +5368,12 @@ Examples:
|
|
|
5530
5368
|
> neurai-cli settxfee 0.00001
|
|
5531
5369
|
> 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/
|
|
5532
5370
|
**/
|
|
5533
|
-
settxfee:'settxfee',
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
|
|
5371
|
+
settxfee:'settxfee',
|
|
5372
|
+
|
|
5373
|
+
|
|
5374
|
+
|
|
5375
|
+
|
|
5376
|
+
|
|
5539
5377
|
/** signmessage "address" "message"
|
|
5540
5378
|
|
|
5541
5379
|
Sign a message with the private key of an address
|
|
@@ -5561,12 +5399,12 @@ Verify the signature
|
|
|
5561
5399
|
As json rpc
|
|
5562
5400
|
> 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/
|
|
5563
5401
|
**/
|
|
5564
|
-
signmessage:'signmessage',
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5402
|
+
signmessage:'signmessage',
|
|
5403
|
+
|
|
5404
|
+
|
|
5405
|
+
|
|
5406
|
+
|
|
5407
|
+
|
|
5570
5408
|
/** signmessagewithprivkey "privkey" "message"
|
|
5571
5409
|
|
|
5572
5410
|
Sign a message with the private key of an address
|
|
@@ -5589,12 +5427,12 @@ Verify the signature
|
|
|
5589
5427
|
As json rpc
|
|
5590
5428
|
> 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/
|
|
5591
5429
|
**/
|
|
5592
|
-
signmessagewithprivkey:'signmessagewithprivkey',
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5430
|
+
signmessagewithprivkey:'signmessagewithprivkey',
|
|
5431
|
+
|
|
5432
|
+
|
|
5433
|
+
|
|
5434
|
+
|
|
5435
|
+
|
|
5598
5436
|
/** signrawtransaction "hexstring" ( [{"txid":"id","vout":n,"scriptPubKey":"hex","redeemScript":"hex"},...] ["privatekey1",...] sighashtype )
|
|
5599
5437
|
|
|
5600
5438
|
Sign inputs for raw transaction (serialized, hex-encoded).
|
|
@@ -5650,22 +5488,22 @@ Examples:
|
|
|
5650
5488
|
> neurai-cli signrawtransaction "myhex"
|
|
5651
5489
|
> 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/
|
|
5652
5490
|
**/
|
|
5653
|
-
signrawtransaction:'signrawtransaction',
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
|
|
5491
|
+
signrawtransaction:'signrawtransaction',
|
|
5492
|
+
|
|
5493
|
+
|
|
5494
|
+
|
|
5495
|
+
|
|
5496
|
+
|
|
5659
5497
|
/** stop
|
|
5660
5498
|
|
|
5661
5499
|
Stop Neurai server.
|
|
5662
5500
|
**/
|
|
5663
|
-
stop:'stop',
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5501
|
+
stop:'stop',
|
|
5502
|
+
|
|
5503
|
+
|
|
5504
|
+
|
|
5505
|
+
|
|
5506
|
+
|
|
5669
5507
|
/** submitblock "hexdata" ( "dummy" )
|
|
5670
5508
|
|
|
5671
5509
|
Attempts to submit new block to network.
|
|
@@ -5681,13 +5519,13 @@ Examples:
|
|
|
5681
5519
|
> neurai-cli submitblock "mydata"
|
|
5682
5520
|
> 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/
|
|
5683
5521
|
**/
|
|
5684
|
-
submitblock:'submitblock',
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
/** subscribetochannel
|
|
5522
|
+
submitblock:'submitblock',
|
|
5523
|
+
|
|
5524
|
+
|
|
5525
|
+
|
|
5526
|
+
|
|
5527
|
+
|
|
5528
|
+
/** subscribetochannel
|
|
5691
5529
|
|
|
5692
5530
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
5693
5531
|
https://github.com/NeuraiProject/rips/blob/master/rip-0005.mediawiki
|
|
@@ -5705,12 +5543,12 @@ Examples:
|
|
|
5705
5543
|
> neurai-cli subscribetochannel "ASSET_NAME!"
|
|
5706
5544
|
> 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/
|
|
5707
5545
|
**/
|
|
5708
|
-
subscribetochannel:'subscribetochannel',
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
|
|
5546
|
+
subscribetochannel:'subscribetochannel',
|
|
5547
|
+
|
|
5548
|
+
|
|
5549
|
+
|
|
5550
|
+
|
|
5551
|
+
|
|
5714
5552
|
/** testmempoolaccept ["rawtxs"] ( allowhighfees )
|
|
5715
5553
|
|
|
5716
5554
|
Returns if raw transaction (serialized, hex-encoded) would be accepted by mempool.
|
|
@@ -5747,12 +5585,12 @@ Test acceptance of the transaction (signed hex)
|
|
|
5747
5585
|
As a json rpc call
|
|
5748
5586
|
> 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/
|
|
5749
5587
|
**/
|
|
5750
|
-
testmempoolaccept:'testmempoolaccept',
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
5755
|
-
|
|
5588
|
+
testmempoolaccept:'testmempoolaccept',
|
|
5589
|
+
|
|
5590
|
+
|
|
5591
|
+
|
|
5592
|
+
|
|
5593
|
+
|
|
5756
5594
|
/** transfer "asset_name" qty "to_address" "message" expire_time "change_address" "asset_change_address"
|
|
5757
5595
|
|
|
5758
5596
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
@@ -5769,7 +5607,7 @@ Arguments:
|
|
|
5769
5607
|
7. "asset_change_address" (string, optional, default = "") the transactions Asset change will be sent to this address
|
|
5770
5608
|
|
|
5771
5609
|
Result:
|
|
5772
|
-
txid[
|
|
5610
|
+
txid[
|
|
5773
5611
|
txid
|
|
5774
5612
|
]
|
|
5775
5613
|
|
|
@@ -5777,12 +5615,12 @@ Examples:
|
|
|
5777
5615
|
> neurai-cli transfer "ASSET_NAME" 20 "address" "" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
5778
5616
|
> neurai-cli transfer "ASSET_NAME" 20 "address" "" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
5779
5617
|
**/
|
|
5780
|
-
transfer:'transfer',
|
|
5781
|
-
|
|
5782
|
-
|
|
5783
|
-
|
|
5784
|
-
|
|
5785
|
-
|
|
5618
|
+
transfer:'transfer',
|
|
5619
|
+
|
|
5620
|
+
|
|
5621
|
+
|
|
5622
|
+
|
|
5623
|
+
|
|
5786
5624
|
/** transferfromaddress "asset_name" "from_address" qty "to_address" "message" expire_time "xna_change_address" "asset_change_address"
|
|
5787
5625
|
|
|
5788
5626
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
@@ -5800,7 +5638,7 @@ Arguments:
|
|
|
5800
5638
|
8. "asset_change_address" (string, optional, default = "") the transaction Asset change will be sent to this address
|
|
5801
5639
|
|
|
5802
5640
|
Result:
|
|
5803
|
-
txid[
|
|
5641
|
+
txid[
|
|
5804
5642
|
txid
|
|
5805
5643
|
]
|
|
5806
5644
|
|
|
@@ -5808,12 +5646,12 @@ Examples:
|
|
|
5808
5646
|
> neurai-cli transferfromaddress "ASSET_NAME" "fromaddress" 20 "address" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E", 156545652
|
|
5809
5647
|
> 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/
|
|
5810
5648
|
**/
|
|
5811
|
-
transferfromaddress:'transferfromaddress',
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5649
|
+
transferfromaddress:'transferfromaddress',
|
|
5650
|
+
|
|
5651
|
+
|
|
5652
|
+
|
|
5653
|
+
|
|
5654
|
+
|
|
5817
5655
|
/** transferfromaddresses "asset_name" ["from_addresses"] qty "to_address" "message" expire_time "xna_change_address" "asset_change_address"
|
|
5818
5656
|
|
|
5819
5657
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
@@ -5831,7 +5669,7 @@ Arguments:
|
|
|
5831
5669
|
8. "asset_change_address" (string, optional, default = "") the transactions Asset change will be sent to this address
|
|
5832
5670
|
|
|
5833
5671
|
Result:
|
|
5834
|
-
txid[
|
|
5672
|
+
txid[
|
|
5835
5673
|
txid
|
|
5836
5674
|
]
|
|
5837
5675
|
|
|
@@ -5839,13 +5677,13 @@ Examples:
|
|
|
5839
5677
|
> neurai-cli transferfromaddresses "ASSET_NAME" '["fromaddress1", "fromaddress2"]' 20 "to_address" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 154652365
|
|
5840
5678
|
> 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/
|
|
5841
5679
|
**/
|
|
5842
|
-
transferfromaddresses:'transferfromaddresses',
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
|
|
5846
|
-
|
|
5847
|
-
|
|
5848
|
-
/** transferqualifier "qualifier_name" qty "to_address" ("change_address") ("message") (expire_time)
|
|
5680
|
+
transferfromaddresses:'transferfromaddresses',
|
|
5681
|
+
|
|
5682
|
+
|
|
5683
|
+
|
|
5684
|
+
|
|
5685
|
+
|
|
5686
|
+
/** transferqualifier "qualifier_name" qty "to_address" ("change_address") ("message") (expire_time)
|
|
5849
5687
|
|
|
5850
5688
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
5851
5689
|
|
|
@@ -5860,7 +5698,7 @@ Arguments:
|
|
|
5860
5698
|
6. "expire_time" (numeric, optional) UTC timestamp of when the message expires
|
|
5861
5699
|
|
|
5862
5700
|
Result:
|
|
5863
|
-
txid[
|
|
5701
|
+
txid[
|
|
5864
5702
|
txid
|
|
5865
5703
|
]
|
|
5866
5704
|
|
|
@@ -5868,12 +5706,12 @@ Examples:
|
|
|
5868
5706
|
> neurai-cli transferqualifier "#QUALIFIER" 20 "to_address" "" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
5869
5707
|
> neurai-cli transferqualifier "#QUALIFIER" 20 "to_address" "change_address" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
5870
5708
|
**/
|
|
5871
|
-
transferqualifier:'transferqualifier',
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
|
|
5709
|
+
transferqualifier:'transferqualifier',
|
|
5710
|
+
|
|
5711
|
+
|
|
5712
|
+
|
|
5713
|
+
|
|
5714
|
+
|
|
5877
5715
|
/** unfreezeaddress asset_name address (change_address) (asset_data)
|
|
5878
5716
|
|
|
5879
5717
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
@@ -5896,12 +5734,12 @@ Examples:
|
|
|
5896
5734
|
> neurai-cli unfreezeaddress "$RESTRICTED_ASSET" "address" "change_address"
|
|
5897
5735
|
> 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/
|
|
5898
5736
|
**/
|
|
5899
|
-
unfreezeaddress:'unfreezeaddress',
|
|
5900
|
-
|
|
5901
|
-
|
|
5902
|
-
|
|
5903
|
-
|
|
5904
|
-
|
|
5737
|
+
unfreezeaddress:'unfreezeaddress',
|
|
5738
|
+
|
|
5739
|
+
|
|
5740
|
+
|
|
5741
|
+
|
|
5742
|
+
|
|
5905
5743
|
/** unfreezedepin "asset_name" "address" ("change_address")
|
|
5906
5744
|
|
|
5907
5745
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
@@ -5925,12 +5763,12 @@ Examples:
|
|
|
5925
5763
|
> neurai-cli unfreezedepin "&FRANCE" "address"
|
|
5926
5764
|
> 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/
|
|
5927
5765
|
**/
|
|
5928
|
-
unfreezedepin:'unfreezedepin',
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
|
|
5933
|
-
|
|
5766
|
+
unfreezedepin:'unfreezedepin',
|
|
5767
|
+
|
|
5768
|
+
|
|
5769
|
+
|
|
5770
|
+
|
|
5771
|
+
|
|
5934
5772
|
/** unfreezerestrictedasset asset_name (change_address) (asset_data)
|
|
5935
5773
|
|
|
5936
5774
|
THIS COMMAND IS NOT YET ACTIVE! Restricted assets must be active
|
|
@@ -5952,13 +5790,13 @@ Examples:
|
|
|
5952
5790
|
> neurai-cli unfreezerestrictedasset "$RESTRICTED_ASSET" "change_address"
|
|
5953
5791
|
> 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/
|
|
5954
5792
|
**/
|
|
5955
|
-
unfreezerestrictedasset:'unfreezerestrictedasset',
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
/** unsubscribefromchannel
|
|
5793
|
+
unfreezerestrictedasset:'unfreezerestrictedasset',
|
|
5794
|
+
|
|
5795
|
+
|
|
5796
|
+
|
|
5797
|
+
|
|
5798
|
+
|
|
5799
|
+
/** unsubscribefromchannel
|
|
5962
5800
|
|
|
5963
5801
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
5964
5802
|
https://github.com/NeuraiProject/rips/blob/master/rip-0005.mediawiki
|
|
@@ -5976,12 +5814,12 @@ Examples:
|
|
|
5976
5814
|
> neurai-cli unsubscribefromchannel "ASSET_NAME!"
|
|
5977
5815
|
> 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/
|
|
5978
5816
|
**/
|
|
5979
|
-
unsubscribefromchannel:'unsubscribefromchannel',
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5817
|
+
unsubscribefromchannel:'unsubscribefromchannel',
|
|
5818
|
+
|
|
5819
|
+
|
|
5820
|
+
|
|
5821
|
+
|
|
5822
|
+
|
|
5985
5823
|
/** uptime
|
|
5986
5824
|
|
|
5987
5825
|
Returns the total uptime of the server.
|
|
@@ -5990,15 +5828,15 @@ Result:
|
|
|
5990
5828
|
ttt (numeric) The number of seconds that the server has been running
|
|
5991
5829
|
|
|
5992
5830
|
Examples:
|
|
5993
|
-
> neurai-cli uptime
|
|
5831
|
+
> neurai-cli uptime
|
|
5994
5832
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "uptime", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
5995
5833
|
**/
|
|
5996
|
-
uptime:'uptime',
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
5834
|
+
uptime:'uptime',
|
|
5835
|
+
|
|
5836
|
+
|
|
5837
|
+
|
|
5838
|
+
|
|
5839
|
+
|
|
6002
5840
|
/** validateaddress "address"
|
|
6003
5841
|
|
|
6004
5842
|
Return information about the given neurai address.
|
|
@@ -6038,12 +5876,12 @@ Examples:
|
|
|
6038
5876
|
> neurai-cli validateaddress "NLhdtwjgrcEkRqjJZkRY4sjhkJ93EytLeE"
|
|
6039
5877
|
> 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/
|
|
6040
5878
|
**/
|
|
6041
|
-
validateaddress:'validateaddress',
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
|
|
6045
|
-
|
|
6046
|
-
|
|
5879
|
+
validateaddress:'validateaddress',
|
|
5880
|
+
|
|
5881
|
+
|
|
5882
|
+
|
|
5883
|
+
|
|
5884
|
+
|
|
6047
5885
|
/** verifychain ( checklevel nblocks )
|
|
6048
5886
|
|
|
6049
5887
|
Verifies blockchain database.
|
|
@@ -6056,15 +5894,15 @@ Result:
|
|
|
6056
5894
|
true|false (boolean) Verified or not
|
|
6057
5895
|
|
|
6058
5896
|
Examples:
|
|
6059
|
-
> neurai-cli verifychain
|
|
5897
|
+
> neurai-cli verifychain
|
|
6060
5898
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "verifychain", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
6061
5899
|
**/
|
|
6062
|
-
verifychain:'verifychain',
|
|
6063
|
-
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
|
|
5900
|
+
verifychain:'verifychain',
|
|
5901
|
+
|
|
5902
|
+
|
|
5903
|
+
|
|
5904
|
+
|
|
5905
|
+
|
|
6068
5906
|
/** verifymessage "address" "signature" "message"
|
|
6069
5907
|
|
|
6070
5908
|
Verify a signed message
|
|
@@ -6091,12 +5929,12 @@ Verify the signature
|
|
|
6091
5929
|
As json rpc
|
|
6092
5930
|
> 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/
|
|
6093
5931
|
**/
|
|
6094
|
-
verifymessage:'verifymessage',
|
|
6095
|
-
|
|
6096
|
-
|
|
6097
|
-
|
|
6098
|
-
|
|
6099
|
-
|
|
5932
|
+
verifymessage:'verifymessage',
|
|
5933
|
+
|
|
5934
|
+
|
|
5935
|
+
|
|
5936
|
+
|
|
5937
|
+
|
|
6100
5938
|
/** verifytxoutproof "proof"
|
|
6101
5939
|
|
|
6102
5940
|
Verifies that a proof points to a transaction in a block, returning the transaction it commits to
|
|
@@ -6108,13 +5946,13 @@ Arguments:
|
|
|
6108
5946
|
Result:
|
|
6109
5947
|
["txid"] (array, strings) The txid(s) which the proof commits to, or empty array if the proof is invalid
|
|
6110
5948
|
**/
|
|
6111
|
-
verifytxoutproof:'verifytxoutproof',
|
|
6112
|
-
|
|
6113
|
-
|
|
6114
|
-
|
|
6115
|
-
|
|
6116
|
-
|
|
6117
|
-
/** viewallmessagechannels
|
|
5949
|
+
verifytxoutproof:'verifytxoutproof',
|
|
5950
|
+
|
|
5951
|
+
|
|
5952
|
+
|
|
5953
|
+
|
|
5954
|
+
|
|
5955
|
+
/** viewallmessagechannels
|
|
6118
5956
|
|
|
6119
5957
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
6120
5958
|
https://github.com/NeuraiProject/rips/blob/master/rip-0005.mediawiki
|
|
@@ -6127,16 +5965,16 @@ Result:[
|
|
|
6127
5965
|
]
|
|
6128
5966
|
|
|
6129
5967
|
Examples:
|
|
6130
|
-
> neurai-cli viewallmessagechannels
|
|
5968
|
+
> neurai-cli viewallmessagechannels
|
|
6131
5969
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewallmessagechannels", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
6132
5970
|
**/
|
|
6133
|
-
viewallmessagechannels:'viewallmessagechannels',
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
|
|
6139
|
-
/** viewallmessages
|
|
5971
|
+
viewallmessagechannels:'viewallmessagechannels',
|
|
5972
|
+
|
|
5973
|
+
|
|
5974
|
+
|
|
5975
|
+
|
|
5976
|
+
|
|
5977
|
+
/** viewallmessages
|
|
6140
5978
|
|
|
6141
5979
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
6142
5980
|
https://github.com/NeuraiProject/rips/blob/master/rip-0005.mediawiki
|
|
@@ -6153,16 +5991,16 @@ Result:
|
|
|
6153
5991
|
"Expire UTC Time:" (Date, optional) If the message contains an expire date that is too large, the UTC number will be displayed
|
|
6154
5992
|
|
|
6155
5993
|
Examples:
|
|
6156
|
-
> neurai-cli viewallmessages
|
|
5994
|
+
> neurai-cli viewallmessages
|
|
6157
5995
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewallmessages", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
6158
5996
|
**/
|
|
6159
|
-
viewallmessages:'viewallmessages',
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
/** viewmyrestrictedaddresses
|
|
5997
|
+
viewallmessages:'viewallmessages',
|
|
5998
|
+
|
|
5999
|
+
|
|
6000
|
+
|
|
6001
|
+
|
|
6002
|
+
|
|
6003
|
+
/** viewmyrestrictedaddresses
|
|
6166
6004
|
|
|
6167
6005
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
6168
6006
|
https://github.com/NeuraiProject/rips/blob/master/rip-0005.mediawiki
|
|
@@ -6178,16 +6016,16 @@ Result:
|
|
|
6178
6016
|
}...
|
|
6179
6017
|
|
|
6180
6018
|
Examples:
|
|
6181
|
-
> neurai-cli viewmyrestrictedaddresses
|
|
6019
|
+
> neurai-cli viewmyrestrictedaddresses
|
|
6182
6020
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewmyrestrictedaddresses", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
6183
6021
|
**/
|
|
6184
|
-
viewmyrestrictedaddresses:'viewmyrestrictedaddresses',
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
/** viewmytaggedaddresses
|
|
6022
|
+
viewmyrestrictedaddresses:'viewmyrestrictedaddresses',
|
|
6023
|
+
|
|
6024
|
+
|
|
6025
|
+
|
|
6026
|
+
|
|
6027
|
+
|
|
6028
|
+
/** viewmytaggedaddresses
|
|
6191
6029
|
|
|
6192
6030
|
THIS COMMAND IS NOT YET ACTIVE!
|
|
6193
6031
|
https://github.com/NeuraiProject/rips/blob/master/rip-0005.mediawiki
|
|
@@ -6203,7 +6041,7 @@ Result:
|
|
|
6203
6041
|
}...
|
|
6204
6042
|
|
|
6205
6043
|
Examples:
|
|
6206
|
-
> neurai-cli viewmytaggedaddresses
|
|
6044
|
+
> neurai-cli viewmytaggedaddresses
|
|
6207
6045
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewmytaggedaddresses", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
6208
6046
|
**/
|
|
6209
6047
|
viewmytaggedaddresses:'viewmytaggedaddresses',
|