@neuraiproject/neurai-rpc 0.4.1 → 0.4.2
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/LICENSE +1 -1
- package/README.md +5 -5
- package/createDocs.mjs +2 -2
- package/dist/index.cjs +4505 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.mjs +4499 -0
- package/dist/index.mjs.map +1 -0
- package/dist/types.d.ts +177 -0
- package/dist/types.d.ts.map +1 -0
- package/docs.json +163 -163
- package/docs.ts +498 -498
- package/index.ts +2 -2
- package/neurai_methods.md +160 -160
- package/package.json +3 -3
- package/test.js +56 -0
package/docs.ts
CHANGED
|
@@ -187,8 +187,8 @@ Arguments:
|
|
|
187
187
|
Result:
|
|
188
188
|
|
|
189
189
|
Examples:
|
|
190
|
-
>
|
|
191
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "abandontransaction", "params": ["1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
190
|
+
> neurai-cli abandontransaction "1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"
|
|
191
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "abandontransaction", "params": ["1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
192
192
|
**/
|
|
193
193
|
abandontransaction: "abandontransaction",
|
|
194
194
|
|
|
@@ -199,41 +199,41 @@ Stops current wallet rescan triggered e.g. by an importprivkey call.
|
|
|
199
199
|
Examples:
|
|
200
200
|
|
|
201
201
|
Import a private key
|
|
202
|
-
>
|
|
202
|
+
> neurai-cli importprivkey "mykey"
|
|
203
203
|
|
|
204
204
|
Abort the running wallet rescan
|
|
205
|
-
>
|
|
205
|
+
> neurai-cli abortrescan
|
|
206
206
|
|
|
207
207
|
As a JSON-RPC call
|
|
208
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "abortrescan", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
208
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "abortrescan", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
209
209
|
**/
|
|
210
210
|
abortrescan: "abortrescan",
|
|
211
211
|
|
|
212
212
|
/** addmultisigaddress nrequired ["key",...] ( "account" )
|
|
213
213
|
|
|
214
214
|
Add a nrequired-to-sign multisignature address to the wallet.
|
|
215
|
-
Each key is a
|
|
215
|
+
Each key is a Neurai address or hex-encoded public key.
|
|
216
216
|
If 'account' is specified (DEPRECATED), assign address to that account.
|
|
217
217
|
|
|
218
218
|
Arguments:
|
|
219
219
|
1. nrequired (numeric, required) The number of required signatures out of the n keys or addresses.
|
|
220
|
-
2. "keys" (string, required) A json array of
|
|
220
|
+
2. "keys" (string, required) A json array of neurai addresses or hex-encoded public keys
|
|
221
221
|
[
|
|
222
|
-
"address" (string)
|
|
222
|
+
"address" (string) neurai address or hex-encoded public key
|
|
223
223
|
...,
|
|
224
224
|
]
|
|
225
225
|
3. "account" (string, optional) DEPRECATED. An account to assign the addresses to.
|
|
226
226
|
|
|
227
227
|
Result:
|
|
228
|
-
"address" (string) A
|
|
228
|
+
"address" (string) A neurai address associated with the keys.
|
|
229
229
|
|
|
230
230
|
Examples:
|
|
231
231
|
|
|
232
232
|
Add a multisig address from 2 addresses
|
|
233
|
-
>
|
|
233
|
+
> neurai-cli addmultisigaddress 2 "[\"16sSauSf5pF2UkUwvKGq4qjNRzBZYqgEL5\",\"171sgjn4YtPu27adkKGrdDwzRTxnRkBfKV\"]"
|
|
234
234
|
|
|
235
235
|
As json rpc call
|
|
236
|
-
> 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:
|
|
236
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "addmultisigaddress", "params": [2, "[\"16sSauSf5pF2UkUwvKGq4qjNRzBZYqgEL5\",\"171sgjn4YtPu27adkKGrdDwzRTxnRkBfKV\"]"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
237
237
|
**/
|
|
238
238
|
addmultisigaddress: "addmultisigaddress",
|
|
239
239
|
|
|
@@ -249,8 +249,8 @@ Arguments:
|
|
|
249
249
|
2. "command" (string, required) 'add' to add a node to the list, 'remove' to remove a node from the list, 'onetry' to try a connection to the node once
|
|
250
250
|
|
|
251
251
|
Examples:
|
|
252
|
-
>
|
|
253
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "addnode", "params": ["192.168.0.6:8767", "onetry"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
252
|
+
> neurai-cli addnode "192.168.0.6:8767" "onetry"
|
|
253
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "addnode", "params": ["192.168.0.6:8767", "onetry"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
254
254
|
**/
|
|
255
255
|
addnode: "addnode",
|
|
256
256
|
|
|
@@ -268,10 +268,10 @@ Result:
|
|
|
268
268
|
"txid" (string) The transaction id
|
|
269
269
|
|
|
270
270
|
Examples:
|
|
271
|
-
>
|
|
272
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "addtagtoaddress", "params": ["#TAG" "to_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
273
|
-
>
|
|
274
|
-
> 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:
|
|
271
|
+
> neurai-cli addtagtoaddress "#TAG" "to_address"
|
|
272
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "addtagtoaddress", "params": ["#TAG" "to_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
273
|
+
> neurai-cli addtagtoaddress "#TAG" "to_address" "change_address"
|
|
274
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "addtagtoaddress", "params": ["#TAG" "to_address" "change_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
275
275
|
**/
|
|
276
276
|
addtagtoaddress: "addtagtoaddress",
|
|
277
277
|
|
|
@@ -297,8 +297,8 @@ Arguments:
|
|
|
297
297
|
1. "destination" (string) The destination directory or file
|
|
298
298
|
|
|
299
299
|
Examples:
|
|
300
|
-
>
|
|
301
|
-
> 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:
|
|
300
|
+
> neurai-cli backupwallet "backup.dat"
|
|
301
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "backupwallet", "params": ["backup.dat"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
302
302
|
**/
|
|
303
303
|
backupwallet: "backupwallet",
|
|
304
304
|
|
|
@@ -319,8 +319,8 @@ Result:
|
|
|
319
319
|
}
|
|
320
320
|
|
|
321
321
|
Examples:
|
|
322
|
-
>
|
|
323
|
-
> 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:
|
|
322
|
+
> neurai-cli cancelsnapshotrequest "TRONCO" 12345
|
|
323
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "cancelsnapshotrequest", "params": ["PHATSTACKS" 34987] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
324
324
|
**/
|
|
325
325
|
cancelsnapshotrequest: "cancelsnapshotrequest",
|
|
326
326
|
|
|
@@ -336,8 +336,8 @@ Result:
|
|
|
336
336
|
"true/false", (boolean) If the address is frozen
|
|
337
337
|
|
|
338
338
|
Examples:
|
|
339
|
-
>
|
|
340
|
-
> 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:
|
|
339
|
+
> neurai-cli checkaddressrestriction "address" "restricted_name"
|
|
340
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "checkaddressrestriction", "params": ["address" "restricted_name"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
341
341
|
**/
|
|
342
342
|
checkaddressrestriction: "checkaddressrestriction",
|
|
343
343
|
|
|
@@ -353,8 +353,8 @@ Result:
|
|
|
353
353
|
"true/false", (boolean) If the address has the tag
|
|
354
354
|
|
|
355
355
|
Examples:
|
|
356
|
-
>
|
|
357
|
-
> 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:
|
|
356
|
+
> neurai-cli checkaddresstag "address" "tag_name"
|
|
357
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "checkaddresstag", "params": ["address" "tag_name"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
358
358
|
**/
|
|
359
359
|
checkaddresstag: "checkaddresstag",
|
|
360
360
|
|
|
@@ -369,8 +369,8 @@ Result:
|
|
|
369
369
|
"true/false", (boolean) If the restricted asset is frozen globally
|
|
370
370
|
|
|
371
371
|
Examples:
|
|
372
|
-
>
|
|
373
|
-
> 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:
|
|
372
|
+
> neurai-cli checkglobalrestriction "restricted_name"
|
|
373
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "checkglobalrestriction", "params": ["restricted_name"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
374
374
|
**/
|
|
375
375
|
checkglobalrestriction: "checkglobalrestriction",
|
|
376
376
|
|
|
@@ -379,8 +379,8 @@ Examples:
|
|
|
379
379
|
Clear all banned IPs.
|
|
380
380
|
|
|
381
381
|
Examples:
|
|
382
|
-
>
|
|
383
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearbanned", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
382
|
+
> neurai-cli clearbanned
|
|
383
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearbanned", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
384
384
|
**/
|
|
385
385
|
clearbanned: "clearbanned",
|
|
386
386
|
|
|
@@ -389,8 +389,8 @@ Examples:
|
|
|
389
389
|
Removes all transaction from the mempool
|
|
390
390
|
|
|
391
391
|
Examples:
|
|
392
|
-
>
|
|
393
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearmempool", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
392
|
+
> neurai-cli clearmempool
|
|
393
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearmempool", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
394
394
|
**/
|
|
395
395
|
clearmempool: "clearmempool",
|
|
396
396
|
|
|
@@ -403,8 +403,8 @@ Result:[
|
|
|
403
403
|
]
|
|
404
404
|
|
|
405
405
|
Examples:
|
|
406
|
-
>
|
|
407
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearmessages", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
406
|
+
> neurai-cli clearmessages
|
|
407
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearmessages", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
408
408
|
**/
|
|
409
409
|
clearmessages: "clearmessages",
|
|
410
410
|
|
|
@@ -424,7 +424,7 @@ Result:
|
|
|
424
424
|
"hex" (string) The hex-encoded raw transaction with signature(s)
|
|
425
425
|
|
|
426
426
|
Examples:
|
|
427
|
-
>
|
|
427
|
+
> neurai-cli combinerawtransaction ["myhex1", "myhex2", "myhex3"]
|
|
428
428
|
**/
|
|
429
429
|
combinerawtransaction: "combinerawtransaction",
|
|
430
430
|
|
|
@@ -435,9 +435,9 @@ It returns a json object with the address and redeemScript.
|
|
|
435
435
|
|
|
436
436
|
Arguments:
|
|
437
437
|
1. nrequired (numeric, required) The number of required signatures out of the n keys or addresses.
|
|
438
|
-
2. "keys" (string, required) A json array of keys which are
|
|
438
|
+
2. "keys" (string, required) A json array of keys which are neurai addresses or hex-encoded public keys
|
|
439
439
|
[
|
|
440
|
-
"key" (string)
|
|
440
|
+
"key" (string) neurai address or hex-encoded public key
|
|
441
441
|
,...
|
|
442
442
|
]
|
|
443
443
|
|
|
@@ -450,10 +450,10 @@ Result:
|
|
|
450
450
|
Examples:
|
|
451
451
|
|
|
452
452
|
Create a multisig address from 2 addresses
|
|
453
|
-
>
|
|
453
|
+
> neurai-cli createmultisig 2 "[\"16sSauSf5pF2UkUwvKGq4qjNRzBZYqgEL5\",\"171sgjn4YtPu27adkKGrdDwzRTxnRkBfKV\"]"
|
|
454
454
|
|
|
455
455
|
As a json rpc call
|
|
456
|
-
> 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:
|
|
456
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "createmultisig", "params": [2, "[\"16sSauSf5pF2UkUwvKGq4qjNRzBZYqgEL5\",\"171sgjn4YtPu27adkKGrdDwzRTxnRkBfKV\"]"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
457
457
|
**/
|
|
458
458
|
createmultisig: "createmultisig",
|
|
459
459
|
|
|
@@ -523,7 +523,7 @@ Arguments:
|
|
|
523
523
|
]
|
|
524
524
|
2. "outputs" (object, required) a json object with outputs
|
|
525
525
|
{
|
|
526
|
-
"address": (string, required) The destination
|
|
526
|
+
"address": (string, required) The destination neurai address.
|
|
527
527
|
Each output must have a different address.
|
|
528
528
|
x.xxx (number or string, required) The XNA amount
|
|
529
529
|
or
|
|
@@ -692,15 +692,15 @@ Result:
|
|
|
692
692
|
"transaction" (string) hex string of the transaction
|
|
693
693
|
|
|
694
694
|
Examples:
|
|
695
|
-
>
|
|
696
|
-
>
|
|
697
|
-
>
|
|
698
|
-
>
|
|
699
|
-
>
|
|
700
|
-
>
|
|
701
|
-
>
|
|
702
|
-
>
|
|
703
|
-
> 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:
|
|
695
|
+
> neurai-cli createrawtransaction "[{\"txid\":\"mycoin\",\"vout\":0}]" "{\"address\":0.01}"
|
|
696
|
+
> neurai-cli createrawtransaction "[{\"txid\":\"mycoin\",\"vout\":0}]" "{\"data\":\"00010203\"}"
|
|
697
|
+
> neurai-cli createrawtransaction "[{\"txid\":\"mycoin\",\"vout\":0}]" "{\"RXissueAssetXXXXXXXXXXXXXXXXXhhZGt\":500,\"change_address\":change_amount,\"issuer_address\":{\"issue\":{\"asset_name\":\"MYASSET\",\"asset_quantity\":1000000,\"units\":1,\"reissuable\":0,\"has_ipfs\":1,\"ipfs_hash\":\"43f81c6f2c0593bde5a85e09ae662816eca80797\"}}}"
|
|
698
|
+
> neurai-cli createrawtransaction "[{\"txid\":\"mycoin\",\"vout\":0}]" "{\"RXissueRestrictedXXXXXXXXXXXXzJZ1q\":1500,\"change_address\":change_amount,\"issuer_address\":{\"issue_restricted\":{\"asset_name\":\"$MYASSET\",\"asset_quantity\":1000000,\"verifier_string\":\"#TAG & !KYC\",\"units\":1,\"reissuable\":0,\"has_ipfs\":1,\"ipfs_hash\":\"43f81c6f2c0593bde5a85e09ae662816eca80797\"}}}"
|
|
699
|
+
> neurai-cli createrawtransaction "[{\"txid\":\"mycoin\",\"vout\":0}]" "{\"RXissueUniqueAssetXXXXXXXXXXWEAe58\":20,\"change_address\":change_amount,\"issuer_address\":{\"issue_unique\":{\"root_name\":\"MYASSET\",\"asset_tags\":[\"ALPHA\",\"BETA\"],\"ipfs_hashes\":[\"43f81c6f2c0593bde5a85e09ae662816eca80797\",\"43f81c6f2c0593bde5a85e09ae662816eca80797\"]}}}"
|
|
700
|
+
> neurai-cli createrawtransaction "[{\"txid\":\"mycoin\",\"vout\":0},{\"txid\":\"myasset\",\"vout\":0}]" "{\"address\":{\"transfer\":{\"MYASSET\":50}}}"
|
|
701
|
+
> neurai-cli createrawtransaction "[{\"txid\":\"mycoin\",\"vout\":0},{\"txid\":\"myasset\",\"vout\":0}]" "{\"address\":{\"transferwithmessage\":{\"MYASSET\":50,\"message\":\"hash\",\"expire_time\": utc_time}}}"
|
|
702
|
+
> neurai-cli createrawtransaction "[{\"txid\":\"mycoin\",\"vout\":0},{\"txid\":\"myownership\",\"vout\":0}]" "{\"issuer_address\":{\"reissue\":{\"asset_name\":\"MYASSET\",\"asset_quantity\":2000000}}}"
|
|
703
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "createrawtransaction", "params": ["[{\"txid\":\"mycoin\",\"vout\":0}]", "{\"data\":\"00010203\"}"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
704
704
|
**/
|
|
705
705
|
createrawtransaction: "createrawtransaction",
|
|
706
706
|
|
|
@@ -729,8 +729,8 @@ Result:
|
|
|
729
729
|
}
|
|
730
730
|
|
|
731
731
|
Examples:
|
|
732
|
-
>
|
|
733
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "decodeblock", "params": ["xxxx"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
732
|
+
> neurai-cli decodeblock "xxxx"
|
|
733
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "decodeblock", "params": ["xxxx"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
734
734
|
**/
|
|
735
735
|
decodeblock: "decodeblock",
|
|
736
736
|
|
|
@@ -777,7 +777,7 @@ Result:
|
|
|
777
777
|
"message" : "message", (string optional) the message if one was sent
|
|
778
778
|
"expire_time" : n, (numeric optional) the message epoch expiration time if one was set
|
|
779
779
|
"addresses" : [ (json array of string)
|
|
780
|
-
"12tvKAXCxZjSmdNbao16dKXC8tRWfcF5oc" (string)
|
|
780
|
+
"12tvKAXCxZjSmdNbao16dKXC8tRWfcF5oc" (string) neurai address
|
|
781
781
|
,...
|
|
782
782
|
]
|
|
783
783
|
}
|
|
@@ -787,8 +787,8 @@ Result:
|
|
|
787
787
|
}
|
|
788
788
|
|
|
789
789
|
Examples:
|
|
790
|
-
>
|
|
791
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "decoderawtransaction", "params": ["hexstring"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
790
|
+
> neurai-cli decoderawtransaction "hexstring"
|
|
791
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "decoderawtransaction", "params": ["hexstring"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
792
792
|
**/
|
|
793
793
|
decoderawtransaction: "decoderawtransaction",
|
|
794
794
|
|
|
@@ -811,7 +811,7 @@ Result:
|
|
|
811
811
|
"expire_time" : n, (numeric optional ) the message epoch expiration time if one was set
|
|
812
812
|
"reqSigs": n, (numeric) The required signatures
|
|
813
813
|
"addresses": [ (json array of string)
|
|
814
|
-
"address" (string)
|
|
814
|
+
"address" (string) neurai address
|
|
815
815
|
,...
|
|
816
816
|
],
|
|
817
817
|
"p2sh":"address", (string) address of P2SH script wrapping this redeem script (not returned if the script is already a P2SH).
|
|
@@ -826,8 +826,8 @@ Result:
|
|
|
826
826
|
}
|
|
827
827
|
|
|
828
828
|
Examples:
|
|
829
|
-
>
|
|
830
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "decodescript", "params": ["hexstring"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
829
|
+
> neurai-cli decodescript "hexstring"
|
|
830
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "decodescript", "params": ["hexstring"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
831
831
|
**/
|
|
832
832
|
decodescript: "decodescript",
|
|
833
833
|
|
|
@@ -844,10 +844,10 @@ Arguments:
|
|
|
844
844
|
2. "nodeid" (number, optional) The node ID (see getpeerinfo for node IDs)
|
|
845
845
|
|
|
846
846
|
Examples:
|
|
847
|
-
>
|
|
848
|
-
>
|
|
849
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "disconnectnode", "params": ["192.168.0.6:8767"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
850
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "disconnectnode", "params": ["", 1] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
847
|
+
> neurai-cli disconnectnode "192.168.0.6:8767"
|
|
848
|
+
> neurai-cli disconnectnode "" 1
|
|
849
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "disconnectnode", "params": ["192.168.0.6:8767"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
850
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "disconnectnode", "params": ["", 1] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
851
851
|
**/
|
|
852
852
|
disconnectnode: "disconnectnode",
|
|
853
853
|
|
|
@@ -882,10 +882,10 @@ Result:
|
|
|
882
882
|
}
|
|
883
883
|
|
|
884
884
|
Examples:
|
|
885
|
-
>
|
|
886
|
-
>
|
|
887
|
-
> 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:
|
|
888
|
-
> 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:
|
|
885
|
+
> neurai-cli distributereward "TRONCO" 12345 "XNA" 1000
|
|
886
|
+
> neurai-cli distributereward "PHATSTACKS" 12345 "DIVIDENDS" 1000 "mwN7xC3yomYdvJuVXkVC7ymY9wNBjWNduD,n4Rf18edydDaRBh7t6gHUbuByLbWEoWUTg"
|
|
887
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "distributereward", "params": ["TRONCO" 34987 "DIVIDENDS" 100000] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
888
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "distributereward", "params": ["PHATSTACKS" 34987 "XNA" 100000 "mwN7xC3yomYdvJuVXkVC7ymY9wNBjWNduD,n4Rf18edydDaRBh7t6gHUbuByLbWEoWUTg"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
889
889
|
**/
|
|
890
890
|
distributereward: "distributereward",
|
|
891
891
|
|
|
@@ -895,15 +895,15 @@ Reveals the private key corresponding to 'address'.
|
|
|
895
895
|
Then the importprivkey can be used with this output
|
|
896
896
|
|
|
897
897
|
Arguments:
|
|
898
|
-
1. "address" (string, required) The
|
|
898
|
+
1. "address" (string, required) The neurai address for the private key
|
|
899
899
|
|
|
900
900
|
Result:
|
|
901
901
|
"key" (string) The private key
|
|
902
902
|
|
|
903
903
|
Examples:
|
|
904
|
-
>
|
|
905
|
-
>
|
|
906
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "dumpprivkey", "params": ["myaddress"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
904
|
+
> neurai-cli dumpprivkey "myaddress"
|
|
905
|
+
> neurai-cli importprivkey "mykey"
|
|
906
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "dumpprivkey", "params": ["myaddress"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
907
907
|
**/
|
|
908
908
|
dumpprivkey: "dumpprivkey",
|
|
909
909
|
|
|
@@ -912,7 +912,7 @@ Examples:
|
|
|
912
912
|
Dumps all wallet keys in a human-readable format to a server-side file. This does not allow overwriting existing files.
|
|
913
913
|
|
|
914
914
|
Arguments:
|
|
915
|
-
1. "filename" (string, required) The filename with path (either absolute or relative to
|
|
915
|
+
1. "filename" (string, required) The filename with path (either absolute or relative to neuraid)
|
|
916
916
|
|
|
917
917
|
Result:
|
|
918
918
|
{ (json object)
|
|
@@ -920,8 +920,8 @@ Result:
|
|
|
920
920
|
}
|
|
921
921
|
|
|
922
922
|
Examples:
|
|
923
|
-
>
|
|
924
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "dumpwallet", "params": ["test"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
923
|
+
> neurai-cli dumpwallet "test"
|
|
924
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "dumpwallet", "params": ["test"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
925
925
|
**/
|
|
926
926
|
dumpwallet: "dumpwallet",
|
|
927
927
|
|
|
@@ -940,19 +940,19 @@ Arguments:
|
|
|
940
940
|
Examples:
|
|
941
941
|
|
|
942
942
|
Encrypt your wallet
|
|
943
|
-
>
|
|
943
|
+
> neurai-cli encryptwallet "my pass phrase"
|
|
944
944
|
|
|
945
|
-
Now set the passphrase to use the wallet, such as for signing or sending
|
|
946
|
-
>
|
|
945
|
+
Now set the passphrase to use the wallet, such as for signing or sending neurai
|
|
946
|
+
> neurai-cli walletpassphrase "my pass phrase"
|
|
947
947
|
|
|
948
948
|
Now we can do something like sign
|
|
949
|
-
>
|
|
949
|
+
> neurai-cli signmessage "address" "test message"
|
|
950
950
|
|
|
951
951
|
Now lock the wallet again by removing the passphrase
|
|
952
|
-
>
|
|
952
|
+
> neurai-cli walletlock
|
|
953
953
|
|
|
954
954
|
As a json rpc call
|
|
955
|
-
> 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:
|
|
955
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "encryptwallet", "params": ["my pass phrase"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
956
956
|
**/
|
|
957
957
|
encryptwallet: "encryptwallet",
|
|
958
958
|
|
|
@@ -975,7 +975,7 @@ have been observed to make an estimate.
|
|
|
975
975
|
a fee that is high enough to get reliably included in the next block.
|
|
976
976
|
|
|
977
977
|
Example:
|
|
978
|
-
>
|
|
978
|
+
> neurai-cli estimatefee 6
|
|
979
979
|
**/
|
|
980
980
|
estimatefee: "estimatefee",
|
|
981
981
|
|
|
@@ -1011,7 +1011,7 @@ An error is returned if not enough transactions and blocks
|
|
|
1011
1011
|
have been observed to make an estimate for any number of blocks.
|
|
1012
1012
|
|
|
1013
1013
|
Example:
|
|
1014
|
-
>
|
|
1014
|
+
> neurai-cli estimatesmartfee 6
|
|
1015
1015
|
**/
|
|
1016
1016
|
estimatesmartfee: "estimatesmartfee",
|
|
1017
1017
|
|
|
@@ -1029,10 +1029,10 @@ Result:
|
|
|
1029
1029
|
"txid" (string) The transaction id
|
|
1030
1030
|
|
|
1031
1031
|
Examples:
|
|
1032
|
-
>
|
|
1033
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "freezeaddress", "params": ["$RESTRICTED_ASSET" "address"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1034
|
-
>
|
|
1035
|
-
> 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:
|
|
1032
|
+
> neurai-cli freezeaddress "$RESTRICTED_ASSET" "address"
|
|
1033
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "freezeaddress", "params": ["$RESTRICTED_ASSET" "address"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1034
|
+
> neurai-cli freezeaddress "$RESTRICTED_ASSET" "address" "change_address"
|
|
1035
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "freezeaddress", "params": ["$RESTRICTED_ASSET" "address" "change_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1036
1036
|
**/
|
|
1037
1037
|
freezeaddress: "freezeaddress",
|
|
1038
1038
|
|
|
@@ -1049,10 +1049,10 @@ Result:
|
|
|
1049
1049
|
"txid" (string) The transaction id
|
|
1050
1050
|
|
|
1051
1051
|
Examples:
|
|
1052
|
-
>
|
|
1053
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "freezerestrictedasset", "params": ["$RESTRICTED_ASSET"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1054
|
-
>
|
|
1055
|
-
> 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:
|
|
1052
|
+
> neurai-cli freezerestrictedasset "$RESTRICTED_ASSET"
|
|
1053
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "freezerestrictedasset", "params": ["$RESTRICTED_ASSET"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1054
|
+
> neurai-cli freezerestrictedasset "$RESTRICTED_ASSET" "change_address"
|
|
1055
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "freezerestrictedasset", "params": ["$RESTRICTED_ASSET" "change_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1056
1056
|
**/
|
|
1057
1057
|
freezerestrictedasset: "freezerestrictedasset",
|
|
1058
1058
|
|
|
@@ -1073,7 +1073,7 @@ Arguments:
|
|
|
1073
1073
|
1. "hexstring" (string, required) The hex string of the raw transaction
|
|
1074
1074
|
2. options (object, optional)
|
|
1075
1075
|
{
|
|
1076
|
-
"changeAddress" (string, optional, default pool address) The
|
|
1076
|
+
"changeAddress" (string, optional, default pool address) The neurai address to receive the change
|
|
1077
1077
|
"changePosition" (numeric, optional, default random) The index of the change output
|
|
1078
1078
|
"includeWatching" (boolean, optional, default false) Also select inputs which are watch only
|
|
1079
1079
|
"lockUnspents" (boolean, optional, default false) Lock selected unspent outputs
|
|
@@ -1081,7 +1081,7 @@ Arguments:
|
|
|
1081
1081
|
"subtractFeeFromOutputs" (array, optional) A json array of integers.
|
|
1082
1082
|
The fee will be equally deducted from the amount of each specified output.
|
|
1083
1083
|
The outputs are specified by their zero-based index, before any change output is added.
|
|
1084
|
-
Those recipients will receive less
|
|
1084
|
+
Those recipients will receive less neurais than you enter in their corresponding amount field.
|
|
1085
1085
|
If no outputs are specified here, the sender pays the fee.
|
|
1086
1086
|
[vout_index,...]
|
|
1087
1087
|
Allows this transaction to be replaced by a transaction with higher fees
|
|
@@ -1103,16 +1103,16 @@ Result:
|
|
|
1103
1103
|
Examples:
|
|
1104
1104
|
|
|
1105
1105
|
Create a transaction with no inputs
|
|
1106
|
-
>
|
|
1106
|
+
> neurai-cli createrawtransaction "[]" "{\"myaddress\":0.01}"
|
|
1107
1107
|
|
|
1108
1108
|
Add sufficient unsigned inputs to meet the output value
|
|
1109
|
-
>
|
|
1109
|
+
> neurai-cli fundrawtransaction "rawtransactionhex"
|
|
1110
1110
|
|
|
1111
1111
|
Sign the transaction
|
|
1112
|
-
>
|
|
1112
|
+
> neurai-cli signrawtransaction "fundedtransactionhex"
|
|
1113
1113
|
|
|
1114
1114
|
Send the transaction
|
|
1115
|
-
>
|
|
1115
|
+
> neurai-cli sendrawtransaction "signedtransactionhex"
|
|
1116
1116
|
**/
|
|
1117
1117
|
fundrawtransaction: "fundrawtransaction",
|
|
1118
1118
|
|
|
@@ -1130,7 +1130,7 @@ Result:
|
|
|
1130
1130
|
Examples:
|
|
1131
1131
|
|
|
1132
1132
|
Generate 11 blocks
|
|
1133
|
-
>
|
|
1133
|
+
> neurai-cli generate 11
|
|
1134
1134
|
**/
|
|
1135
1135
|
generate: "generate",
|
|
1136
1136
|
|
|
@@ -1140,7 +1140,7 @@ Mine blocks immediately to a specified address (before the RPC call returns)
|
|
|
1140
1140
|
|
|
1141
1141
|
Arguments:
|
|
1142
1142
|
1. nblocks (numeric, required) How many blocks are generated immediately.
|
|
1143
|
-
2. address (string, required) The address to send the newly generated
|
|
1143
|
+
2. address (string, required) The address to send the newly generated neurai to.
|
|
1144
1144
|
3. maxtries (numeric, optional) How many iterations to try (default = 1000000).
|
|
1145
1145
|
|
|
1146
1146
|
Result:
|
|
@@ -1149,7 +1149,7 @@ Result:
|
|
|
1149
1149
|
Examples:
|
|
1150
1150
|
|
|
1151
1151
|
Generate 11 blocks to myaddress
|
|
1152
|
-
>
|
|
1152
|
+
> neurai-cli generatetoaddress 11 "myaddress"
|
|
1153
1153
|
**/
|
|
1154
1154
|
generatetoaddress: "generatetoaddress",
|
|
1155
1155
|
|
|
@@ -1158,32 +1158,32 @@ Generate 11 blocks to myaddress
|
|
|
1158
1158
|
DEPRECATED. Returns the account associated with the given address.
|
|
1159
1159
|
|
|
1160
1160
|
Arguments:
|
|
1161
|
-
1. "address" (string, required) The
|
|
1161
|
+
1. "address" (string, required) The neurai address for account lookup.
|
|
1162
1162
|
|
|
1163
1163
|
Result:
|
|
1164
1164
|
"accountname" (string) the account address
|
|
1165
1165
|
|
|
1166
1166
|
Examples:
|
|
1167
|
-
>
|
|
1168
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaccount", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1167
|
+
> neurai-cli getaccount "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX"
|
|
1168
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaccount", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1169
1169
|
**/
|
|
1170
1170
|
getaccount: "getaccount",
|
|
1171
1171
|
|
|
1172
1172
|
/** getaccountaddress "account"
|
|
1173
1173
|
|
|
1174
|
-
DEPRECATED. Returns the current
|
|
1174
|
+
DEPRECATED. Returns the current Neurai address for receiving payments to this account.
|
|
1175
1175
|
|
|
1176
1176
|
Arguments:
|
|
1177
1177
|
1. "account" (string, required) The account name for the address. It can also be set to the empty string "" to represent the default account. The account does not need to exist, it will be created and a new address created if there is no account by the given name.
|
|
1178
1178
|
|
|
1179
1179
|
Result:
|
|
1180
|
-
"address" (string) The account
|
|
1180
|
+
"address" (string) The account neurai address
|
|
1181
1181
|
|
|
1182
1182
|
Examples:
|
|
1183
|
-
>
|
|
1184
|
-
>
|
|
1185
|
-
>
|
|
1186
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaccountaddress", "params": ["myaccount"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1183
|
+
> neurai-cli getaccountaddress
|
|
1184
|
+
> neurai-cli getaccountaddress ""
|
|
1185
|
+
> neurai-cli getaccountaddress "myaccount"
|
|
1186
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaccountaddress", "params": ["myaccount"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1187
1187
|
**/
|
|
1188
1188
|
getaccountaddress: "getaccountaddress",
|
|
1189
1189
|
|
|
@@ -1202,7 +1202,7 @@ Result:
|
|
|
1202
1202
|
"connected" : true|false, (boolean) If connected
|
|
1203
1203
|
"addresses" : [ (list of objects) Only when connected = true
|
|
1204
1204
|
{
|
|
1205
|
-
"address" : "192.168.0.201:8767", (string) The
|
|
1205
|
+
"address" : "192.168.0.201:8767", (string) The neurai server IP and port we're connected to
|
|
1206
1206
|
"connected" : "outbound" (string) connection, inbound or outbound
|
|
1207
1207
|
}
|
|
1208
1208
|
]
|
|
@@ -1211,8 +1211,8 @@ Result:
|
|
|
1211
1211
|
]
|
|
1212
1212
|
|
|
1213
1213
|
Examples:
|
|
1214
|
-
>
|
|
1215
|
-
> 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:
|
|
1214
|
+
> neurai-cli getaddednodeinfo "192.168.0.201"
|
|
1215
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddednodeinfo", "params": ["192.168.0.201"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1216
1216
|
**/
|
|
1217
1217
|
getaddednodeinfo: "getaddednodeinfo",
|
|
1218
1218
|
|
|
@@ -1239,17 +1239,17 @@ Result:
|
|
|
1239
1239
|
OR
|
|
1240
1240
|
[
|
|
1241
1241
|
{
|
|
1242
|
-
"assetName" (string) The asset associated with the balance (XNA for
|
|
1242
|
+
"assetName" (string) The asset associated with the balance (XNA for Neurai)
|
|
1243
1243
|
"balance" (string) The current balance in satoshis
|
|
1244
1244
|
"received" (string) The total number of satoshis received (including change)
|
|
1245
1245
|
},...
|
|
1246
1246
|
|
|
1247
1247
|
]
|
|
1248
1248
|
Examples:
|
|
1249
|
-
>
|
|
1250
|
-
>
|
|
1251
|
-
> 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:
|
|
1252
|
-
> 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:
|
|
1249
|
+
> neurai-cli getaddressbalance '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}'
|
|
1250
|
+
> neurai-cli getaddressbalance '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}', true
|
|
1251
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressbalance", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1252
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressbalance", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}, true] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1253
1253
|
**/
|
|
1254
1254
|
getaddressbalance: "getaddressbalance",
|
|
1255
1255
|
|
|
@@ -1273,7 +1273,7 @@ Arguments:
|
|
|
1273
1273
|
Result:
|
|
1274
1274
|
[
|
|
1275
1275
|
{
|
|
1276
|
-
"assetName" (string) The asset associated with the deltas (XNA for
|
|
1276
|
+
"assetName" (string) The asset associated with the deltas (XNA for Neurai)
|
|
1277
1277
|
"satoshis" (number) The difference of satoshis
|
|
1278
1278
|
"txid" (string) The related txid
|
|
1279
1279
|
"index" (number) The related input or output index
|
|
@@ -1283,10 +1283,10 @@ Result:
|
|
|
1283
1283
|
]
|
|
1284
1284
|
|
|
1285
1285
|
Examples:
|
|
1286
|
-
>
|
|
1287
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressdeltas", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1288
|
-
>
|
|
1289
|
-
> 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:
|
|
1286
|
+
> neurai-cli getaddressdeltas '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}'
|
|
1287
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressdeltas", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1288
|
+
> neurai-cli getaddressdeltas '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"],"assetName":"MY_ASSET"}'
|
|
1289
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressdeltas", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"],"assetName":"MY_ASSET"}] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1290
1290
|
**/
|
|
1291
1291
|
getaddressdeltas: "getaddressdeltas",
|
|
1292
1292
|
|
|
@@ -1299,13 +1299,13 @@ Arguments:
|
|
|
1299
1299
|
|
|
1300
1300
|
Result:
|
|
1301
1301
|
[ (json array of string)
|
|
1302
|
-
"address" (string) a
|
|
1302
|
+
"address" (string) a neurai address associated with the given account
|
|
1303
1303
|
,...
|
|
1304
1304
|
]
|
|
1305
1305
|
|
|
1306
1306
|
Examples:
|
|
1307
|
-
>
|
|
1308
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressesbyaccount", "params": ["tabby"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1307
|
+
> neurai-cli getaddressesbyaccount "tabby"
|
|
1308
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressesbyaccount", "params": ["tabby"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1309
1309
|
**/
|
|
1310
1310
|
getaddressesbyaccount: "getaddressesbyaccount",
|
|
1311
1311
|
|
|
@@ -1327,7 +1327,7 @@ Result:
|
|
|
1327
1327
|
[
|
|
1328
1328
|
{
|
|
1329
1329
|
"address" (string) The base58check encoded address
|
|
1330
|
-
"assetName" (string) The name of the associated asset (XNA for
|
|
1330
|
+
"assetName" (string) The name of the associated asset (XNA for Neurai)
|
|
1331
1331
|
"txid" (string) The related txid
|
|
1332
1332
|
"index" (number) The related input or output index
|
|
1333
1333
|
"satoshis" (number) The difference of satoshis
|
|
@@ -1338,10 +1338,10 @@ Result:
|
|
|
1338
1338
|
]
|
|
1339
1339
|
|
|
1340
1340
|
Examples:
|
|
1341
|
-
>
|
|
1342
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressmempool", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1343
|
-
>
|
|
1344
|
-
> 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:
|
|
1341
|
+
> neurai-cli getaddressmempool '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}'
|
|
1342
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressmempool", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1343
|
+
> neurai-cli getaddressmempool '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}', true
|
|
1344
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressmempool", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}, true] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1345
1345
|
**/
|
|
1346
1346
|
getaddressmempool: "getaddressmempool",
|
|
1347
1347
|
|
|
@@ -1368,10 +1368,10 @@ Result:
|
|
|
1368
1368
|
]
|
|
1369
1369
|
|
|
1370
1370
|
Examples:
|
|
1371
|
-
>
|
|
1372
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddresstxids", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1373
|
-
>
|
|
1374
|
-
> 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:
|
|
1371
|
+
> neurai-cli getaddresstxids '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}'
|
|
1372
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddresstxids", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1373
|
+
> neurai-cli getaddresstxids '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}', true
|
|
1374
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddresstxids", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}, true] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1375
1375
|
**/
|
|
1376
1376
|
getaddresstxids: "getaddresstxids",
|
|
1377
1377
|
|
|
@@ -1394,7 +1394,7 @@ Result
|
|
|
1394
1394
|
[
|
|
1395
1395
|
{
|
|
1396
1396
|
"address" (string) The address base58check encoded
|
|
1397
|
-
"assetName" (string) The asset associated with the UTXOs (XNA for
|
|
1397
|
+
"assetName" (string) The asset associated with the UTXOs (XNA for Neurai)
|
|
1398
1398
|
"txid" (string) The output txid
|
|
1399
1399
|
"height" (number) The block height
|
|
1400
1400
|
"outputIndex" (number) The output index
|
|
@@ -1404,10 +1404,10 @@ Result
|
|
|
1404
1404
|
]
|
|
1405
1405
|
|
|
1406
1406
|
Examples:
|
|
1407
|
-
>
|
|
1408
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressutxos", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1409
|
-
>
|
|
1410
|
-
> 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:
|
|
1407
|
+
> neurai-cli getaddressutxos '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}'
|
|
1408
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressutxos", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1409
|
+
> neurai-cli getaddressutxos '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"],"assetName":"MY_ASSET"}'
|
|
1410
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressutxos", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"],"assetName":"MY_ASSET"}] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1411
1411
|
**/
|
|
1412
1412
|
getaddressutxos: "getaddressutxos",
|
|
1413
1413
|
|
|
@@ -1431,8 +1431,8 @@ Result:
|
|
|
1431
1431
|
}
|
|
1432
1432
|
|
|
1433
1433
|
Examples:
|
|
1434
|
-
>
|
|
1435
|
-
> 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:
|
|
1434
|
+
> neurai-cli getassetdata "ASSET_NAME"
|
|
1435
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getassetdata", "params": ["ASSET_NAME"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1436
1436
|
**/
|
|
1437
1437
|
getassetdata: "getassetdata",
|
|
1438
1438
|
|
|
@@ -1465,13 +1465,13 @@ amount (numeric) The total amount in XNA received for this account.
|
|
|
1465
1465
|
Examples:
|
|
1466
1466
|
|
|
1467
1467
|
The total amount in the wallet with 1 or more confirmations
|
|
1468
|
-
>
|
|
1468
|
+
> neurai-cli getbalance
|
|
1469
1469
|
|
|
1470
1470
|
The total amount in the wallet at least 6 blocks confirmed
|
|
1471
|
-
>
|
|
1471
|
+
> neurai-cli getbalance "*" 6
|
|
1472
1472
|
|
|
1473
1473
|
As a json rpc call
|
|
1474
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getbalance", "params": ["*", 6] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1474
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getbalance", "params": ["*", 6] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1475
1475
|
**/
|
|
1476
1476
|
getbalance: "getbalance",
|
|
1477
1477
|
|
|
@@ -1483,8 +1483,8 @@ Result:
|
|
|
1483
1483
|
"hex" (string) the block hash hex encoded
|
|
1484
1484
|
|
|
1485
1485
|
Examples:
|
|
1486
|
-
>
|
|
1487
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getbestblockhash", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1486
|
+
> neurai-cli getbestblockhash
|
|
1487
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getbestblockhash", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1488
1488
|
**/
|
|
1489
1489
|
getbestblockhash: "getbestblockhash",
|
|
1490
1490
|
|
|
@@ -1536,8 +1536,8 @@ Result (for verbosity = 2):
|
|
|
1536
1536
|
}
|
|
1537
1537
|
|
|
1538
1538
|
Examples:
|
|
1539
|
-
>
|
|
1540
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblock", "params": ["00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1539
|
+
> neurai-cli getblock "00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"
|
|
1540
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblock", "params": ["00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1541
1541
|
**/
|
|
1542
1542
|
getblock: "getblock",
|
|
1543
1543
|
|
|
@@ -1588,8 +1588,8 @@ Result:
|
|
|
1588
1588
|
}
|
|
1589
1589
|
|
|
1590
1590
|
Examples:
|
|
1591
|
-
>
|
|
1592
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockchaininfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1591
|
+
> neurai-cli getblockchaininfo
|
|
1592
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockchaininfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1593
1593
|
**/
|
|
1594
1594
|
getblockchaininfo: "getblockchaininfo",
|
|
1595
1595
|
|
|
@@ -1601,8 +1601,8 @@ Result:
|
|
|
1601
1601
|
n (numeric) The current block count
|
|
1602
1602
|
|
|
1603
1603
|
Examples:
|
|
1604
|
-
>
|
|
1605
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockcount", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1604
|
+
> neurai-cli getblockcount
|
|
1605
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockcount", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1606
1606
|
**/
|
|
1607
1607
|
getblockcount: "getblockcount",
|
|
1608
1608
|
|
|
@@ -1617,8 +1617,8 @@ Result:
|
|
|
1617
1617
|
"hash" (string) The block hash
|
|
1618
1618
|
|
|
1619
1619
|
Examples:
|
|
1620
|
-
>
|
|
1621
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockhash", "params": [1000] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1620
|
+
> neurai-cli getblockhash 1000
|
|
1621
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockhash", "params": [1000] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1622
1622
|
**/
|
|
1623
1623
|
getblockhash: "getblockhash",
|
|
1624
1624
|
|
|
@@ -1647,9 +1647,9 @@ Result:
|
|
|
1647
1647
|
]
|
|
1648
1648
|
|
|
1649
1649
|
Examples:
|
|
1650
|
-
>
|
|
1651
|
-
> 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:
|
|
1652
|
-
>
|
|
1650
|
+
> neurai-cli getblockhashes 1231614698 1231024505
|
|
1651
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockhashes", "params": [1231614698, 1231024505] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1652
|
+
> neurai-cli getblockhashes 1231614698 1231024505 '{"noOrphans":false, "logicalTimes":true}'
|
|
1653
1653
|
**/
|
|
1654
1654
|
getblockhashes: "getblockhashes",
|
|
1655
1655
|
|
|
@@ -1684,8 +1684,8 @@ Result (for verbose=false):
|
|
|
1684
1684
|
"data" (string) A string that is serialized, hex-encoded data for block 'hash'.
|
|
1685
1685
|
|
|
1686
1686
|
Examples:
|
|
1687
|
-
>
|
|
1688
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockheader", "params": ["00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1687
|
+
> neurai-cli getblockheader "00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"
|
|
1688
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockheader", "params": ["00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1689
1689
|
**/
|
|
1690
1690
|
getblockheader: "getblockheader",
|
|
1691
1691
|
|
|
@@ -1694,10 +1694,10 @@ Examples:
|
|
|
1694
1694
|
If the request parameters include a 'mode' key, that is used to explicitly select between the default 'template' request or a 'proposal'.
|
|
1695
1695
|
It returns data needed to construct a block to work on.
|
|
1696
1696
|
For full specification, see BIPs 22, 23, 9, and 145:
|
|
1697
|
-
https://github.com/
|
|
1698
|
-
https://github.com/
|
|
1699
|
-
https://github.com/
|
|
1700
|
-
https://github.com/
|
|
1697
|
+
https://github.com/neurai/bips/blob/master/bip-0022.mediawiki
|
|
1698
|
+
https://github.com/neurai/bips/blob/master/bip-0023.mediawiki
|
|
1699
|
+
https://github.com/neurai/bips/blob/master/bip-0009.mediawiki#getblocktemplate_changes
|
|
1700
|
+
https://github.com/neurai/bips/blob/master/bip-0145.mediawiki
|
|
1701
1701
|
|
|
1702
1702
|
Arguments:
|
|
1703
1703
|
1. template_request (json object, optional) A json object in the following spec
|
|
@@ -1761,8 +1761,8 @@ Result:
|
|
|
1761
1761
|
}
|
|
1762
1762
|
|
|
1763
1763
|
Examples:
|
|
1764
|
-
>
|
|
1765
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblocktemplate", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1764
|
+
> neurai-cli getblocktemplate
|
|
1765
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblocktemplate", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1766
1766
|
**/
|
|
1767
1767
|
getblocktemplate: "getblocktemplate",
|
|
1768
1768
|
|
|
@@ -1782,8 +1782,8 @@ Result:
|
|
|
1782
1782
|
]
|
|
1783
1783
|
|
|
1784
1784
|
Examples:
|
|
1785
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getcacheinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1786
|
-
>
|
|
1785
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getcacheinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1786
|
+
> neurai-cli getcacheinfo
|
|
1787
1787
|
**/
|
|
1788
1788
|
getcacheinfo: "getcacheinfo",
|
|
1789
1789
|
|
|
@@ -1813,8 +1813,8 @@ Possible values for status:
|
|
|
1813
1813
|
5. "active" This is the tip of the active main chain, which is certainly valid
|
|
1814
1814
|
|
|
1815
1815
|
Examples:
|
|
1816
|
-
>
|
|
1817
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getchaintips", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1816
|
+
> neurai-cli getchaintips
|
|
1817
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getchaintips", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1818
1818
|
**/
|
|
1819
1819
|
getchaintips: "getchaintips",
|
|
1820
1820
|
|
|
@@ -1837,8 +1837,8 @@ Result:
|
|
|
1837
1837
|
}
|
|
1838
1838
|
|
|
1839
1839
|
Examples:
|
|
1840
|
-
>
|
|
1841
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getchaintxstats", "params": [2016] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1840
|
+
> neurai-cli getchaintxstats
|
|
1841
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getchaintxstats", "params": [2016] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1842
1842
|
**/
|
|
1843
1843
|
getchaintxstats: "getchaintxstats",
|
|
1844
1844
|
|
|
@@ -1850,8 +1850,8 @@ Result:
|
|
|
1850
1850
|
n (numeric) The connection count
|
|
1851
1851
|
|
|
1852
1852
|
Examples:
|
|
1853
|
-
>
|
|
1854
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getconnectioncount", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1853
|
+
> neurai-cli getconnectioncount
|
|
1854
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getconnectioncount", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1855
1855
|
**/
|
|
1856
1856
|
getconnectioncount: "getconnectioncount",
|
|
1857
1857
|
|
|
@@ -1863,8 +1863,8 @@ Result:
|
|
|
1863
1863
|
n.nnn (numeric) the proof-of-work difficulty as a multiple of the minimum difficulty.
|
|
1864
1864
|
|
|
1865
1865
|
Examples:
|
|
1866
|
-
>
|
|
1867
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getdifficulty", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1866
|
+
> neurai-cli getdifficulty
|
|
1867
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getdifficulty", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1868
1868
|
**/
|
|
1869
1869
|
getdifficulty: "getdifficulty",
|
|
1870
1870
|
|
|
@@ -1880,25 +1880,25 @@ Arguments:
|
|
|
1880
1880
|
5. "exception_addresses" (string, optional) Ownership addresses that should be excluded
|
|
1881
1881
|
|
|
1882
1882
|
Examples:
|
|
1883
|
-
>
|
|
1884
|
-
>
|
|
1885
|
-
> 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:
|
|
1886
|
-
> 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:
|
|
1883
|
+
> neurai-cli getdistributestatus "TRONCO" 12345 "XNA" 1000
|
|
1884
|
+
> neurai-cli getdistributestatus "PHATSTACKS" 12345 "DIVIDENDS" 1000 "mwN7xC3yomYdvJuVXkVC7ymY9wNBjWNduD,n4Rf18edydDaRBh7t6gHUbuByLbWEoWUTg"
|
|
1885
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getdistributestatus", "params": ["TRONCO" 34987 "DIVIDENDS" 100000] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1886
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getdistributestatus", "params": ["PHATSTACKS" 34987 "XNA" 100000 "mwN7xC3yomYdvJuVXkVC7ymY9wNBjWNduD,n4Rf18edydDaRBh7t6gHUbuByLbWEoWUTg"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1887
1887
|
**/
|
|
1888
1888
|
getdistributestatus: "getdistributestatus",
|
|
1889
1889
|
|
|
1890
1890
|
/** getgenerate
|
|
1891
1891
|
|
|
1892
1892
|
Return if the server is set to generate coins or not. The default is false.
|
|
1893
|
-
It is set with the command line argument -gen (or
|
|
1893
|
+
It is set with the command line argument -gen (or neurai.conf setting gen)
|
|
1894
1894
|
It can also be set with the setgenerate call.
|
|
1895
1895
|
|
|
1896
1896
|
Result
|
|
1897
1897
|
true|false (boolean) If the server is set to generate coins or not
|
|
1898
1898
|
|
|
1899
1899
|
Examples:
|
|
1900
|
-
>
|
|
1901
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getgenerate", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1900
|
+
> neurai-cli getgenerate
|
|
1901
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getgenerate", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1902
1902
|
**/
|
|
1903
1903
|
getgenerate: "getgenerate",
|
|
1904
1904
|
|
|
@@ -1912,7 +1912,7 @@ Result:
|
|
|
1912
1912
|
"version": xxxxx, (numeric) the server version
|
|
1913
1913
|
"protocolversion": xxxxx, (numeric) the protocol version
|
|
1914
1914
|
"walletversion": xxxxx, (numeric) the wallet version
|
|
1915
|
-
"balance": xxxxxxx, (numeric) the total
|
|
1915
|
+
"balance": xxxxxxx, (numeric) the total Neurai balance of the wallet
|
|
1916
1916
|
"blocks": xxxxxx, (numeric) the current number of blocks processed in the server
|
|
1917
1917
|
"timeoffset": xxxxx, (numeric) the time offset
|
|
1918
1918
|
"connections": xxxxx, (numeric) the number of connections
|
|
@@ -1928,8 +1928,8 @@ Result:
|
|
|
1928
1928
|
}
|
|
1929
1929
|
|
|
1930
1930
|
Examples:
|
|
1931
|
-
>
|
|
1932
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1931
|
+
> neurai-cli getinfo
|
|
1932
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1933
1933
|
**/
|
|
1934
1934
|
getinfo: "getinfo",
|
|
1935
1935
|
|
|
@@ -1947,8 +1947,8 @@ Arguments
|
|
|
1947
1947
|
Result:
|
|
1948
1948
|
|
|
1949
1949
|
Examples:
|
|
1950
|
-
>
|
|
1951
|
-
> 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:
|
|
1950
|
+
> neurai-cli getkawpowhash "header_hash" "mix_hash" "0x100000" 2456
|
|
1951
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getkawpowhash", "params": ["header_hash" "mix_hash" "0x100000" 2456] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1952
1952
|
**/
|
|
1953
1953
|
getkawpowhash: "getkawpowhash",
|
|
1954
1954
|
|
|
@@ -1966,8 +1966,8 @@ Result:
|
|
|
1966
1966
|
}
|
|
1967
1967
|
|
|
1968
1968
|
Examples:
|
|
1969
|
-
>
|
|
1970
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmasterkeyinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1969
|
+
> neurai-cli getmasterkeyinfo
|
|
1970
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmasterkeyinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1971
1971
|
**/
|
|
1972
1972
|
getmasterkeyinfo: "getmasterkeyinfo",
|
|
1973
1973
|
|
|
@@ -1994,8 +1994,8 @@ Result (mode "mallocinfo"):
|
|
|
1994
1994
|
"<malloc version="1">..."
|
|
1995
1995
|
|
|
1996
1996
|
Examples:
|
|
1997
|
-
>
|
|
1998
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmemoryinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1997
|
+
> neurai-cli getmemoryinfo
|
|
1998
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmemoryinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1999
1999
|
**/
|
|
2000
2000
|
getmemoryinfo: "getmemoryinfo",
|
|
2001
2001
|
|
|
@@ -2035,8 +2035,8 @@ Result (for verbose=true):
|
|
|
2035
2035
|
}
|
|
2036
2036
|
|
|
2037
2037
|
Examples:
|
|
2038
|
-
>
|
|
2039
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempoolancestors", "params": ["mytxid"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2038
|
+
> neurai-cli getmempoolancestors "mytxid"
|
|
2039
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempoolancestors", "params": ["mytxid"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2040
2040
|
**/
|
|
2041
2041
|
getmempoolancestors: "getmempoolancestors",
|
|
2042
2042
|
|
|
@@ -2076,8 +2076,8 @@ Result (for verbose=true):
|
|
|
2076
2076
|
}
|
|
2077
2077
|
|
|
2078
2078
|
Examples:
|
|
2079
|
-
>
|
|
2080
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempooldescendants", "params": ["mytxid"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2079
|
+
> neurai-cli getmempooldescendants "mytxid"
|
|
2080
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempooldescendants", "params": ["mytxid"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2081
2081
|
**/
|
|
2082
2082
|
getmempooldescendants: "getmempooldescendants",
|
|
2083
2083
|
|
|
@@ -2108,8 +2108,8 @@ Result:
|
|
|
2108
2108
|
}
|
|
2109
2109
|
|
|
2110
2110
|
Examples:
|
|
2111
|
-
>
|
|
2112
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempoolentry", "params": ["mytxid"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2111
|
+
> neurai-cli getmempoolentry "mytxid"
|
|
2112
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempoolentry", "params": ["mytxid"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2113
2113
|
**/
|
|
2114
2114
|
getmempoolentry: "getmempoolentry",
|
|
2115
2115
|
|
|
@@ -2127,8 +2127,8 @@ Result:
|
|
|
2127
2127
|
}
|
|
2128
2128
|
|
|
2129
2129
|
Examples:
|
|
2130
|
-
>
|
|
2131
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempoolinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2130
|
+
> neurai-cli getmempoolinfo
|
|
2131
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempoolinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2132
2132
|
**/
|
|
2133
2133
|
getmempoolinfo: "getmempoolinfo",
|
|
2134
2134
|
|
|
@@ -2146,12 +2146,12 @@ Result:
|
|
|
2146
2146
|
"pooledtx": n (numeric) The size of the mempool
|
|
2147
2147
|
"chain": "xxxx", (string) current network name as defined in BIP70 (main, test, regtest)
|
|
2148
2148
|
"warnings": "..." (string) any network and blockchain warnings
|
|
2149
|
-
"errors": "..." (string) DEPRECATED. Same as warnings. Only shown when
|
|
2149
|
+
"errors": "..." (string) DEPRECATED. Same as warnings. Only shown when neuraid is started with -deprecatedrpc=getmininginfo
|
|
2150
2150
|
}
|
|
2151
2151
|
|
|
2152
2152
|
Examples:
|
|
2153
|
-
>
|
|
2154
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmininginfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2153
|
+
> neurai-cli getmininginfo
|
|
2154
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmininginfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2155
2155
|
**/
|
|
2156
2156
|
getmininginfo: "getmininginfo",
|
|
2157
2157
|
|
|
@@ -2165,8 +2165,8 @@ Result:
|
|
|
2165
2165
|
"passphrase:" (optional) Only show if passphrase was used when creating the wallet
|
|
2166
2166
|
|
|
2167
2167
|
Examples:
|
|
2168
|
-
>
|
|
2169
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmywords", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2168
|
+
> neurai-cli getmywords
|
|
2169
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmywords", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2170
2170
|
**/
|
|
2171
2171
|
getmywords: "getmywords",
|
|
2172
2172
|
|
|
@@ -2192,8 +2192,8 @@ Result:
|
|
|
2192
2192
|
}
|
|
2193
2193
|
|
|
2194
2194
|
Examples:
|
|
2195
|
-
>
|
|
2196
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnettotals", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2195
|
+
> neurai-cli getnettotals
|
|
2196
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnettotals", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2197
2197
|
**/
|
|
2198
2198
|
getnettotals: "getnettotals",
|
|
2199
2199
|
|
|
@@ -2211,8 +2211,8 @@ Result:
|
|
|
2211
2211
|
x (numeric) Hashes per second estimated
|
|
2212
2212
|
|
|
2213
2213
|
Examples:
|
|
2214
|
-
>
|
|
2215
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnetworkhashps", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2214
|
+
> neurai-cli getnetworkhashps
|
|
2215
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnetworkhashps", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2216
2216
|
**/
|
|
2217
2217
|
getnetworkhashps: "getnetworkhashps",
|
|
2218
2218
|
|
|
@@ -2253,14 +2253,14 @@ Result:
|
|
|
2253
2253
|
}
|
|
2254
2254
|
|
|
2255
2255
|
Examples:
|
|
2256
|
-
>
|
|
2257
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnetworkinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2256
|
+
> neurai-cli getnetworkinfo
|
|
2257
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnetworkinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2258
2258
|
**/
|
|
2259
2259
|
getnetworkinfo: "getnetworkinfo",
|
|
2260
2260
|
|
|
2261
2261
|
/** getnewaddress ( "account" )
|
|
2262
2262
|
|
|
2263
|
-
Returns a new
|
|
2263
|
+
Returns a new Neurai address for receiving payments.
|
|
2264
2264
|
If 'account' is specified (DEPRECATED), it is added to the address book
|
|
2265
2265
|
so payments received with the address will be credited to 'account'.
|
|
2266
2266
|
|
|
@@ -2268,11 +2268,11 @@ Arguments:
|
|
|
2268
2268
|
1. "account" (string, optional) DEPRECATED. The account name for the address to be linked to. If not provided, the default account "" is used. It can also be set to the empty string "" to represent the default account. The account does not need to exist, it will be created if there is no account by the given name.
|
|
2269
2269
|
|
|
2270
2270
|
Result:
|
|
2271
|
-
"address" (string) The new
|
|
2271
|
+
"address" (string) The new neurai address
|
|
2272
2272
|
|
|
2273
2273
|
Examples:
|
|
2274
|
-
>
|
|
2275
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnewaddress", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2274
|
+
> neurai-cli getnewaddress
|
|
2275
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnewaddress", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2276
2276
|
**/
|
|
2277
2277
|
getnewaddress: "getnewaddress",
|
|
2278
2278
|
|
|
@@ -2324,22 +2324,22 @@ Result:
|
|
|
2324
2324
|
]
|
|
2325
2325
|
|
|
2326
2326
|
Examples:
|
|
2327
|
-
>
|
|
2328
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getpeerinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2327
|
+
> neurai-cli getpeerinfo
|
|
2328
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getpeerinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2329
2329
|
**/
|
|
2330
2330
|
getpeerinfo: "getpeerinfo",
|
|
2331
2331
|
|
|
2332
2332
|
/** getrawchangeaddress
|
|
2333
2333
|
|
|
2334
|
-
Returns a new
|
|
2334
|
+
Returns a new Neurai address, for receiving change.
|
|
2335
2335
|
This is for use with raw transactions, NOT normal use.
|
|
2336
2336
|
|
|
2337
2337
|
Result:
|
|
2338
2338
|
"address" (string) The address
|
|
2339
2339
|
|
|
2340
2340
|
Examples:
|
|
2341
|
-
>
|
|
2342
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrawchangeaddress", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2341
|
+
> neurai-cli getrawchangeaddress
|
|
2342
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrawchangeaddress", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2343
2343
|
**/
|
|
2344
2344
|
getrawchangeaddress: "getrawchangeaddress",
|
|
2345
2345
|
|
|
@@ -2380,8 +2380,8 @@ Result: (for verbose = true):
|
|
|
2380
2380
|
}
|
|
2381
2381
|
|
|
2382
2382
|
Examples:
|
|
2383
|
-
>
|
|
2384
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrawmempool", "params": [true] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2383
|
+
> neurai-cli getrawmempool true
|
|
2384
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrawmempool", "params": [true] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2385
2385
|
**/
|
|
2386
2386
|
getrawmempool: "getrawmempool",
|
|
2387
2387
|
|
|
@@ -2435,7 +2435,7 @@ Result (if verbose is set to true):
|
|
|
2435
2435
|
"reqSigs" : n, (numeric) The required sigs
|
|
2436
2436
|
"type" : "pubkeyhash", (string) The type, eg 'pubkeyhash'
|
|
2437
2437
|
"addresses" : [ (json array of string)
|
|
2438
|
-
"address" (string)
|
|
2438
|
+
"address" (string) neurai address
|
|
2439
2439
|
,...
|
|
2440
2440
|
]
|
|
2441
2441
|
}
|
|
@@ -2449,9 +2449,9 @@ Result (if verbose is set to true):
|
|
|
2449
2449
|
}
|
|
2450
2450
|
|
|
2451
2451
|
Examples:
|
|
2452
|
-
>
|
|
2453
|
-
>
|
|
2454
|
-
> 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:
|
|
2452
|
+
> neurai-cli getrawtransaction "mytxid"
|
|
2453
|
+
> neurai-cli getrawtransaction "mytxid" true
|
|
2454
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrawtransaction", "params": ["mytxid", true] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2455
2455
|
**/
|
|
2456
2456
|
getrawtransaction: "getrawtransaction",
|
|
2457
2457
|
|
|
@@ -2469,16 +2469,16 @@ amount (numeric) The total amount in XNA received for this account.
|
|
|
2469
2469
|
Examples:
|
|
2470
2470
|
|
|
2471
2471
|
Amount received by the default account with at least 1 confirmation
|
|
2472
|
-
>
|
|
2472
|
+
> neurai-cli getreceivedbyaccount ""
|
|
2473
2473
|
|
|
2474
2474
|
Amount received at the tabby account including unconfirmed amounts with zero confirmations
|
|
2475
|
-
>
|
|
2475
|
+
> neurai-cli getreceivedbyaccount "tabby" 0
|
|
2476
2476
|
|
|
2477
2477
|
The amount with at least 6 confirmations
|
|
2478
|
-
>
|
|
2478
|
+
> neurai-cli getreceivedbyaccount "tabby" 6
|
|
2479
2479
|
|
|
2480
2480
|
As a json rpc call
|
|
2481
|
-
> 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:
|
|
2481
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getreceivedbyaccount", "params": ["tabby", 6] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2482
2482
|
**/
|
|
2483
2483
|
getreceivedbyaccount: "getreceivedbyaccount",
|
|
2484
2484
|
|
|
@@ -2487,7 +2487,7 @@ As a json rpc call
|
|
|
2487
2487
|
Returns the total amount received by the given address in transactions with at least minconf confirmations.
|
|
2488
2488
|
|
|
2489
2489
|
Arguments:
|
|
2490
|
-
1. "address" (string, required) The
|
|
2490
|
+
1. "address" (string, required) The neurai address for transactions.
|
|
2491
2491
|
2. minconf (numeric, optional, default=1) Only include transactions confirmed at least this many times.
|
|
2492
2492
|
|
|
2493
2493
|
Result:
|
|
@@ -2496,16 +2496,16 @@ amount (numeric) The total amount in XNA received at this address.
|
|
|
2496
2496
|
Examples:
|
|
2497
2497
|
|
|
2498
2498
|
The amount from transactions with at least 1 confirmation
|
|
2499
|
-
>
|
|
2499
|
+
> neurai-cli getreceivedbyaddress "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX"
|
|
2500
2500
|
|
|
2501
2501
|
The amount including unconfirmed transactions, zero confirmations
|
|
2502
|
-
>
|
|
2502
|
+
> neurai-cli getreceivedbyaddress "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX" 0
|
|
2503
2503
|
|
|
2504
2504
|
The amount with at least 6 confirmations
|
|
2505
|
-
>
|
|
2505
|
+
> neurai-cli getreceivedbyaddress "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX" 6
|
|
2506
2506
|
|
|
2507
2507
|
As a json rpc call
|
|
2508
|
-
> 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:
|
|
2508
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getreceivedbyaddress", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX", 6] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2509
2509
|
**/
|
|
2510
2510
|
getreceivedbyaddress: "getreceivedbyaddress",
|
|
2511
2511
|
|
|
@@ -2522,8 +2522,8 @@ Result:
|
|
|
2522
2522
|
},...
|
|
2523
2523
|
],
|
|
2524
2524
|
}
|
|
2525
|
-
>
|
|
2526
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrpcinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2525
|
+
> neurai-cli getrpcinfo
|
|
2526
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrpcinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2527
2527
|
**/
|
|
2528
2528
|
getrpcinfo: "getrpcinfo",
|
|
2529
2529
|
|
|
@@ -2547,7 +2547,7 @@ Result:
|
|
|
2547
2547
|
}
|
|
2548
2548
|
|
|
2549
2549
|
Examples:
|
|
2550
|
-
> 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:
|
|
2550
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getsnapshot", "params": ["ASSET_NAME" 28546] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2551
2551
|
**/
|
|
2552
2552
|
getsnapshot: "getsnapshot",
|
|
2553
2553
|
|
|
@@ -2566,8 +2566,8 @@ Result:
|
|
|
2566
2566
|
}
|
|
2567
2567
|
|
|
2568
2568
|
Examples:
|
|
2569
|
-
>
|
|
2570
|
-
> 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:
|
|
2569
|
+
> neurai-cli getsnapshotrequest "TRONCO" 12345
|
|
2570
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getsnapshotrequest", "params": ["PHATSTACKS" 34987] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2571
2571
|
**/
|
|
2572
2572
|
getsnapshotrequest: "getsnapshotrequest",
|
|
2573
2573
|
|
|
@@ -2589,8 +2589,8 @@ Result:
|
|
|
2589
2589
|
}
|
|
2590
2590
|
|
|
2591
2591
|
Examples:
|
|
2592
|
-
>
|
|
2593
|
-
> 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:
|
|
2592
|
+
> neurai-cli getspentinfo '{"txid": "0437cd7f8525ceed2324359c2d0ba26006d92d856a9c20fa0241106ee5a597c9", "index": 0}'
|
|
2593
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getspentinfo", "params": [{"txid": "0437cd7f8525ceed2324359c2d0ba26006d92d856a9c20fa0241106ee5a597c9", "index": 0}] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2594
2594
|
**/
|
|
2595
2595
|
getspentinfo: "getspentinfo",
|
|
2596
2596
|
|
|
@@ -2619,7 +2619,7 @@ Result:
|
|
|
2619
2619
|
"details" : [
|
|
2620
2620
|
{
|
|
2621
2621
|
"account" : "accountname", (string) DEPRECATED. The account name involved in the transaction, can be "" for the default account.
|
|
2622
|
-
"address" : "address", (string) The
|
|
2622
|
+
"address" : "address", (string) The neurai address involved in the transaction
|
|
2623
2623
|
"category" : "send|receive", (string) The category, either 'send' or 'receive'
|
|
2624
2624
|
"amount" : x.xxx, (numeric) The amount in XNA
|
|
2625
2625
|
"label" : "label", (string) A comment for the address/transaction, if any
|
|
@@ -2636,7 +2636,7 @@ Result:
|
|
|
2636
2636
|
"asset_type" : "new_asset|transfer_asset|reissue_asset", (string) The type of asset transaction
|
|
2637
2637
|
"asset_name" : "asset_name", (string) The name of the asset
|
|
2638
2638
|
"amount" : x.xxx, (numeric) The amount in XNA
|
|
2639
|
-
"address" : "address", (string) The
|
|
2639
|
+
"address" : "address", (string) The neurai address involved in the transaction
|
|
2640
2640
|
"vout" : n, (numeric) the vout value
|
|
2641
2641
|
"category" : "send|receive", (string) The category, either 'send' or 'receive'
|
|
2642
2642
|
}
|
|
@@ -2646,9 +2646,9 @@ Result:
|
|
|
2646
2646
|
}
|
|
2647
2647
|
|
|
2648
2648
|
Examples:
|
|
2649
|
-
>
|
|
2650
|
-
>
|
|
2651
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettransaction", "params": ["1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2649
|
+
> neurai-cli gettransaction "1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"
|
|
2650
|
+
> neurai-cli gettransaction "1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d" true
|
|
2651
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettransaction", "params": ["1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2652
2652
|
**/
|
|
2653
2653
|
gettransaction: "gettransaction",
|
|
2654
2654
|
|
|
@@ -2671,8 +2671,8 @@ Result:
|
|
|
2671
2671
|
"hex" : "hex", (string)
|
|
2672
2672
|
"reqSigs" : n, (numeric) Number of required signatures
|
|
2673
2673
|
"type" : "pubkeyhash", (string) The type, eg pubkeyhash
|
|
2674
|
-
"addresses" : [ (array of string) array of
|
|
2675
|
-
"address" (string)
|
|
2674
|
+
"addresses" : [ (array of string) array of neurai addresses
|
|
2675
|
+
"address" (string) neurai address
|
|
2676
2676
|
,...
|
|
2677
2677
|
]
|
|
2678
2678
|
},
|
|
@@ -2682,13 +2682,13 @@ Result:
|
|
|
2682
2682
|
Examples:
|
|
2683
2683
|
|
|
2684
2684
|
Get unspent transactions
|
|
2685
|
-
>
|
|
2685
|
+
> neurai-cli listunspent
|
|
2686
2686
|
|
|
2687
2687
|
View the details
|
|
2688
|
-
>
|
|
2688
|
+
> neurai-cli gettxout "txid" 1
|
|
2689
2689
|
|
|
2690
2690
|
As a json rpc call
|
|
2691
|
-
> 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:
|
|
2691
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettxout", "params": ["txid", 1] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2692
2692
|
**/
|
|
2693
2693
|
gettxout: "gettxout",
|
|
2694
2694
|
|
|
@@ -2732,8 +2732,8 @@ Result:
|
|
|
2732
2732
|
}
|
|
2733
2733
|
|
|
2734
2734
|
Examples:
|
|
2735
|
-
>
|
|
2736
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettxoutsetinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2735
|
+
> neurai-cli gettxoutsetinfo
|
|
2736
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettxoutsetinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2737
2737
|
**/
|
|
2738
2738
|
gettxoutsetinfo: "gettxoutsetinfo",
|
|
2739
2739
|
|
|
@@ -2753,8 +2753,8 @@ Result:
|
|
|
2753
2753
|
"verifier_string", (string) The verifier for the asset
|
|
2754
2754
|
|
|
2755
2755
|
Examples:
|
|
2756
|
-
>
|
|
2757
|
-
> 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:
|
|
2756
|
+
> neurai-cli getverifierstring "restricted_name"
|
|
2757
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getverifierstring", "params": ["restricted_name"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2758
2758
|
**/
|
|
2759
2759
|
getverifierstring: "getverifierstring",
|
|
2760
2760
|
|
|
@@ -2779,8 +2779,8 @@ Result:
|
|
|
2779
2779
|
}
|
|
2780
2780
|
|
|
2781
2781
|
Examples:
|
|
2782
|
-
>
|
|
2783
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getwalletinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2782
|
+
> neurai-cli getwalletinfo
|
|
2783
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getwalletinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2784
2784
|
**/
|
|
2785
2785
|
getwalletinfo: "getwalletinfo",
|
|
2786
2786
|
|
|
@@ -2815,13 +2815,13 @@ as change, and not show up in many RPCs.
|
|
|
2815
2815
|
Examples:
|
|
2816
2816
|
|
|
2817
2817
|
Import a script with rescan
|
|
2818
|
-
>
|
|
2818
|
+
> neurai-cli importaddress "myscript"
|
|
2819
2819
|
|
|
2820
2820
|
Import using a label without rescan
|
|
2821
|
-
>
|
|
2821
|
+
> neurai-cli importaddress "myscript" "testing" false
|
|
2822
2822
|
|
|
2823
2823
|
As a JSON-RPC call
|
|
2824
|
-
> 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:
|
|
2824
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importaddress", "params": ["myscript", "testing", false] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2825
2825
|
**/
|
|
2826
2826
|
importaddress: "importaddress",
|
|
2827
2827
|
|
|
@@ -2855,8 +2855,8 @@ Arguments:
|
|
|
2855
2855
|
}
|
|
2856
2856
|
|
|
2857
2857
|
Examples:
|
|
2858
|
-
>
|
|
2859
|
-
>
|
|
2858
|
+
> neurai-cli importmulti '[{ "scriptPubKey": { "address": "<my address>" }, "timestamp":1455191478 }, { "scriptPubKey": { "address": "<my 2nd address>" }, "label": "example 2", "timestamp": 1455191480 }]'
|
|
2859
|
+
> neurai-cli importmulti '[{ "scriptPubKey": { "address": "<my address>" }, "timestamp":1455191478 }]' '{ "rescan": false}'
|
|
2860
2860
|
|
|
2861
2861
|
Response is an array with the same size as the input that has the execution result :
|
|
2862
2862
|
[{ "success": true } , { "success": false, "error": { "code": -1, "message": "Internal Server Error"} }, ... ]
|
|
@@ -2877,19 +2877,19 @@ Note: This call can take minutes to complete if rescan is true.
|
|
|
2877
2877
|
Examples:
|
|
2878
2878
|
|
|
2879
2879
|
Dump a private key
|
|
2880
|
-
>
|
|
2880
|
+
> neurai-cli dumpprivkey "myaddress"
|
|
2881
2881
|
|
|
2882
2882
|
Import the private key with rescan
|
|
2883
|
-
>
|
|
2883
|
+
> neurai-cli importprivkey "mykey"
|
|
2884
2884
|
|
|
2885
2885
|
Import using a label and without rescan
|
|
2886
|
-
>
|
|
2886
|
+
> neurai-cli importprivkey "mykey" "testing" false
|
|
2887
2887
|
|
|
2888
2888
|
Import using default blank label and without rescan
|
|
2889
|
-
>
|
|
2889
|
+
> neurai-cli importprivkey "mykey" "" false
|
|
2890
2890
|
|
|
2891
2891
|
As a JSON-RPC call
|
|
2892
|
-
> 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:
|
|
2892
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importprivkey", "params": ["mykey", "testing", false] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2893
2893
|
**/
|
|
2894
2894
|
importprivkey: "importprivkey",
|
|
2895
2895
|
|
|
@@ -2917,13 +2917,13 @@ Note: This call can take minutes to complete if rescan is true.
|
|
|
2917
2917
|
Examples:
|
|
2918
2918
|
|
|
2919
2919
|
Import a public key with rescan
|
|
2920
|
-
>
|
|
2920
|
+
> neurai-cli importpubkey "mypubkey"
|
|
2921
2921
|
|
|
2922
2922
|
Import using a label without rescan
|
|
2923
|
-
>
|
|
2923
|
+
> neurai-cli importpubkey "mypubkey" "testing" false
|
|
2924
2924
|
|
|
2925
2925
|
As a JSON-RPC call
|
|
2926
|
-
> 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:
|
|
2926
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importpubkey", "params": ["mypubkey", "testing", false] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2927
2927
|
**/
|
|
2928
2928
|
importpubkey: "importpubkey",
|
|
2929
2929
|
|
|
@@ -2937,13 +2937,13 @@ Arguments:
|
|
|
2937
2937
|
Examples:
|
|
2938
2938
|
|
|
2939
2939
|
Dump the wallet
|
|
2940
|
-
>
|
|
2940
|
+
> neurai-cli dumpwallet "test"
|
|
2941
2941
|
|
|
2942
2942
|
Import the wallet
|
|
2943
|
-
>
|
|
2943
|
+
> neurai-cli importwallet "test"
|
|
2944
2944
|
|
|
2945
2945
|
Import using the json rpc call
|
|
2946
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importwallet", "params": ["test"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2946
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importwallet", "params": ["test"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2947
2947
|
**/
|
|
2948
2948
|
importwallet: "importwallet",
|
|
2949
2949
|
|
|
@@ -2969,13 +2969,13 @@ Result:
|
|
|
2969
2969
|
"txid" (string) The transaction id
|
|
2970
2970
|
|
|
2971
2971
|
Examples:
|
|
2972
|
-
>
|
|
2973
|
-
>
|
|
2974
|
-
>
|
|
2975
|
-
>
|
|
2976
|
-
>
|
|
2977
|
-
>
|
|
2978
|
-
>
|
|
2972
|
+
> neurai-cli issue "ASSET_NAME" 1000
|
|
2973
|
+
> neurai-cli issue "ASSET_NAME" 1000 "myaddress"
|
|
2974
|
+
> neurai-cli issue "ASSET_NAME" 1000 "myaddress" "changeaddress" 4
|
|
2975
|
+
> neurai-cli issue "ASSET_NAME" 1000 "myaddress" "changeaddress" 2 true
|
|
2976
|
+
> neurai-cli issue "ASSET_NAME" 1000 "myaddress" "changeaddress" 8 false true QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E
|
|
2977
|
+
> neurai-cli issue "ASSET_NAME/SUB_ASSET" 1000 "myaddress" "changeaddress" 2 true
|
|
2978
|
+
> neurai-cli issue "ASSET_NAME#uniquetag"
|
|
2979
2979
|
**/
|
|
2980
2980
|
issue: "issue",
|
|
2981
2981
|
|
|
@@ -3000,13 +3000,13 @@ Result:
|
|
|
3000
3000
|
"txid" (string) The transaction id
|
|
3001
3001
|
|
|
3002
3002
|
Examples:
|
|
3003
|
-
>
|
|
3004
|
-
>
|
|
3005
|
-
>
|
|
3006
|
-
>
|
|
3007
|
-
>
|
|
3008
|
-
>
|
|
3009
|
-
>
|
|
3003
|
+
> neurai-cli issuequalifierasset "#ASSET_NAME" 1000
|
|
3004
|
+
> neurai-cli issuequalifierasset "ASSET_NAME" 1000 "myaddress"
|
|
3005
|
+
> neurai-cli issuequalifierasset "#ASSET_NAME" 1000 "myaddress" "changeaddress"
|
|
3006
|
+
> neurai-cli issuequalifierasset "ASSET_NAME" 1000 "myaddress" "changeaddress"
|
|
3007
|
+
> neurai-cli issuequalifierasset "#ASSET_NAME" 1000 "myaddress" "changeaddress" true QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E
|
|
3008
|
+
> neurai-cli issuequalifierasset "ASSET_NAME/SUB_QUALIFIER" 1000 "myaddress" "changeaddress"
|
|
3009
|
+
> neurai-cli issuequalifierasset "#ASSET_NAME"
|
|
3010
3010
|
**/
|
|
3011
3011
|
issuequalifierasset: "issuequalifierasset",
|
|
3012
3012
|
|
|
@@ -3032,11 +3032,11 @@ Result:
|
|
|
3032
3032
|
"txid" (string) The transaction id
|
|
3033
3033
|
|
|
3034
3034
|
Examples:
|
|
3035
|
-
>
|
|
3036
|
-
>
|
|
3037
|
-
>
|
|
3038
|
-
>
|
|
3039
|
-
>
|
|
3035
|
+
> neurai-cli issuerestrictedasset "$ASSET_NAME" 1000 "#KYC & !#AML" "myaddress"
|
|
3036
|
+
> neurai-cli issuerestrictedasset "$ASSET_NAME" 1000 "#KYC & !#AML" "myaddress"
|
|
3037
|
+
> neurai-cli issuerestrictedasset "$ASSET_NAME" 1000 "#KYC & !#AML" "myaddress" "changeaddress" 5
|
|
3038
|
+
> neurai-cli issuerestrictedasset "$ASSET_NAME" 1000 "#KYC & !#AML" "myaddress" "changeaddress" 8 true
|
|
3039
|
+
> neurai-cli issuerestrictedasset "$ASSET_NAME" 1000 "#KYC & !#AML" "myaddress" "changeaddress" 0 false true QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E
|
|
3040
3040
|
**/
|
|
3041
3041
|
issuerestrictedasset: "issuerestrictedasset",
|
|
3042
3042
|
|
|
@@ -3059,8 +3059,8 @@ Result:
|
|
|
3059
3059
|
"txid" (string) The transaction id
|
|
3060
3060
|
|
|
3061
3061
|
Examples:
|
|
3062
|
-
>
|
|
3063
|
-
>
|
|
3062
|
+
> neurai-cli issueunique "MY_ASSET" '["primo","secundo"]'
|
|
3063
|
+
> neurai-cli issueunique "MY_ASSET" '["primo","secundo"]' '["first_hash","second_hash"]'
|
|
3064
3064
|
**/
|
|
3065
3065
|
issueunique: "issueunique",
|
|
3066
3066
|
|
|
@@ -3075,8 +3075,8 @@ Result:
|
|
|
3075
3075
|
"xxxxxxx", (string) If the verifier string is valid, and the reason
|
|
3076
3076
|
|
|
3077
3077
|
Examples:
|
|
3078
|
-
>
|
|
3079
|
-
> 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:
|
|
3078
|
+
> neurai-cli isvalidverifierstring "verifier_string"
|
|
3079
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "isvalidverifierstring", "params": ["verifier_string"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3080
3080
|
**/
|
|
3081
3081
|
isvalidverifierstring: "isvalidverifierstring",
|
|
3082
3082
|
|
|
@@ -3088,8 +3088,8 @@ Arguments
|
|
|
3088
3088
|
1. newsize (numeric, optional, default=100) The new keypool size
|
|
3089
3089
|
|
|
3090
3090
|
Examples:
|
|
3091
|
-
>
|
|
3092
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "keypoolrefill", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3091
|
+
> neurai-cli keypoolrefill
|
|
3092
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "keypoolrefill", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3093
3093
|
**/
|
|
3094
3094
|
keypoolrefill: "keypoolrefill",
|
|
3095
3095
|
|
|
@@ -3110,16 +3110,16 @@ Result:
|
|
|
3110
3110
|
Examples:
|
|
3111
3111
|
|
|
3112
3112
|
List account balances where there at least 1 confirmation
|
|
3113
|
-
>
|
|
3113
|
+
> neurai-cli listaccounts
|
|
3114
3114
|
|
|
3115
3115
|
List account balances including zero confirmation transactions
|
|
3116
|
-
>
|
|
3116
|
+
> neurai-cli listaccounts 0
|
|
3117
3117
|
|
|
3118
3118
|
List account balances for 6 or more confirmations
|
|
3119
|
-
>
|
|
3119
|
+
> neurai-cli listaccounts 6
|
|
3120
3120
|
|
|
3121
3121
|
As json rpc call
|
|
3122
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaccounts", "params": [6] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3122
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaccounts", "params": [6] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3123
3123
|
**/
|
|
3124
3124
|
listaccounts: "listaccounts",
|
|
3125
3125
|
|
|
@@ -3139,9 +3139,9 @@ Result:
|
|
|
3139
3139
|
]
|
|
3140
3140
|
|
|
3141
3141
|
Examples:
|
|
3142
|
-
>
|
|
3143
|
-
>
|
|
3144
|
-
>
|
|
3142
|
+
> neurai-cli listaddressesbyasset "ASSET_NAME" false 2 0
|
|
3143
|
+
> neurai-cli listaddressesbyasset "ASSET_NAME" true
|
|
3144
|
+
> neurai-cli listaddressesbyasset "ASSET_NAME"
|
|
3145
3145
|
**/
|
|
3146
3146
|
listaddressesbyasset: "listaddressesbyasset",
|
|
3147
3147
|
|
|
@@ -3158,8 +3158,8 @@ Result:
|
|
|
3158
3158
|
]
|
|
3159
3159
|
|
|
3160
3160
|
Examples:
|
|
3161
|
-
>
|
|
3162
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressesfortag", "params": ["#TAG"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3161
|
+
> neurai-cli listaddressesfortag "#TAG"
|
|
3162
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressesfortag", "params": ["#TAG"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3163
3163
|
**/
|
|
3164
3164
|
listaddressesfortag: "listaddressesfortag",
|
|
3165
3165
|
|
|
@@ -3173,7 +3173,7 @@ Result:
|
|
|
3173
3173
|
[
|
|
3174
3174
|
[
|
|
3175
3175
|
[
|
|
3176
|
-
"address", (string) The
|
|
3176
|
+
"address", (string) The neurai address
|
|
3177
3177
|
amount, (numeric) The amount in XNA
|
|
3178
3178
|
"account" (string, optional) DEPRECATED. The account
|
|
3179
3179
|
]
|
|
@@ -3183,8 +3183,8 @@ Result:
|
|
|
3183
3183
|
]
|
|
3184
3184
|
|
|
3185
3185
|
Examples:
|
|
3186
|
-
>
|
|
3187
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressgroupings", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3186
|
+
> neurai-cli listaddressgroupings
|
|
3187
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressgroupings", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3188
3188
|
**/
|
|
3189
3189
|
listaddressgroupings: "listaddressgroupings",
|
|
3190
3190
|
|
|
@@ -3201,8 +3201,8 @@ Result:
|
|
|
3201
3201
|
]
|
|
3202
3202
|
|
|
3203
3203
|
Examples:
|
|
3204
|
-
>
|
|
3205
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressrestrictions", "params": ["address"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3204
|
+
> neurai-cli listaddressrestrictions "address"
|
|
3205
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressrestrictions", "params": ["address"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3206
3206
|
**/
|
|
3207
3207
|
listaddressrestrictions: "listaddressrestrictions",
|
|
3208
3208
|
|
|
@@ -3211,7 +3211,7 @@ Examples:
|
|
|
3211
3211
|
Returns a list of all asset balances for an address.
|
|
3212
3212
|
|
|
3213
3213
|
Arguments:
|
|
3214
|
-
1. "address" (string, required) a
|
|
3214
|
+
1. "address" (string, required) a neurai address
|
|
3215
3215
|
2. "onlytotal" (boolean, optional, default=false) when false result is just a list of assets balances -- when true the result is just a single number representing the number of assets
|
|
3216
3216
|
3. "count" (integer, optional, default=50000, MAX=50000) truncates results to include only the first _count_ assets found
|
|
3217
3217
|
4. "start" (integer, optional, default=0) results skip over the first _start_ assets found (if negative it skips back from the end)
|
|
@@ -3223,9 +3223,9 @@ Result:
|
|
|
3223
3223
|
}
|
|
3224
3224
|
|
|
3225
3225
|
Examples:
|
|
3226
|
-
>
|
|
3227
|
-
>
|
|
3228
|
-
>
|
|
3226
|
+
> neurai-cli listassetbalancesbyaddress "myaddress" false 2 0
|
|
3227
|
+
> neurai-cli listassetbalancesbyaddress "myaddress" true
|
|
3228
|
+
> neurai-cli listassetbalancesbyaddress "myaddress"
|
|
3229
3229
|
**/
|
|
3230
3230
|
listassetbalancesbyaddress: "listassetbalancesbyaddress",
|
|
3231
3231
|
|
|
@@ -3262,9 +3262,9 @@ Result (verbose=true):
|
|
|
3262
3262
|
}
|
|
3263
3263
|
|
|
3264
3264
|
Examples:
|
|
3265
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listassets", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3266
|
-
>
|
|
3267
|
-
>
|
|
3265
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listassets", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3266
|
+
> neurai-cli listassets ASSET
|
|
3267
|
+
> neurai-cli listassets "ASSET*" true 10 20
|
|
3268
3268
|
**/
|
|
3269
3269
|
listassets: "listassets",
|
|
3270
3270
|
|
|
@@ -3273,8 +3273,8 @@ Examples:
|
|
|
3273
3273
|
List all banned IPs/Subnets.
|
|
3274
3274
|
|
|
3275
3275
|
Examples:
|
|
3276
|
-
>
|
|
3277
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listbanned", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3276
|
+
> neurai-cli listbanned
|
|
3277
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listbanned", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3278
3278
|
**/
|
|
3279
3279
|
listbanned: "listbanned",
|
|
3280
3280
|
|
|
@@ -3288,8 +3288,8 @@ Result:
|
|
|
3288
3288
|
]
|
|
3289
3289
|
|
|
3290
3290
|
Examples:
|
|
3291
|
-
>
|
|
3292
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listglobalrestrictions", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3291
|
+
> neurai-cli listglobalrestrictions
|
|
3292
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listglobalrestrictions", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3293
3293
|
**/
|
|
3294
3294
|
listglobalrestrictions: "listglobalrestrictions",
|
|
3295
3295
|
|
|
@@ -3310,19 +3310,19 @@ Result:
|
|
|
3310
3310
|
Examples:
|
|
3311
3311
|
|
|
3312
3312
|
List the unspent transactions
|
|
3313
|
-
>
|
|
3313
|
+
> neurai-cli listunspent
|
|
3314
3314
|
|
|
3315
3315
|
Lock an unspent transaction
|
|
3316
|
-
>
|
|
3316
|
+
> neurai-cli lockunspent false "[{\"txid\":\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\",\"vout\":1}]"
|
|
3317
3317
|
|
|
3318
3318
|
List the locked transactions
|
|
3319
|
-
>
|
|
3319
|
+
> neurai-cli listlockunspent
|
|
3320
3320
|
|
|
3321
3321
|
Unlock the transaction again
|
|
3322
|
-
>
|
|
3322
|
+
> neurai-cli lockunspent true "[{\"txid\":\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\",\"vout\":1}]"
|
|
3323
3323
|
|
|
3324
3324
|
As a json rpc call
|
|
3325
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listlockunspent", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3325
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listlockunspent", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3326
3326
|
**/
|
|
3327
3327
|
listlockunspent: "listlockunspent",
|
|
3328
3328
|
|
|
@@ -3362,10 +3362,10 @@ Result (verbose=true):
|
|
|
3362
3362
|
{...}, {...}
|
|
3363
3363
|
|
|
3364
3364
|
Examples:
|
|
3365
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listmyassets", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3366
|
-
>
|
|
3367
|
-
>
|
|
3368
|
-
>
|
|
3365
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listmyassets", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3366
|
+
> neurai-cli listmyassets ASSET
|
|
3367
|
+
> neurai-cli listmyassets "ASSET*" true 10 20
|
|
3368
|
+
> neurai-cli listmyassets "ASSET*" true 10 20 1
|
|
3369
3369
|
**/
|
|
3370
3370
|
listmyassets: "listmyassets",
|
|
3371
3371
|
|
|
@@ -3391,9 +3391,9 @@ Result:
|
|
|
3391
3391
|
]
|
|
3392
3392
|
|
|
3393
3393
|
Examples:
|
|
3394
|
-
>
|
|
3395
|
-
>
|
|
3396
|
-
> 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:
|
|
3394
|
+
> neurai-cli listreceivedbyaccount
|
|
3395
|
+
> neurai-cli listreceivedbyaccount 6 true
|
|
3396
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listreceivedbyaccount", "params": [6, true, true] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3397
3397
|
**/
|
|
3398
3398
|
listreceivedbyaccount: "listreceivedbyaccount",
|
|
3399
3399
|
|
|
@@ -3424,9 +3424,9 @@ Result:
|
|
|
3424
3424
|
]
|
|
3425
3425
|
|
|
3426
3426
|
Examples:
|
|
3427
|
-
>
|
|
3428
|
-
>
|
|
3429
|
-
> 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:
|
|
3427
|
+
> neurai-cli listreceivedbyaddress
|
|
3428
|
+
> neurai-cli listreceivedbyaddress 6 true
|
|
3429
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listreceivedbyaddress", "params": [6, true, true] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3430
3430
|
**/
|
|
3431
3431
|
listreceivedbyaddress: "listreceivedbyaddress",
|
|
3432
3432
|
|
|
@@ -3447,7 +3447,7 @@ Result:
|
|
|
3447
3447
|
{
|
|
3448
3448
|
"transactions": [
|
|
3449
3449
|
"account":"accountname", (string) DEPRECATED. The account name associated with the transaction. Will be "" for the default account.
|
|
3450
|
-
"address":"address", (string) The
|
|
3450
|
+
"address":"address", (string) The neurai address of the transaction. Not present for move transactions (category = move).
|
|
3451
3451
|
"category":"send|receive", (string) The transaction category. 'send' has negative amounts, 'receive' has positive amounts.
|
|
3452
3452
|
"amount": x.xxx, (numeric) The amount in XNA. This is negative for the 'send' category, and for the 'move' category for moves
|
|
3453
3453
|
outbound. It is positive for the 'receive' category, and for the 'move' category for inbound funds.
|
|
@@ -3476,9 +3476,9 @@ Result:
|
|
|
3476
3476
|
}
|
|
3477
3477
|
|
|
3478
3478
|
Examples:
|
|
3479
|
-
>
|
|
3480
|
-
>
|
|
3481
|
-
> 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:
|
|
3479
|
+
> neurai-cli listsinceblock
|
|
3480
|
+
> neurai-cli listsinceblock "000000000000000bacf66f7497b7dc45ef753ee9a7d38571037cdb1a57f663ad" 6
|
|
3481
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listsinceblock", "params": ["000000000000000bacf66f7497b7dc45ef753ee9a7d38571037cdb1a57f663ad", 6] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3482
3482
|
**/
|
|
3483
3483
|
listsinceblock: "listsinceblock",
|
|
3484
3484
|
|
|
@@ -3499,8 +3499,8 @@ Result:
|
|
|
3499
3499
|
]
|
|
3500
3500
|
|
|
3501
3501
|
Examples:
|
|
3502
|
-
>
|
|
3503
|
-
> 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:
|
|
3502
|
+
> neurai-cli listsnapshotrequests
|
|
3503
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listsnapshotrequests", "params": ["TRONCO" 345333] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3504
3504
|
**/
|
|
3505
3505
|
listsnapshotrequests: "listsnapshotrequests",
|
|
3506
3506
|
|
|
@@ -3517,8 +3517,8 @@ Result:
|
|
|
3517
3517
|
]
|
|
3518
3518
|
|
|
3519
3519
|
Examples:
|
|
3520
|
-
>
|
|
3521
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listtagsforaddress", "params": ["address"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3520
|
+
> neurai-cli listtagsforaddress "address"
|
|
3521
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listtagsforaddress", "params": ["address"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3522
3522
|
**/
|
|
3523
3523
|
listtagsforaddress: "listtagsforaddress",
|
|
3524
3524
|
|
|
@@ -3537,7 +3537,7 @@ Result:
|
|
|
3537
3537
|
{
|
|
3538
3538
|
"account":"accountname", (string) DEPRECATED. The account name associated with the transaction.
|
|
3539
3539
|
It will be "" for the default account.
|
|
3540
|
-
"address":"address", (string) The
|
|
3540
|
+
"address":"address", (string) The neurai address of the transaction. Not present for
|
|
3541
3541
|
move transactions (category = move).
|
|
3542
3542
|
"category":"send|receive|move", (string) The transaction category. 'move' is a local (off blockchain)
|
|
3543
3543
|
transaction between accounts, and not associated with an address,
|
|
@@ -3577,13 +3577,13 @@ Result:
|
|
|
3577
3577
|
Examples:
|
|
3578
3578
|
|
|
3579
3579
|
List the most recent 10 transactions in the systems
|
|
3580
|
-
>
|
|
3580
|
+
> neurai-cli listtransactions
|
|
3581
3581
|
|
|
3582
3582
|
List transactions 100 to 120
|
|
3583
|
-
>
|
|
3583
|
+
> neurai-cli listtransactions "*" 20 100
|
|
3584
3584
|
|
|
3585
3585
|
As a json rpc call
|
|
3586
|
-
> 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:
|
|
3586
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listtransactions", "params": ["*", 20, 100] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3587
3587
|
**/
|
|
3588
3588
|
listtransactions: "listtransactions",
|
|
3589
3589
|
|
|
@@ -3596,9 +3596,9 @@ Optionally filter to only include txouts paid to specified addresses.
|
|
|
3596
3596
|
Arguments:
|
|
3597
3597
|
1. minconf (numeric, optional, default=1) The minimum confirmations to filter
|
|
3598
3598
|
2. maxconf (numeric, optional, default=9999999) The maximum confirmations to filter
|
|
3599
|
-
3. "addresses" (string) A json array of
|
|
3599
|
+
3. "addresses" (string) A json array of neurai addresses to filter
|
|
3600
3600
|
[
|
|
3601
|
-
"address" (string)
|
|
3601
|
+
"address" (string) neurai address
|
|
3602
3602
|
,...
|
|
3603
3603
|
]
|
|
3604
3604
|
4. include_unsafe (bool, optional, default=true) Include outputs that are not safe to spend
|
|
@@ -3616,7 +3616,7 @@ Result
|
|
|
3616
3616
|
{
|
|
3617
3617
|
"txid" : "txid", (string) the transaction id
|
|
3618
3618
|
"vout" : n, (numeric) the vout value
|
|
3619
|
-
"address" : "address", (string) the
|
|
3619
|
+
"address" : "address", (string) the neurai address
|
|
3620
3620
|
"account" : "account", (string) DEPRECATED. The associated account, or "" for the default account
|
|
3621
3621
|
"scriptPubKey" : "key", (string) the script key
|
|
3622
3622
|
"amount" : x.xxx, (numeric) the transaction output amount in XNA
|
|
@@ -3632,11 +3632,11 @@ Result
|
|
|
3632
3632
|
]
|
|
3633
3633
|
|
|
3634
3634
|
Examples
|
|
3635
|
-
>
|
|
3636
|
-
>
|
|
3637
|
-
> 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:
|
|
3638
|
-
>
|
|
3639
|
-
> 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:
|
|
3635
|
+
> neurai-cli listunspent
|
|
3636
|
+
> neurai-cli listunspent 6 9999999 "[\"1PGFqEzfmQch1gKD3ra4k18PNj3tTUUSqg\",\"1LtvqCaApEdUGFkpKMM4MstjcaL4dKg8SP\"]"
|
|
3637
|
+
> 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:8766/
|
|
3638
|
+
> neurai-cli listunspent 6 9999999 '[]' true '{ "minimumAmount": 0.005 }'
|
|
3639
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listunspent", "params": [6, 9999999, [] , true, { "minimumAmount": 0.005 } ] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3640
3640
|
**/
|
|
3641
3641
|
listunspent: "listunspent",
|
|
3642
3642
|
|
|
@@ -3651,8 +3651,8 @@ Result:
|
|
|
3651
3651
|
]
|
|
3652
3652
|
|
|
3653
3653
|
Examples:
|
|
3654
|
-
>
|
|
3655
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listwallets", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3654
|
+
> neurai-cli listwallets
|
|
3655
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listwallets", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3656
3656
|
**/
|
|
3657
3657
|
listwallets: "listwallets",
|
|
3658
3658
|
|
|
@@ -3661,7 +3661,7 @@ Examples:
|
|
|
3661
3661
|
Updates list of temporarily unspendable outputs.
|
|
3662
3662
|
Temporarily lock (unlock=false) or unlock (unlock=true) specified transaction outputs.
|
|
3663
3663
|
If no transaction outputs are specified when unlocking then all current locked transaction outputs are unlocked.
|
|
3664
|
-
A locked transaction output will not be chosen by automatic coin selection, when spending
|
|
3664
|
+
A locked transaction output will not be chosen by automatic coin selection, when spending neurais.
|
|
3665
3665
|
Locks are stored in memory only. Nodes start with zero locked outputs, and the locked output list
|
|
3666
3666
|
is always cleared (by virtue of process exit) when a node stops or fails.
|
|
3667
3667
|
Also see the listunspent call
|
|
@@ -3683,19 +3683,19 @@ true|false (boolean) Whether the command was successful or not
|
|
|
3683
3683
|
Examples:
|
|
3684
3684
|
|
|
3685
3685
|
List the unspent transactions
|
|
3686
|
-
>
|
|
3686
|
+
> neurai-cli listunspent
|
|
3687
3687
|
|
|
3688
3688
|
Lock an unspent transaction
|
|
3689
|
-
>
|
|
3689
|
+
> neurai-cli lockunspent false "[{\"txid\":\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\",\"vout\":1}]"
|
|
3690
3690
|
|
|
3691
3691
|
List the locked transactions
|
|
3692
|
-
>
|
|
3692
|
+
> neurai-cli listlockunspent
|
|
3693
3693
|
|
|
3694
3694
|
Unlock the transaction again
|
|
3695
|
-
>
|
|
3695
|
+
> neurai-cli lockunspent true "[{\"txid\":\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\",\"vout\":1}]"
|
|
3696
3696
|
|
|
3697
3697
|
As a json rpc call
|
|
3698
|
-
> 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:
|
|
3698
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "lockunspent", "params": [false, "[{\"txid\":\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\",\"vout\":1}]"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3699
3699
|
**/
|
|
3700
3700
|
lockunspent: "lockunspent",
|
|
3701
3701
|
|
|
@@ -3716,13 +3716,13 @@ true|false (boolean) true if successful.
|
|
|
3716
3716
|
Examples:
|
|
3717
3717
|
|
|
3718
3718
|
Move 0.01 XNA from the default account to the account named tabby
|
|
3719
|
-
>
|
|
3719
|
+
> neurai-cli move "" "tabby" 0.01
|
|
3720
3720
|
|
|
3721
3721
|
Move 0.01 XNA timotei to akiko with a comment and funds have 6 confirmations
|
|
3722
|
-
>
|
|
3722
|
+
> neurai-cli move "timotei" "akiko" 0.01 6 "happy birthday!"
|
|
3723
3723
|
|
|
3724
3724
|
As a json rpc call
|
|
3725
|
-
> 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:
|
|
3725
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "move", "params": ["timotei", "akiko", 0.01, 6, "happy birthday!"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3726
3726
|
**/
|
|
3727
3727
|
move: "move",
|
|
3728
3728
|
|
|
@@ -3733,8 +3733,8 @@ Results provided in getpeerinfo, pingtime and pingwait fields are decimal second
|
|
|
3733
3733
|
Ping command is handled in queue with all other commands, so it measures processing backlog, not just network ping.
|
|
3734
3734
|
|
|
3735
3735
|
Examples:
|
|
3736
|
-
>
|
|
3737
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "ping", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3736
|
+
> neurai-cli ping
|
|
3737
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "ping", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3738
3738
|
**/
|
|
3739
3739
|
ping: "ping",
|
|
3740
3740
|
|
|
@@ -3750,8 +3750,8 @@ Arguments
|
|
|
3750
3750
|
Result:
|
|
3751
3751
|
|
|
3752
3752
|
Examples:
|
|
3753
|
-
>
|
|
3754
|
-
> 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:
|
|
3753
|
+
> neurai-cli pprpcsb "header_hash" "mix_hash" 100000
|
|
3754
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "pprpcsb", "params": ["header_hash" "mix_hash" 100000] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3755
3755
|
**/
|
|
3756
3756
|
pprpcsb: "pprpcsb",
|
|
3757
3757
|
|
|
@@ -3769,8 +3769,8 @@ Arguments:
|
|
|
3769
3769
|
Result:
|
|
3770
3770
|
|
|
3771
3771
|
Examples:
|
|
3772
|
-
>
|
|
3773
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "preciousblock", "params": ["blockhash"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3772
|
+
> neurai-cli preciousblock "blockhash"
|
|
3773
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "preciousblock", "params": ["blockhash"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3774
3774
|
**/
|
|
3775
3775
|
preciousblock: "preciousblock",
|
|
3776
3776
|
|
|
@@ -3789,8 +3789,8 @@ Result:
|
|
|
3789
3789
|
true (boolean) Returns true
|
|
3790
3790
|
|
|
3791
3791
|
Examples:
|
|
3792
|
-
>
|
|
3793
|
-
> 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:
|
|
3792
|
+
> neurai-cli prioritisetransaction "txid" 0.0 10000
|
|
3793
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "prioritisetransaction", "params": ["txid", 0.0, 10000] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3794
3794
|
**/
|
|
3795
3795
|
prioritisetransaction: "prioritisetransaction",
|
|
3796
3796
|
|
|
@@ -3804,8 +3804,8 @@ Result:
|
|
|
3804
3804
|
n (numeric) Height of the last block pruned.
|
|
3805
3805
|
|
|
3806
3806
|
Examples:
|
|
3807
|
-
>
|
|
3808
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "pruneblockchain", "params": [1000] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3807
|
+
> neurai-cli pruneblockchain 1000
|
|
3808
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "pruneblockchain", "params": [1000] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3809
3809
|
**/
|
|
3810
3810
|
pruneblockchain: "pruneblockchain",
|
|
3811
3811
|
|
|
@@ -3824,8 +3824,8 @@ Result:
|
|
|
3824
3824
|
}
|
|
3825
3825
|
|
|
3826
3826
|
Examples:
|
|
3827
|
-
>
|
|
3828
|
-
> 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:
|
|
3827
|
+
> neurai-cli purgesnapshot "ASSET_NAME" 28546
|
|
3828
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "purgesnapshot", "params": ["ASSET_NAME" 28546] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3829
3829
|
**/
|
|
3830
3830
|
purgesnapshot: "purgesnapshot",
|
|
3831
3831
|
|
|
@@ -3847,8 +3847,8 @@ Result:
|
|
|
3847
3847
|
"txid" (string) The transaction id
|
|
3848
3848
|
|
|
3849
3849
|
Examples:
|
|
3850
|
-
>
|
|
3851
|
-
> 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:
|
|
3850
|
+
> neurai-cli reissue "ASSET_NAME" 20 "address"
|
|
3851
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "reissue", "params": ["ASSET_NAME" 20 "address" "change_address" "true" 8 "Qmd286K6pohQcTKYqnS1YhWrCiS4gz7Xi34sdwMe9USZ7u"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3852
3852
|
**/
|
|
3853
3853
|
reissue: "reissue",
|
|
3854
3854
|
|
|
@@ -3872,11 +3872,11 @@ Result:
|
|
|
3872
3872
|
"txid" (string) The transaction id
|
|
3873
3873
|
|
|
3874
3874
|
Examples:
|
|
3875
|
-
>
|
|
3876
|
-
>
|
|
3877
|
-
>
|
|
3878
|
-
>
|
|
3879
|
-
>
|
|
3875
|
+
> neurai-cli reissuerestrictedasset "$ASSET_NAME" 1000 "myaddress" true "KYC & !AML"
|
|
3876
|
+
> neurai-cli reissuerestrictedasset "$ASSET_NAME" 1000 "myaddress" true "KYC & !AML"
|
|
3877
|
+
> neurai-cli reissuerestrictedasset "$ASSET_NAME" 1000 "myaddress" true "KYC & !AML" "changeaddress"
|
|
3878
|
+
> neurai-cli reissuerestrictedasset "$ASSET_NAME" 1000 "myaddress" true "KYC & !AML" "changeaddress" -1 true
|
|
3879
|
+
> neurai-cli reissuerestrictedasset "$ASSET_NAME" 1000 "myaddress" false "" "changeaddress" -1 false QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E
|
|
3880
3880
|
**/
|
|
3881
3881
|
reissuerestrictedasset: "reissuerestrictedasset",
|
|
3882
3882
|
|
|
@@ -3888,10 +3888,10 @@ Arguments:
|
|
|
3888
3888
|
1. "txid" (string, required) The hex-encoded id of the transaction you are deleting
|
|
3889
3889
|
|
|
3890
3890
|
Examples:
|
|
3891
|
-
>
|
|
3891
|
+
> neurai-cli removeprunedfunds "a8d0c0184dde994a09ec054286f1ce581bebf46446a512166eae7628734ea0a5"
|
|
3892
3892
|
|
|
3893
3893
|
As a JSON-RPC call
|
|
3894
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "removeprunedfunds", "params": ["a8d0c0184dde994a09ec054286f1ce581bebf46446a512166eae7628734ea0a5"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3894
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "removeprunedfunds", "params": ["a8d0c0184dde994a09ec054286f1ce581bebf46446a512166eae7628734ea0a5"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3895
3895
|
**/
|
|
3896
3896
|
removeprunedfunds: "removeprunedfunds",
|
|
3897
3897
|
|
|
@@ -3909,10 +3909,10 @@ Result:
|
|
|
3909
3909
|
"txid" (string) The transaction id
|
|
3910
3910
|
|
|
3911
3911
|
Examples:
|
|
3912
|
-
>
|
|
3913
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "removetagfromaddress", "params": ["#TAG" "to_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3914
|
-
>
|
|
3915
|
-
> 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:
|
|
3912
|
+
> neurai-cli removetagfromaddress "#TAG" "to_address"
|
|
3913
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "removetagfromaddress", "params": ["#TAG" "to_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3914
|
+
> neurai-cli removetagfromaddress "#TAG" "to_address" "change_address"
|
|
3915
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "removetagfromaddress", "params": ["#TAG" "to_address" "change_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3916
3916
|
**/
|
|
3917
3917
|
removetagfromaddress: "removetagfromaddress",
|
|
3918
3918
|
|
|
@@ -3930,8 +3930,8 @@ Result:
|
|
|
3930
3930
|
}
|
|
3931
3931
|
|
|
3932
3932
|
Examples:
|
|
3933
|
-
>
|
|
3934
|
-
> 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:
|
|
3933
|
+
> neurai-cli requestsnapshot "TRONCO" 12345
|
|
3934
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "requestsnapshot", "params": ["PHATSTACKS" 34987] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3935
3935
|
**/
|
|
3936
3936
|
requestsnapshot: "requestsnapshot",
|
|
3937
3937
|
|
|
@@ -3950,8 +3950,8 @@ Result:
|
|
|
3950
3950
|
}
|
|
3951
3951
|
|
|
3952
3952
|
Examples:
|
|
3953
|
-
>
|
|
3954
|
-
> 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:
|
|
3953
|
+
> neurai-cli rescanblockchain 100000 120000
|
|
3954
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "rescanblockchain", "params": [100000, 120000] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3955
3955
|
**/
|
|
3956
3956
|
rescanblockchain: "rescanblockchain",
|
|
3957
3957
|
|
|
@@ -3960,21 +3960,21 @@ Examples:
|
|
|
3960
3960
|
Dumps the mempool to disk.
|
|
3961
3961
|
|
|
3962
3962
|
Examples:
|
|
3963
|
-
>
|
|
3964
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "savemempool", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3963
|
+
> neurai-cli savemempool
|
|
3964
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "savemempool", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3965
3965
|
**/
|
|
3966
3966
|
savemempool: "savemempool",
|
|
3967
3967
|
|
|
3968
3968
|
/** sendfrom "fromaccount" "toaddress" amount ( minconf "comment" "comment_to" )
|
|
3969
3969
|
|
|
3970
|
-
DEPRECATED (use sendtoaddress). Sent an amount from an account to a
|
|
3970
|
+
DEPRECATED (use sendtoaddress). Sent an amount from an account to a neurai address.
|
|
3971
3971
|
|
|
3972
3972
|
Arguments:
|
|
3973
3973
|
1. "fromaccount" (string, required) The name of the account to send funds from. May be the default account using "".
|
|
3974
3974
|
Specifying an account does not influence coin selection, but it does associate the newly created
|
|
3975
3975
|
transaction with the account, so the account's balance computation and transaction history can reflect
|
|
3976
3976
|
the spend.
|
|
3977
|
-
2. "toaddress" (string, required) The
|
|
3977
|
+
2. "toaddress" (string, required) The neurai address to send funds to.
|
|
3978
3978
|
3. amount (numeric or string, required) The amount in XNA (transaction fee is added on top).
|
|
3979
3979
|
4. minconf (numeric, optional, default=1) Only use funds with at least this many confirmations.
|
|
3980
3980
|
5. "comment" (string, optional) A comment used to store what the transaction is for.
|
|
@@ -3989,13 +3989,13 @@ Result:
|
|
|
3989
3989
|
Examples:
|
|
3990
3990
|
|
|
3991
3991
|
Send 0.01 XNA from the default account to the address, must have at least 1 confirmation
|
|
3992
|
-
>
|
|
3992
|
+
> neurai-cli sendfrom "" "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.01
|
|
3993
3993
|
|
|
3994
3994
|
Send 0.01 from the tabby account to the given address, funds must have at least 6 confirmations
|
|
3995
|
-
>
|
|
3995
|
+
> neurai-cli sendfrom "tabby" "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.01 6 "donation" "seans outpost"
|
|
3996
3996
|
|
|
3997
3997
|
As a json rpc call
|
|
3998
|
-
> 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:
|
|
3998
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendfrom", "params": ["tabby", "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd", 0.01, 6, "donation", "seans outpost"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3999
3999
|
**/
|
|
4000
4000
|
sendfrom: "sendfrom",
|
|
4001
4001
|
|
|
@@ -4004,8 +4004,8 @@ As a json rpc call
|
|
|
4004
4004
|
Send an amount from a specific address to a given address. All xna change will get sent back to the from_address
|
|
4005
4005
|
|
|
4006
4006
|
Arguments:
|
|
4007
|
-
1. "from_address" (string, required) The
|
|
4008
|
-
2. "to_address" (string, required) The
|
|
4007
|
+
1. "from_address" (string, required) The neurai address to send from.
|
|
4008
|
+
2. "to_address" (string, required) The neurai address to send to.
|
|
4009
4009
|
3. "amount" (numeric or string, required) The amount in XNA to send. eg 0.1
|
|
4010
4010
|
4. "comment" (string, optional) A comment used to store what the transaction is for.
|
|
4011
4011
|
This is not part of the transaction, just kept in your wallet.
|
|
@@ -4013,7 +4013,7 @@ Arguments:
|
|
|
4013
4013
|
to which you're sending the transaction. This is not part of the
|
|
4014
4014
|
transaction, just kept in your wallet.
|
|
4015
4015
|
6. subtractfeefromamount (boolean, optional, default=false) The fee will be deducted from the amount being sent.
|
|
4016
|
-
The recipient will receive less
|
|
4016
|
+
The recipient will receive less neurais than you enter in the amount field.
|
|
4017
4017
|
7. conf_target (numeric, optional) Confirmation target (in blocks)
|
|
4018
4018
|
8. "estimate_mode" (string, optional, default=UNSET) The fee estimate mode, must be one of:
|
|
4019
4019
|
"UNSET"
|
|
@@ -4024,10 +4024,10 @@ Result:
|
|
|
4024
4024
|
"txid" (string) The transaction id.
|
|
4025
4025
|
|
|
4026
4026
|
Examples:
|
|
4027
|
-
>
|
|
4028
|
-
>
|
|
4029
|
-
>
|
|
4030
|
-
> 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:
|
|
4027
|
+
> neurai-cli sendfromaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1
|
|
4028
|
+
> neurai-cli sendfromaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1 "donation" "seans outpost"
|
|
4029
|
+
> neurai-cli sendfromaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1 "" "" true
|
|
4030
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendfromaddress", "params": ["1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd", 0.1, "donation", "seans outpost"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4031
4031
|
**/
|
|
4032
4032
|
sendfromaddress: "sendfromaddress",
|
|
4033
4033
|
|
|
@@ -4039,14 +4039,14 @@ Arguments:
|
|
|
4039
4039
|
1. "fromaccount" (string, required) DEPRECATED. The account to send the funds from. Should be "" for the default account
|
|
4040
4040
|
2. "amounts" (string, required) A json object with addresses and amounts
|
|
4041
4041
|
{
|
|
4042
|
-
"address":amount (numeric or string) The
|
|
4042
|
+
"address":amount (numeric or string) The neurai address is the key, the numeric amount (can be string) in XNA is the value
|
|
4043
4043
|
,...
|
|
4044
4044
|
}
|
|
4045
4045
|
3. minconf (numeric, optional, default=1) Only use the balance confirmed at least this many times.
|
|
4046
4046
|
4. "comment" (string, optional) A comment
|
|
4047
4047
|
5. subtractfeefrom (array, optional) A json array with addresses.
|
|
4048
4048
|
The fee will be equally deducted from the amount of each selected address.
|
|
4049
|
-
Those recipients will receive less
|
|
4049
|
+
Those recipients will receive less neurais than you enter in their corresponding amount field.
|
|
4050
4050
|
If no addresses are specified here, the sender pays the fee.
|
|
4051
4051
|
[
|
|
4052
4052
|
"address" (string) Subtract fee from this address
|
|
@@ -4065,16 +4065,16 @@ Result:
|
|
|
4065
4065
|
Examples:
|
|
4066
4066
|
|
|
4067
4067
|
Send two amounts to two different addresses:
|
|
4068
|
-
>
|
|
4068
|
+
> neurai-cli sendmany "" "{\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\":0.01,\"1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz\":0.02}"
|
|
4069
4069
|
|
|
4070
4070
|
Send two amounts to two different addresses setting the confirmation and comment:
|
|
4071
|
-
>
|
|
4071
|
+
> neurai-cli sendmany "" "{\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\":0.01,\"1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz\":0.02}" 6 "testing"
|
|
4072
4072
|
|
|
4073
4073
|
Send two amounts to two different addresses, subtract fee from amount:
|
|
4074
|
-
>
|
|
4074
|
+
> neurai-cli sendmany "" "{\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\":0.01,\"1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz\":0.02}" 1 "" "[\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\",\"1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz\"]"
|
|
4075
4075
|
|
|
4076
4076
|
As a json rpc call
|
|
4077
|
-
> 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:
|
|
4077
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendmany", "params": ["", "{\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\":0.01,\"1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz\":0.02}", 6, "testing"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4078
4078
|
**/
|
|
4079
4079
|
sendmany: "sendmany",
|
|
4080
4080
|
|
|
@@ -4091,8 +4091,8 @@ txid
|
|
|
4091
4091
|
]
|
|
4092
4092
|
|
|
4093
4093
|
Examples:
|
|
4094
|
-
>
|
|
4095
|
-
>
|
|
4094
|
+
> neurai-cli sendmessage "ASSET_NAME!" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
4095
|
+
> neurai-cli sendmessage "ASSET_NAME!" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
4096
4096
|
**/
|
|
4097
4097
|
sendmessage: "sendmessage",
|
|
4098
4098
|
|
|
@@ -4112,15 +4112,15 @@ Result:
|
|
|
4112
4112
|
Examples:
|
|
4113
4113
|
|
|
4114
4114
|
Create a transaction
|
|
4115
|
-
>
|
|
4115
|
+
> neurai-cli createrawtransaction "[{\"txid\" : \"mytxid\",\"vout\":0}]" "{\"myaddress\":0.01}"
|
|
4116
4116
|
Sign the transaction, and get back the hex
|
|
4117
|
-
>
|
|
4117
|
+
> neurai-cli signrawtransaction "myhex"
|
|
4118
4118
|
|
|
4119
4119
|
Send the transaction (signed hex)
|
|
4120
|
-
>
|
|
4120
|
+
> neurai-cli sendrawtransaction "signedhex"
|
|
4121
4121
|
|
|
4122
4122
|
As a json rpc call
|
|
4123
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendrawtransaction", "params": ["signedhex"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4123
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendrawtransaction", "params": ["signedhex"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4124
4124
|
**/
|
|
4125
4125
|
sendrawtransaction: "sendrawtransaction",
|
|
4126
4126
|
|
|
@@ -4129,7 +4129,7 @@ As a json rpc call
|
|
|
4129
4129
|
Send an amount to a given address.
|
|
4130
4130
|
|
|
4131
4131
|
Arguments:
|
|
4132
|
-
1. "address" (string, required) The
|
|
4132
|
+
1. "address" (string, required) The neurai address to send to.
|
|
4133
4133
|
2. "amount" (numeric or string, required) The amount in XNA to send. eg 0.1
|
|
4134
4134
|
3. "comment" (string, optional) A comment used to store what the transaction is for.
|
|
4135
4135
|
This is not part of the transaction, just kept in your wallet.
|
|
@@ -4137,7 +4137,7 @@ Arguments:
|
|
|
4137
4137
|
to which you're sending the transaction. This is not part of the
|
|
4138
4138
|
transaction, just kept in your wallet.
|
|
4139
4139
|
5. subtractfeefromamount (boolean, optional, default=false) The fee will be deducted from the amount being sent.
|
|
4140
|
-
The recipient will receive less
|
|
4140
|
+
The recipient will receive less neurais than you enter in the amount field.
|
|
4141
4141
|
6. conf_target (numeric, optional) Confirmation target (in blocks)
|
|
4142
4142
|
7. "estimate_mode" (string, optional, default=UNSET) The fee estimate mode, must be one of:
|
|
4143
4143
|
"UNSET"
|
|
@@ -4148,10 +4148,10 @@ Result:
|
|
|
4148
4148
|
"txid" (string) The transaction id.
|
|
4149
4149
|
|
|
4150
4150
|
Examples:
|
|
4151
|
-
>
|
|
4152
|
-
>
|
|
4153
|
-
>
|
|
4154
|
-
> 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:
|
|
4151
|
+
> neurai-cli sendtoaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1
|
|
4152
|
+
> neurai-cli sendtoaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1 "donation" "seans outpost"
|
|
4153
|
+
> neurai-cli sendtoaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1 "" "" true
|
|
4154
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendtoaddress", "params": ["1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd", 0.1, "donation", "seans outpost"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4155
4155
|
**/
|
|
4156
4156
|
sendtoaddress: "sendtoaddress",
|
|
4157
4157
|
|
|
@@ -4160,12 +4160,12 @@ Examples:
|
|
|
4160
4160
|
DEPRECATED. Sets the account associated with the given address.
|
|
4161
4161
|
|
|
4162
4162
|
Arguments:
|
|
4163
|
-
1. "address" (string, required) The
|
|
4163
|
+
1. "address" (string, required) The neurai address to be associated with an account.
|
|
4164
4164
|
2. "account" (string, required) The account to assign the address to.
|
|
4165
4165
|
|
|
4166
4166
|
Examples:
|
|
4167
|
-
>
|
|
4168
|
-
> 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:
|
|
4167
|
+
> neurai-cli setaccount "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX" "tabby"
|
|
4168
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "setaccount", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX", "tabby"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4169
4169
|
**/
|
|
4170
4170
|
setaccount: "setaccount",
|
|
4171
4171
|
|
|
@@ -4180,9 +4180,9 @@ Arguments:
|
|
|
4180
4180
|
4. "absolute" (boolean, optional) If set, the bantime must be an absolute timestamp in seconds since epoch (Jan 1 1970 GMT)
|
|
4181
4181
|
|
|
4182
4182
|
Examples:
|
|
4183
|
-
>
|
|
4184
|
-
>
|
|
4185
|
-
> 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:
|
|
4183
|
+
> neurai-cli setban "192.168.0.6" "add" 86400
|
|
4184
|
+
> neurai-cli setban "192.168.0.0/24" "add"
|
|
4185
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "setban", "params": ["192.168.0.6", "add", 86400] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4186
4186
|
**/
|
|
4187
4187
|
setban: "setban",
|
|
4188
4188
|
|
|
@@ -4199,16 +4199,16 @@ Arguments:
|
|
|
4199
4199
|
Examples:
|
|
4200
4200
|
|
|
4201
4201
|
Set the generation on with a limit of one processor
|
|
4202
|
-
>
|
|
4202
|
+
> neurai-cli setgenerate true 1
|
|
4203
4203
|
|
|
4204
4204
|
Check the setting
|
|
4205
|
-
>
|
|
4205
|
+
> neurai-cli getgenerate
|
|
4206
4206
|
|
|
4207
4207
|
Turn off generation
|
|
4208
|
-
>
|
|
4208
|
+
> neurai-cli setgenerate false
|
|
4209
4209
|
|
|
4210
4210
|
Using json rpc
|
|
4211
|
-
> 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:
|
|
4211
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "setgenerate", "params": [true, 1] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4212
4212
|
**/
|
|
4213
4213
|
setgenerate: "setgenerate",
|
|
4214
4214
|
|
|
@@ -4232,8 +4232,8 @@ Result
|
|
|
4232
4232
|
true|false (boolean) Returns true if successful
|
|
4233
4233
|
|
|
4234
4234
|
Examples:
|
|
4235
|
-
>
|
|
4236
|
-
> 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:
|
|
4235
|
+
> neurai-cli settxfee 0.00001
|
|
4236
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "settxfee", "params": [0.00001] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4237
4237
|
**/
|
|
4238
4238
|
settxfee: "settxfee",
|
|
4239
4239
|
|
|
@@ -4242,7 +4242,7 @@ Examples:
|
|
|
4242
4242
|
Sign a message with the private key of an address
|
|
4243
4243
|
|
|
4244
4244
|
Arguments:
|
|
4245
|
-
1. "address" (string, required) The
|
|
4245
|
+
1. "address" (string, required) The neurai address to use for the private key.
|
|
4246
4246
|
2. "message" (string, required) The message to create a signature of.
|
|
4247
4247
|
|
|
4248
4248
|
Result:
|
|
@@ -4251,16 +4251,16 @@ Result:
|
|
|
4251
4251
|
Examples:
|
|
4252
4252
|
|
|
4253
4253
|
Unlock the wallet for 30 seconds
|
|
4254
|
-
>
|
|
4254
|
+
> neurai-cli walletpassphrase "mypassphrase" 30
|
|
4255
4255
|
|
|
4256
4256
|
Create the signature
|
|
4257
|
-
>
|
|
4257
|
+
> neurai-cli signmessage "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX" "my message"
|
|
4258
4258
|
|
|
4259
4259
|
Verify the signature
|
|
4260
|
-
>
|
|
4260
|
+
> neurai-cli verifymessage "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX" "signature" "my message"
|
|
4261
4261
|
|
|
4262
4262
|
As json rpc
|
|
4263
|
-
> 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:
|
|
4263
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "signmessage", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX", "my message"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4264
4264
|
**/
|
|
4265
4265
|
signmessage: "signmessage",
|
|
4266
4266
|
|
|
@@ -4278,13 +4278,13 @@ Result:
|
|
|
4278
4278
|
Examples:
|
|
4279
4279
|
|
|
4280
4280
|
Create the signature
|
|
4281
|
-
>
|
|
4281
|
+
> neurai-cli signmessagewithprivkey "privkey" "my message"
|
|
4282
4282
|
|
|
4283
4283
|
Verify the signature
|
|
4284
|
-
>
|
|
4284
|
+
> neurai-cli verifymessage "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX" "signature" "my message"
|
|
4285
4285
|
|
|
4286
4286
|
As json rpc
|
|
4287
|
-
> 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:
|
|
4287
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "signmessagewithprivkey", "params": ["privkey", "my message"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4288
4288
|
**/
|
|
4289
4289
|
signmessagewithprivkey: "signmessagewithprivkey",
|
|
4290
4290
|
|
|
@@ -4340,20 +4340,20 @@ Result:
|
|
|
4340
4340
|
}
|
|
4341
4341
|
|
|
4342
4342
|
Examples:
|
|
4343
|
-
>
|
|
4344
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "signrawtransaction", "params": ["myhex"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4343
|
+
> neurai-cli signrawtransaction "myhex"
|
|
4344
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "signrawtransaction", "params": ["myhex"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4345
4345
|
**/
|
|
4346
4346
|
signrawtransaction: "signrawtransaction",
|
|
4347
4347
|
|
|
4348
4348
|
/** stop
|
|
4349
4349
|
|
|
4350
|
-
Stop
|
|
4350
|
+
Stop Neurai server.**/
|
|
4351
4351
|
stop: "stop",
|
|
4352
4352
|
|
|
4353
4353
|
/** submitblock "hexdata" ( "dummy" )
|
|
4354
4354
|
|
|
4355
4355
|
Attempts to submit new block to network.
|
|
4356
|
-
See https://en.
|
|
4356
|
+
See https://en.neurai.it/wiki/BIP_0022 for full specification.
|
|
4357
4357
|
|
|
4358
4358
|
Arguments
|
|
4359
4359
|
1. "hexdata" (string, required) the hex-encoded block data to submit
|
|
@@ -4362,8 +4362,8 @@ Arguments
|
|
|
4362
4362
|
Result:
|
|
4363
4363
|
|
|
4364
4364
|
Examples:
|
|
4365
|
-
>
|
|
4366
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "submitblock", "params": ["mydata"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4365
|
+
> neurai-cli submitblock "mydata"
|
|
4366
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "submitblock", "params": ["mydata"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4367
4367
|
**/
|
|
4368
4368
|
submitblock: "submitblock",
|
|
4369
4369
|
|
|
@@ -4379,8 +4379,8 @@ Result:[
|
|
|
4379
4379
|
]
|
|
4380
4380
|
|
|
4381
4381
|
Examples:
|
|
4382
|
-
>
|
|
4383
|
-
> 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:
|
|
4382
|
+
> neurai-cli subscribetochannel "ASSET_NAME!"
|
|
4383
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "subscribetochannel", "params": ["ASSET_NAME!"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4384
4384
|
**/
|
|
4385
4385
|
subscribetochannel: "subscribetochannel",
|
|
4386
4386
|
|
|
@@ -4410,15 +4410,15 @@ Result:
|
|
|
4410
4410
|
Examples:
|
|
4411
4411
|
|
|
4412
4412
|
Create a transaction
|
|
4413
|
-
>
|
|
4413
|
+
> neurai-cli createrawtransaction "[{\"txid\" : \"mytxid\",\"vout\":0}]" "{\"myaddress\":0.01}"
|
|
4414
4414
|
Sign the transaction, and get back the hex
|
|
4415
|
-
>
|
|
4415
|
+
> neurai-cli signrawtransaction "myhex"
|
|
4416
4416
|
|
|
4417
4417
|
Test acceptance of the transaction (signed hex)
|
|
4418
|
-
>
|
|
4418
|
+
> neurai-cli testmempoolaccept "signedhex"
|
|
4419
4419
|
|
|
4420
4420
|
As a json rpc call
|
|
4421
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "testmempoolaccept", "params": [["signedhex"]] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4421
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "testmempoolaccept", "params": [["signedhex"]] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4422
4422
|
**/
|
|
4423
4423
|
testmempoolaccept: "testmempoolaccept",
|
|
4424
4424
|
|
|
@@ -4440,8 +4440,8 @@ txid
|
|
|
4440
4440
|
]
|
|
4441
4441
|
|
|
4442
4442
|
Examples:
|
|
4443
|
-
>
|
|
4444
|
-
>
|
|
4443
|
+
> neurai-cli transfer "ASSET_NAME" 20 "address" "" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
4444
|
+
> neurai-cli transfer "ASSET_NAME" 20 "address" "" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
4445
4445
|
**/
|
|
4446
4446
|
transfer: "transfer",
|
|
4447
4447
|
|
|
@@ -4464,8 +4464,8 @@ txid
|
|
|
4464
4464
|
]
|
|
4465
4465
|
|
|
4466
4466
|
Examples:
|
|
4467
|
-
>
|
|
4468
|
-
> 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:
|
|
4467
|
+
> neurai-cli transferfromaddress "ASSET_NAME" "fromaddress" 20 "address" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E", 156545652
|
|
4468
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "transferfromaddress", "params": ["ASSET_NAME" "fromaddress" 20 "address" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E", 156545652] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4469
4469
|
**/
|
|
4470
4470
|
transferfromaddress: "transferfromaddress",
|
|
4471
4471
|
|
|
@@ -4488,8 +4488,8 @@ txid
|
|
|
4488
4488
|
]
|
|
4489
4489
|
|
|
4490
4490
|
Examples:
|
|
4491
|
-
>
|
|
4492
|
-
> 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:
|
|
4491
|
+
> neurai-cli transferfromaddresses "ASSET_NAME" '["fromaddress1", "fromaddress2"]' 20 "to_address" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 154652365
|
|
4492
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "transferfromaddresses", "params": ["ASSET_NAME" '["fromaddress1", "fromaddress2"]' 20 "to_address" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 154652365] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4493
4493
|
**/
|
|
4494
4494
|
transferfromaddresses: "transferfromaddresses",
|
|
4495
4495
|
|
|
@@ -4510,8 +4510,8 @@ txid
|
|
|
4510
4510
|
]
|
|
4511
4511
|
|
|
4512
4512
|
Examples:
|
|
4513
|
-
>
|
|
4514
|
-
>
|
|
4513
|
+
> neurai-cli transferqualifier "#QUALIFIER" 20 "to_address" "" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
4514
|
+
> neurai-cli transferqualifier "#QUALIFIER" 20 "to_address" "change_address" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
4515
4515
|
**/
|
|
4516
4516
|
transferqualifier: "transferqualifier",
|
|
4517
4517
|
|
|
@@ -4529,10 +4529,10 @@ Result:
|
|
|
4529
4529
|
"txid" (string) The transaction id
|
|
4530
4530
|
|
|
4531
4531
|
Examples:
|
|
4532
|
-
>
|
|
4533
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "unfreezeaddress", "params": ["$RESTRICTED_ASSET" "address"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4534
|
-
>
|
|
4535
|
-
> 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:
|
|
4532
|
+
> neurai-cli unfreezeaddress "$RESTRICTED_ASSET" "address"
|
|
4533
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "unfreezeaddress", "params": ["$RESTRICTED_ASSET" "address"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4534
|
+
> neurai-cli unfreezeaddress "$RESTRICTED_ASSET" "address" "change_address"
|
|
4535
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "unfreezeaddress", "params": ["$RESTRICTED_ASSET" "address" "change_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4536
4536
|
**/
|
|
4537
4537
|
unfreezeaddress: "unfreezeaddress",
|
|
4538
4538
|
|
|
@@ -4549,10 +4549,10 @@ Result:
|
|
|
4549
4549
|
"txid" (string) The transaction id
|
|
4550
4550
|
|
|
4551
4551
|
Examples:
|
|
4552
|
-
>
|
|
4553
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "unfreezerestrictedasset", "params": ["$RESTRICTED_ASSET"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4554
|
-
>
|
|
4555
|
-
> 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:
|
|
4552
|
+
> neurai-cli unfreezerestrictedasset "$RESTRICTED_ASSET"
|
|
4553
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "unfreezerestrictedasset", "params": ["$RESTRICTED_ASSET"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4554
|
+
> neurai-cli unfreezerestrictedasset "$RESTRICTED_ASSET" "change_address"
|
|
4555
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "unfreezerestrictedasset", "params": ["$RESTRICTED_ASSET" "change_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4556
4556
|
**/
|
|
4557
4557
|
unfreezerestrictedasset: "unfreezerestrictedasset",
|
|
4558
4558
|
|
|
@@ -4568,8 +4568,8 @@ Result:[
|
|
|
4568
4568
|
]
|
|
4569
4569
|
|
|
4570
4570
|
Examples:
|
|
4571
|
-
>
|
|
4572
|
-
> 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:
|
|
4571
|
+
> neurai-cli unsubscribefromchannel "ASSET_NAME!"
|
|
4572
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "unsubscribefromchannel", "params": ["ASSET_NAME!"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4573
4573
|
**/
|
|
4574
4574
|
unsubscribefromchannel: "unsubscribefromchannel",
|
|
4575
4575
|
|
|
@@ -4581,22 +4581,22 @@ Result:
|
|
|
4581
4581
|
ttt (numeric) The number of seconds that the server has been running
|
|
4582
4582
|
|
|
4583
4583
|
Examples:
|
|
4584
|
-
>
|
|
4585
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "uptime", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4584
|
+
> neurai-cli uptime
|
|
4585
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "uptime", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4586
4586
|
**/
|
|
4587
4587
|
uptime: "uptime",
|
|
4588
4588
|
|
|
4589
4589
|
/** validateaddress "address"
|
|
4590
4590
|
|
|
4591
|
-
Return information about the given
|
|
4591
|
+
Return information about the given neurai address.
|
|
4592
4592
|
|
|
4593
4593
|
Arguments:
|
|
4594
|
-
1. "address" (string, required) The
|
|
4594
|
+
1. "address" (string, required) The neurai address to validate
|
|
4595
4595
|
|
|
4596
4596
|
Result:
|
|
4597
4597
|
{
|
|
4598
4598
|
"isvalid" : true|false, (boolean) If the address is valid or not. If not, this is the only property returned.
|
|
4599
|
-
"address" : "address", (string) The
|
|
4599
|
+
"address" : "address", (string) The neurai address validated
|
|
4600
4600
|
"scriptPubKey" : "hex", (string) The hex encoded scriptPubKey generated by the address
|
|
4601
4601
|
"ismine" : true|false, (boolean) If the address is yours or not
|
|
4602
4602
|
"iswatchonly" : true|false, (boolean) If the address is watchonly
|
|
@@ -4618,8 +4618,8 @@ Result:
|
|
|
4618
4618
|
}
|
|
4619
4619
|
|
|
4620
4620
|
Examples:
|
|
4621
|
-
>
|
|
4622
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "validateaddress", "params": ["1PSSGeFHDnKNxiEyFrD1wcEaHr9hrQDDWc"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4621
|
+
> neurai-cli validateaddress "1PSSGeFHDnKNxiEyFrD1wcEaHr9hrQDDWc"
|
|
4622
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "validateaddress", "params": ["1PSSGeFHDnKNxiEyFrD1wcEaHr9hrQDDWc"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4623
4623
|
**/
|
|
4624
4624
|
validateaddress: "validateaddress",
|
|
4625
4625
|
|
|
@@ -4635,8 +4635,8 @@ Result:
|
|
|
4635
4635
|
true|false (boolean) Verified or not
|
|
4636
4636
|
|
|
4637
4637
|
Examples:
|
|
4638
|
-
>
|
|
4639
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "verifychain", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4638
|
+
> neurai-cli verifychain
|
|
4639
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "verifychain", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4640
4640
|
**/
|
|
4641
4641
|
verifychain: "verifychain",
|
|
4642
4642
|
|
|
@@ -4645,7 +4645,7 @@ Examples:
|
|
|
4645
4645
|
Verify a signed message
|
|
4646
4646
|
|
|
4647
4647
|
Arguments:
|
|
4648
|
-
1. "address" (string, required) The
|
|
4648
|
+
1. "address" (string, required) The neurai address to use for the signature.
|
|
4649
4649
|
2. "signature" (string, required) The signature provided by the signer in base 64 encoding (see signmessage).
|
|
4650
4650
|
3. "message" (string, required) The message that was signed.
|
|
4651
4651
|
|
|
@@ -4655,16 +4655,16 @@ true|false (boolean) If the signature is verified or not.
|
|
|
4655
4655
|
Examples:
|
|
4656
4656
|
|
|
4657
4657
|
Unlock the wallet for 30 seconds
|
|
4658
|
-
>
|
|
4658
|
+
> neurai-cli walletpassphrase "mypassphrase" 30
|
|
4659
4659
|
|
|
4660
4660
|
Create the signature
|
|
4661
|
-
>
|
|
4661
|
+
> neurai-cli signmessage "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX" "my message"
|
|
4662
4662
|
|
|
4663
4663
|
Verify the signature
|
|
4664
|
-
>
|
|
4664
|
+
> neurai-cli verifymessage "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX" "signature" "my message"
|
|
4665
4665
|
|
|
4666
4666
|
As json rpc
|
|
4667
|
-
> 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:
|
|
4667
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "verifymessage", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX", "signature", "my message"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4668
4668
|
**/
|
|
4669
4669
|
verifymessage: "verifymessage",
|
|
4670
4670
|
|
|
@@ -4691,8 +4691,8 @@ Result:[
|
|
|
4691
4691
|
]
|
|
4692
4692
|
|
|
4693
4693
|
Examples:
|
|
4694
|
-
>
|
|
4695
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewallmessagechannels", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4694
|
+
> neurai-cli viewallmessagechannels
|
|
4695
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewallmessagechannels", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4696
4696
|
**/
|
|
4697
4697
|
viewallmessagechannels: "viewallmessagechannels",
|
|
4698
4698
|
|
|
@@ -4710,8 +4710,8 @@ Result:
|
|
|
4710
4710
|
"Expire UTC Time:" (Date, optional) If the message contains an expire date that is too large, the UTC number will be displayed
|
|
4711
4711
|
|
|
4712
4712
|
Examples:
|
|
4713
|
-
>
|
|
4714
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewallmessages", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4713
|
+
> neurai-cli viewallmessages
|
|
4714
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewallmessages", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4715
4715
|
**/
|
|
4716
4716
|
viewallmessages: "viewallmessages",
|
|
4717
4717
|
|
|
@@ -4728,8 +4728,8 @@ Result:
|
|
|
4728
4728
|
}...
|
|
4729
4729
|
|
|
4730
4730
|
Examples:
|
|
4731
|
-
>
|
|
4732
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewmyrestrictedaddresses", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4731
|
+
> neurai-cli viewmyrestrictedaddresses
|
|
4732
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewmyrestrictedaddresses", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4733
4733
|
**/
|
|
4734
4734
|
viewmyrestrictedaddresses: "viewmyrestrictedaddresses",
|
|
4735
4735
|
|
|
@@ -4746,8 +4746,8 @@ Result:
|
|
|
4746
4746
|
}...
|
|
4747
4747
|
|
|
4748
4748
|
Examples:
|
|
4749
|
-
>
|
|
4750
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewmytaggedaddresses", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4749
|
+
> neurai-cli viewmytaggedaddresses
|
|
4750
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewmytaggedaddresses", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4751
4751
|
**/
|
|
4752
4752
|
viewmytaggedaddresses: "viewmytaggedaddresses",
|
|
4753
4753
|
};
|