@neuraiproject/neurai-rpc 0.2.7 → 0.4.1
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 +41 -5
- package/{createDocs.js → createDocs.mjs} +25 -6
- package/docs.json +145 -145
- package/docs.ts +683 -1196
- package/index.ts +71 -32
- package/neurai_methods.md +493 -493
- package/package.json +8 -12
package/neurai_methods.md
CHANGED
|
@@ -16,8 +16,8 @@ Arguments:
|
|
|
16
16
|
Result:
|
|
17
17
|
|
|
18
18
|
Examples:
|
|
19
|
-
>
|
|
20
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "abandontransaction", "params": ["1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
19
|
+
> neurai-cli abandontransaction "1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"
|
|
20
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "abandontransaction", "params": ["1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
21
21
|
|
|
22
22
|
<br> <br/>
|
|
23
23
|
## abortrescan
|
|
@@ -28,41 +28,41 @@ Stops current wallet rescan triggered e.g. by an importprivkey call.
|
|
|
28
28
|
Examples:
|
|
29
29
|
|
|
30
30
|
Import a private key
|
|
31
|
-
>
|
|
31
|
+
> neurai-cli importprivkey "mykey"
|
|
32
32
|
|
|
33
33
|
Abort the running wallet rescan
|
|
34
|
-
>
|
|
34
|
+
> neurai-cli abortrescan
|
|
35
35
|
|
|
36
36
|
As a JSON-RPC call
|
|
37
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "abortrescan", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
37
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "abortrescan", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
38
38
|
|
|
39
39
|
<br> <br/>
|
|
40
40
|
## addmultisigaddress
|
|
41
41
|
<br/> addmultisigaddress nrequired ["key",...] ( "account" )
|
|
42
42
|
|
|
43
43
|
Add a nrequired-to-sign multisignature address to the wallet.
|
|
44
|
-
Each key is a
|
|
44
|
+
Each key is a Neurai address or hex-encoded public key.
|
|
45
45
|
If 'account' is specified (DEPRECATED), assign address to that account.
|
|
46
46
|
|
|
47
47
|
Arguments:
|
|
48
48
|
1. nrequired (numeric, required) The number of required signatures out of the n keys or addresses.
|
|
49
|
-
2. "keys" (string, required) A json array of
|
|
49
|
+
2. "keys" (string, required) A json array of neurai addresses or hex-encoded public keys
|
|
50
50
|
[
|
|
51
|
-
"address" (string)
|
|
51
|
+
"address" (string) neurai address or hex-encoded public key
|
|
52
52
|
...,
|
|
53
53
|
]
|
|
54
54
|
3. "account" (string, optional) DEPRECATED. An account to assign the addresses to.
|
|
55
55
|
|
|
56
56
|
Result:
|
|
57
|
-
"address" (string) A
|
|
57
|
+
"address" (string) A neurai address associated with the keys.
|
|
58
58
|
|
|
59
59
|
Examples:
|
|
60
60
|
|
|
61
61
|
Add a multisig address from 2 addresses
|
|
62
|
-
>
|
|
62
|
+
> neurai-cli addmultisigaddress 2 "[\"16sSauSf5pF2UkUwvKGq4qjNRzBZYqgEL5\",\"171sgjn4YtPu27adkKGrdDwzRTxnRkBfKV\"]"
|
|
63
63
|
|
|
64
64
|
As json rpc call
|
|
65
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "addmultisigaddress", "params": [2, "[\"16sSauSf5pF2UkUwvKGq4qjNRzBZYqgEL5\",\"171sgjn4YtPu27adkKGrdDwzRTxnRkBfKV\"]"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
65
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "addmultisigaddress", "params": [2, "[\"16sSauSf5pF2UkUwvKGq4qjNRzBZYqgEL5\",\"171sgjn4YtPu27adkKGrdDwzRTxnRkBfKV\"]"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
66
66
|
|
|
67
67
|
<br> <br/>
|
|
68
68
|
## addnode
|
|
@@ -78,8 +78,8 @@ Arguments:
|
|
|
78
78
|
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
|
|
79
79
|
|
|
80
80
|
Examples:
|
|
81
|
-
>
|
|
82
|
-
> 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:
|
|
81
|
+
> neurai-cli addnode "192.168.0.6:8767" "onetry"
|
|
82
|
+
> 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:19001/
|
|
83
83
|
|
|
84
84
|
<br> <br/>
|
|
85
85
|
## addtagtoaddress
|
|
@@ -97,10 +97,10 @@ Result:
|
|
|
97
97
|
"txid" (string) The transaction id
|
|
98
98
|
|
|
99
99
|
Examples:
|
|
100
|
-
>
|
|
101
|
-
> 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:
|
|
102
|
-
>
|
|
103
|
-
> 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:
|
|
100
|
+
> neurai-cli addtagtoaddress "#TAG" "to_address"
|
|
101
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "addtagtoaddress", "params": ["#TAG" "to_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
102
|
+
> neurai-cli addtagtoaddress "#TAG" "to_address" "change_address"
|
|
103
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "addtagtoaddress", "params": ["#TAG" "to_address" "change_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
104
104
|
|
|
105
105
|
<br> <br/>
|
|
106
106
|
## addwitnessaddress
|
|
@@ -126,8 +126,8 @@ Arguments:
|
|
|
126
126
|
1. "destination" (string) The destination directory or file
|
|
127
127
|
|
|
128
128
|
Examples:
|
|
129
|
-
>
|
|
130
|
-
> 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:
|
|
129
|
+
> neurai-cli backupwallet "backup.dat"
|
|
130
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "backupwallet", "params": ["backup.dat"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
131
131
|
|
|
132
132
|
<br> <br/>
|
|
133
133
|
## bumpfee
|
|
@@ -148,8 +148,8 @@ Result:
|
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
Examples:
|
|
151
|
-
>
|
|
152
|
-
> 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:
|
|
151
|
+
> neurai-cli cancelsnapshotrequest "TRONCO" 12345
|
|
152
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "cancelsnapshotrequest", "params": ["PHATSTACKS" 34987] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
153
153
|
|
|
154
154
|
<br> <br/>
|
|
155
155
|
## checkaddressrestriction
|
|
@@ -165,8 +165,8 @@ Result:
|
|
|
165
165
|
"true/false", (boolean) If the address is frozen
|
|
166
166
|
|
|
167
167
|
Examples:
|
|
168
|
-
>
|
|
169
|
-
> 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:
|
|
168
|
+
> neurai-cli checkaddressrestriction "address" "restricted_name"
|
|
169
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "checkaddressrestriction", "params": ["address" "restricted_name"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
170
170
|
|
|
171
171
|
<br> <br/>
|
|
172
172
|
## checkaddresstag
|
|
@@ -182,8 +182,8 @@ Result:
|
|
|
182
182
|
"true/false", (boolean) If the address has the tag
|
|
183
183
|
|
|
184
184
|
Examples:
|
|
185
|
-
>
|
|
186
|
-
> 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:
|
|
185
|
+
> neurai-cli checkaddresstag "address" "tag_name"
|
|
186
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "checkaddresstag", "params": ["address" "tag_name"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
187
187
|
|
|
188
188
|
<br> <br/>
|
|
189
189
|
## checkglobalrestriction
|
|
@@ -198,8 +198,8 @@ Result:
|
|
|
198
198
|
"true/false", (boolean) If the restricted asset is frozen globally
|
|
199
199
|
|
|
200
200
|
Examples:
|
|
201
|
-
>
|
|
202
|
-
> 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:
|
|
201
|
+
> neurai-cli checkglobalrestriction "restricted_name"
|
|
202
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "checkglobalrestriction", "params": ["restricted_name"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
203
203
|
|
|
204
204
|
<br> <br/>
|
|
205
205
|
## clearbanned
|
|
@@ -208,8 +208,8 @@ Examples:
|
|
|
208
208
|
Clear all banned IPs.
|
|
209
209
|
|
|
210
210
|
Examples:
|
|
211
|
-
>
|
|
212
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearbanned", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
211
|
+
> neurai-cli clearbanned
|
|
212
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearbanned", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
213
213
|
|
|
214
214
|
<br> <br/>
|
|
215
215
|
## clearmempool
|
|
@@ -218,8 +218,8 @@ Examples:
|
|
|
218
218
|
Removes all transaction from the mempool
|
|
219
219
|
|
|
220
220
|
Examples:
|
|
221
|
-
>
|
|
222
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearmempool", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
221
|
+
> neurai-cli clearmempool
|
|
222
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearmempool", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
223
223
|
|
|
224
224
|
<br> <br/>
|
|
225
225
|
## clearmessages
|
|
@@ -232,8 +232,8 @@ Result:[
|
|
|
232
232
|
]
|
|
233
233
|
|
|
234
234
|
Examples:
|
|
235
|
-
>
|
|
236
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearmessages", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
235
|
+
> neurai-cli clearmessages
|
|
236
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearmessages", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
237
237
|
|
|
238
238
|
<br> <br/>
|
|
239
239
|
## combinerawtransaction
|
|
@@ -253,7 +253,7 @@ Result:
|
|
|
253
253
|
"hex" (string) The hex-encoded raw transaction with signature(s)
|
|
254
254
|
|
|
255
255
|
Examples:
|
|
256
|
-
>
|
|
256
|
+
> neurai-cli combinerawtransaction ["myhex1", "myhex2", "myhex3"]
|
|
257
257
|
|
|
258
258
|
<br> <br/>
|
|
259
259
|
## createmultisig
|
|
@@ -264,9 +264,9 @@ It returns a json object with the address and redeemScript.
|
|
|
264
264
|
|
|
265
265
|
Arguments:
|
|
266
266
|
1. nrequired (numeric, required) The number of required signatures out of the n keys or addresses.
|
|
267
|
-
2. "keys" (string, required) A json array of keys which are
|
|
267
|
+
2. "keys" (string, required) A json array of keys which are neurai addresses or hex-encoded public keys
|
|
268
268
|
[
|
|
269
|
-
"key" (string)
|
|
269
|
+
"key" (string) neurai address or hex-encoded public key
|
|
270
270
|
,...
|
|
271
271
|
]
|
|
272
272
|
|
|
@@ -279,10 +279,10 @@ Result:
|
|
|
279
279
|
Examples:
|
|
280
280
|
|
|
281
281
|
Create a multisig address from 2 addresses
|
|
282
|
-
>
|
|
282
|
+
> neurai-cli createmultisig 2 "[\"16sSauSf5pF2UkUwvKGq4qjNRzBZYqgEL5\",\"171sgjn4YtPu27adkKGrdDwzRTxnRkBfKV\"]"
|
|
283
283
|
|
|
284
284
|
As a json rpc call
|
|
285
|
-
> 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:
|
|
285
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "createmultisig", "params": [2, "[\"16sSauSf5pF2UkUwvKGq4qjNRzBZYqgEL5\",\"171sgjn4YtPu27adkKGrdDwzRTxnRkBfKV\"]"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
286
286
|
|
|
287
287
|
<br> <br/>
|
|
288
288
|
## createrawtransaction
|
|
@@ -352,7 +352,7 @@ Arguments:
|
|
|
352
352
|
]
|
|
353
353
|
2. "outputs" (object, required) a json object with outputs
|
|
354
354
|
{
|
|
355
|
-
"address": (string, required) The destination
|
|
355
|
+
"address": (string, required) The destination neurai address.
|
|
356
356
|
Each output must have a different address.
|
|
357
357
|
x.xxx (number or string, required) The XNA amount
|
|
358
358
|
or
|
|
@@ -521,15 +521,15 @@ Result:
|
|
|
521
521
|
"transaction" (string) hex string of the transaction
|
|
522
522
|
|
|
523
523
|
Examples:
|
|
524
|
-
>
|
|
525
|
-
>
|
|
526
|
-
>
|
|
527
|
-
>
|
|
528
|
-
>
|
|
529
|
-
>
|
|
530
|
-
>
|
|
531
|
-
>
|
|
532
|
-
> 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:
|
|
524
|
+
> neurai-cli createrawtransaction "[{\"txid\":\"mycoin\",\"vout\":0}]" "{\"address\":0.01}"
|
|
525
|
+
> neurai-cli createrawtransaction "[{\"txid\":\"mycoin\",\"vout\":0}]" "{\"data\":\"00010203\"}"
|
|
526
|
+
> 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\"}}}"
|
|
527
|
+
> 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\"}}}"
|
|
528
|
+
> 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\"]}}}"
|
|
529
|
+
> neurai-cli createrawtransaction "[{\"txid\":\"mycoin\",\"vout\":0},{\"txid\":\"myasset\",\"vout\":0}]" "{\"address\":{\"transfer\":{\"MYASSET\":50}}}"
|
|
530
|
+
> neurai-cli createrawtransaction "[{\"txid\":\"mycoin\",\"vout\":0},{\"txid\":\"myasset\",\"vout\":0}]" "{\"address\":{\"transferwithmessage\":{\"MYASSET\":50,\"message\":\"hash\",\"expire_time\": utc_time}}}"
|
|
531
|
+
> neurai-cli createrawtransaction "[{\"txid\":\"mycoin\",\"vout\":0},{\"txid\":\"myownership\",\"vout\":0}]" "{\"issuer_address\":{\"reissue\":{\"asset_name\":\"MYASSET\",\"asset_quantity\":2000000}}}"
|
|
532
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "createrawtransaction", "params": ["[{\"txid\":\"mycoin\",\"vout\":0}]", "{\"data\":\"00010203\"}"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
533
533
|
|
|
534
534
|
<br> <br/>
|
|
535
535
|
## decodeblock
|
|
@@ -558,8 +558,8 @@ Result:
|
|
|
558
558
|
}
|
|
559
559
|
|
|
560
560
|
Examples:
|
|
561
|
-
>
|
|
562
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "decodeblock", "params": ["xxxx"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
561
|
+
> neurai-cli decodeblock "xxxx"
|
|
562
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "decodeblock", "params": ["xxxx"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
563
563
|
|
|
564
564
|
<br> <br/>
|
|
565
565
|
## decoderawtransaction
|
|
@@ -606,7 +606,7 @@ Result:
|
|
|
606
606
|
"message" : "message", (string optional) the message if one was sent
|
|
607
607
|
"expire_time" : n, (numeric optional) the message epoch expiration time if one was set
|
|
608
608
|
"addresses" : [ (json array of string)
|
|
609
|
-
"12tvKAXCxZjSmdNbao16dKXC8tRWfcF5oc" (string)
|
|
609
|
+
"12tvKAXCxZjSmdNbao16dKXC8tRWfcF5oc" (string) neurai address
|
|
610
610
|
,...
|
|
611
611
|
]
|
|
612
612
|
}
|
|
@@ -616,8 +616,8 @@ Result:
|
|
|
616
616
|
}
|
|
617
617
|
|
|
618
618
|
Examples:
|
|
619
|
-
>
|
|
620
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "decoderawtransaction", "params": ["hexstring"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
619
|
+
> neurai-cli decoderawtransaction "hexstring"
|
|
620
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "decoderawtransaction", "params": ["hexstring"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
621
621
|
|
|
622
622
|
<br> <br/>
|
|
623
623
|
## decodescript
|
|
@@ -640,7 +640,7 @@ Result:
|
|
|
640
640
|
"expire_time" : n, (numeric optional ) the message epoch expiration time if one was set
|
|
641
641
|
"reqSigs": n, (numeric) The required signatures
|
|
642
642
|
"addresses": [ (json array of string)
|
|
643
|
-
"address" (string)
|
|
643
|
+
"address" (string) neurai address
|
|
644
644
|
,...
|
|
645
645
|
],
|
|
646
646
|
"p2sh":"address", (string) address of P2SH script wrapping this redeem script (not returned if the script is already a P2SH).
|
|
@@ -655,8 +655,8 @@ Result:
|
|
|
655
655
|
}
|
|
656
656
|
|
|
657
657
|
Examples:
|
|
658
|
-
>
|
|
659
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "decodescript", "params": ["hexstring"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
658
|
+
> neurai-cli decodescript "hexstring"
|
|
659
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "decodescript", "params": ["hexstring"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
660
660
|
|
|
661
661
|
<br> <br/>
|
|
662
662
|
## disconnectnode
|
|
@@ -673,10 +673,10 @@ Arguments:
|
|
|
673
673
|
2. "nodeid" (number, optional) The node ID (see getpeerinfo for node IDs)
|
|
674
674
|
|
|
675
675
|
Examples:
|
|
676
|
-
>
|
|
677
|
-
>
|
|
678
|
-
> 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:
|
|
679
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "disconnectnode", "params": ["", 1] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
676
|
+
> neurai-cli disconnectnode "192.168.0.6:8767"
|
|
677
|
+
> neurai-cli disconnectnode "" 1
|
|
678
|
+
> 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:19001/
|
|
679
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "disconnectnode", "params": ["", 1] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
680
680
|
|
|
681
681
|
<br> <br/>
|
|
682
682
|
## distributereward
|
|
@@ -711,10 +711,10 @@ Result:
|
|
|
711
711
|
}
|
|
712
712
|
|
|
713
713
|
Examples:
|
|
714
|
-
>
|
|
715
|
-
>
|
|
716
|
-
> 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:
|
|
717
|
-
> 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:
|
|
714
|
+
> neurai-cli distributereward "TRONCO" 12345 "XNA" 1000
|
|
715
|
+
> neurai-cli distributereward "PHATSTACKS" 12345 "DIVIDENDS" 1000 "mwN7xC3yomYdvJuVXkVC7ymY9wNBjWNduD,n4Rf18edydDaRBh7t6gHUbuByLbWEoWUTg"
|
|
716
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "distributereward", "params": ["TRONCO" 34987 "DIVIDENDS" 100000] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
717
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "distributereward", "params": ["PHATSTACKS" 34987 "XNA" 100000 "mwN7xC3yomYdvJuVXkVC7ymY9wNBjWNduD,n4Rf18edydDaRBh7t6gHUbuByLbWEoWUTg"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
718
718
|
|
|
719
719
|
<br> <br/>
|
|
720
720
|
## dumpprivkey
|
|
@@ -724,15 +724,15 @@ Reveals the private key corresponding to 'address'.
|
|
|
724
724
|
Then the importprivkey can be used with this output
|
|
725
725
|
|
|
726
726
|
Arguments:
|
|
727
|
-
1. "address" (string, required) The
|
|
727
|
+
1. "address" (string, required) The neurai address for the private key
|
|
728
728
|
|
|
729
729
|
Result:
|
|
730
730
|
"key" (string) The private key
|
|
731
731
|
|
|
732
732
|
Examples:
|
|
733
|
-
>
|
|
734
|
-
>
|
|
735
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "dumpprivkey", "params": ["myaddress"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
733
|
+
> neurai-cli dumpprivkey "myaddress"
|
|
734
|
+
> neurai-cli importprivkey "mykey"
|
|
735
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "dumpprivkey", "params": ["myaddress"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
736
736
|
|
|
737
737
|
<br> <br/>
|
|
738
738
|
## dumpwallet
|
|
@@ -741,7 +741,7 @@ Examples:
|
|
|
741
741
|
Dumps all wallet keys in a human-readable format to a server-side file. This does not allow overwriting existing files.
|
|
742
742
|
|
|
743
743
|
Arguments:
|
|
744
|
-
1. "filename" (string, required) The filename with path (either absolute or relative to
|
|
744
|
+
1. "filename" (string, required) The filename with path (either absolute or relative to neuraid)
|
|
745
745
|
|
|
746
746
|
Result:
|
|
747
747
|
{ (json object)
|
|
@@ -749,8 +749,8 @@ Result:
|
|
|
749
749
|
}
|
|
750
750
|
|
|
751
751
|
Examples:
|
|
752
|
-
>
|
|
753
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "dumpwallet", "params": ["test"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
752
|
+
> neurai-cli dumpwallet "test"
|
|
753
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "dumpwallet", "params": ["test"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
754
754
|
|
|
755
755
|
<br> <br/>
|
|
756
756
|
## encryptwallet
|
|
@@ -769,19 +769,19 @@ Arguments:
|
|
|
769
769
|
Examples:
|
|
770
770
|
|
|
771
771
|
Encrypt your wallet
|
|
772
|
-
>
|
|
772
|
+
> neurai-cli encryptwallet "my pass phrase"
|
|
773
773
|
|
|
774
|
-
Now set the passphrase to use the wallet, such as for signing or sending
|
|
775
|
-
>
|
|
774
|
+
Now set the passphrase to use the wallet, such as for signing or sending neurai
|
|
775
|
+
> neurai-cli walletpassphrase "my pass phrase"
|
|
776
776
|
|
|
777
777
|
Now we can do something like sign
|
|
778
|
-
>
|
|
778
|
+
> neurai-cli signmessage "address" "test message"
|
|
779
779
|
|
|
780
780
|
Now lock the wallet again by removing the passphrase
|
|
781
|
-
>
|
|
781
|
+
> neurai-cli walletlock
|
|
782
782
|
|
|
783
783
|
As a json rpc call
|
|
784
|
-
> 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:
|
|
784
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "encryptwallet", "params": ["my pass phrase"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
785
785
|
|
|
786
786
|
<br> <br/>
|
|
787
787
|
## estimatefee
|
|
@@ -804,7 +804,7 @@ have been observed to make an estimate.
|
|
|
804
804
|
a fee that is high enough to get reliably included in the next block.
|
|
805
805
|
|
|
806
806
|
Example:
|
|
807
|
-
>
|
|
807
|
+
> neurai-cli estimatefee 6
|
|
808
808
|
|
|
809
809
|
<br> <br/>
|
|
810
810
|
## estimatesmartfee
|
|
@@ -840,7 +840,7 @@ An error is returned if not enough transactions and blocks
|
|
|
840
840
|
have been observed to make an estimate for any number of blocks.
|
|
841
841
|
|
|
842
842
|
Example:
|
|
843
|
-
>
|
|
843
|
+
> neurai-cli estimatesmartfee 6
|
|
844
844
|
|
|
845
845
|
<br> <br/>
|
|
846
846
|
## freezeaddress
|
|
@@ -858,10 +858,10 @@ Result:
|
|
|
858
858
|
"txid" (string) The transaction id
|
|
859
859
|
|
|
860
860
|
Examples:
|
|
861
|
-
>
|
|
862
|
-
> 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:
|
|
863
|
-
>
|
|
864
|
-
> 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:
|
|
861
|
+
> neurai-cli freezeaddress "$RESTRICTED_ASSET" "address"
|
|
862
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "freezeaddress", "params": ["$RESTRICTED_ASSET" "address"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
863
|
+
> neurai-cli freezeaddress "$RESTRICTED_ASSET" "address" "change_address"
|
|
864
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "freezeaddress", "params": ["$RESTRICTED_ASSET" "address" "change_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
865
865
|
|
|
866
866
|
<br> <br/>
|
|
867
867
|
## freezerestrictedasset
|
|
@@ -878,10 +878,10 @@ Result:
|
|
|
878
878
|
"txid" (string) The transaction id
|
|
879
879
|
|
|
880
880
|
Examples:
|
|
881
|
-
>
|
|
882
|
-
> 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:
|
|
883
|
-
>
|
|
884
|
-
> 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:
|
|
881
|
+
> neurai-cli freezerestrictedasset "$RESTRICTED_ASSET"
|
|
882
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "freezerestrictedasset", "params": ["$RESTRICTED_ASSET"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
883
|
+
> neurai-cli freezerestrictedasset "$RESTRICTED_ASSET" "change_address"
|
|
884
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "freezerestrictedasset", "params": ["$RESTRICTED_ASSET" "change_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
885
885
|
|
|
886
886
|
<br> <br/>
|
|
887
887
|
## fundrawtransaction
|
|
@@ -902,7 +902,7 @@ Arguments:
|
|
|
902
902
|
1. "hexstring" (string, required) The hex string of the raw transaction
|
|
903
903
|
2. options (object, optional)
|
|
904
904
|
{
|
|
905
|
-
"changeAddress" (string, optional, default pool address) The
|
|
905
|
+
"changeAddress" (string, optional, default pool address) The neurai address to receive the change
|
|
906
906
|
"changePosition" (numeric, optional, default random) The index of the change output
|
|
907
907
|
"includeWatching" (boolean, optional, default false) Also select inputs which are watch only
|
|
908
908
|
"lockUnspents" (boolean, optional, default false) Lock selected unspent outputs
|
|
@@ -910,7 +910,7 @@ Arguments:
|
|
|
910
910
|
"subtractFeeFromOutputs" (array, optional) A json array of integers.
|
|
911
911
|
The fee will be equally deducted from the amount of each specified output.
|
|
912
912
|
The outputs are specified by their zero-based index, before any change output is added.
|
|
913
|
-
Those recipients will receive less
|
|
913
|
+
Those recipients will receive less neurais than you enter in their corresponding amount field.
|
|
914
914
|
If no outputs are specified here, the sender pays the fee.
|
|
915
915
|
[vout_index,...]
|
|
916
916
|
Allows this transaction to be replaced by a transaction with higher fees
|
|
@@ -932,16 +932,16 @@ Result:
|
|
|
932
932
|
Examples:
|
|
933
933
|
|
|
934
934
|
Create a transaction with no inputs
|
|
935
|
-
>
|
|
935
|
+
> neurai-cli createrawtransaction "[]" "{\"myaddress\":0.01}"
|
|
936
936
|
|
|
937
937
|
Add sufficient unsigned inputs to meet the output value
|
|
938
|
-
>
|
|
938
|
+
> neurai-cli fundrawtransaction "rawtransactionhex"
|
|
939
939
|
|
|
940
940
|
Sign the transaction
|
|
941
|
-
>
|
|
941
|
+
> neurai-cli signrawtransaction "fundedtransactionhex"
|
|
942
942
|
|
|
943
943
|
Send the transaction
|
|
944
|
-
>
|
|
944
|
+
> neurai-cli sendrawtransaction "signedtransactionhex"
|
|
945
945
|
|
|
946
946
|
<br> <br/>
|
|
947
947
|
## generate
|
|
@@ -959,7 +959,7 @@ Result:
|
|
|
959
959
|
Examples:
|
|
960
960
|
|
|
961
961
|
Generate 11 blocks
|
|
962
|
-
>
|
|
962
|
+
> neurai-cli generate 11
|
|
963
963
|
|
|
964
964
|
<br> <br/>
|
|
965
965
|
## generatetoaddress
|
|
@@ -969,7 +969,7 @@ Mine blocks immediately to a specified address (before the RPC call returns)
|
|
|
969
969
|
|
|
970
970
|
Arguments:
|
|
971
971
|
1. nblocks (numeric, required) How many blocks are generated immediately.
|
|
972
|
-
2. address (string, required) The address to send the newly generated
|
|
972
|
+
2. address (string, required) The address to send the newly generated neurai to.
|
|
973
973
|
3. maxtries (numeric, optional) How many iterations to try (default = 1000000).
|
|
974
974
|
|
|
975
975
|
Result:
|
|
@@ -978,7 +978,7 @@ Result:
|
|
|
978
978
|
Examples:
|
|
979
979
|
|
|
980
980
|
Generate 11 blocks to myaddress
|
|
981
|
-
>
|
|
981
|
+
> neurai-cli generatetoaddress 11 "myaddress"
|
|
982
982
|
|
|
983
983
|
<br> <br/>
|
|
984
984
|
## getaccount
|
|
@@ -987,32 +987,32 @@ Generate 11 blocks to myaddress
|
|
|
987
987
|
DEPRECATED. Returns the account associated with the given address.
|
|
988
988
|
|
|
989
989
|
Arguments:
|
|
990
|
-
1. "address" (string, required) The
|
|
990
|
+
1. "address" (string, required) The neurai address for account lookup.
|
|
991
991
|
|
|
992
992
|
Result:
|
|
993
993
|
"accountname" (string) the account address
|
|
994
994
|
|
|
995
995
|
Examples:
|
|
996
|
-
>
|
|
997
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaccount", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
996
|
+
> neurai-cli getaccount "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX"
|
|
997
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaccount", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
998
998
|
|
|
999
999
|
<br> <br/>
|
|
1000
1000
|
## getaccountaddress
|
|
1001
1001
|
<br/> getaccountaddress "account"
|
|
1002
1002
|
|
|
1003
|
-
DEPRECATED. Returns the current
|
|
1003
|
+
DEPRECATED. Returns the current Neurai address for receiving payments to this account.
|
|
1004
1004
|
|
|
1005
1005
|
Arguments:
|
|
1006
1006
|
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.
|
|
1007
1007
|
|
|
1008
1008
|
Result:
|
|
1009
|
-
"address" (string) The account
|
|
1009
|
+
"address" (string) The account neurai address
|
|
1010
1010
|
|
|
1011
1011
|
Examples:
|
|
1012
|
-
>
|
|
1013
|
-
>
|
|
1014
|
-
>
|
|
1015
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaccountaddress", "params": ["myaccount"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1012
|
+
> neurai-cli getaccountaddress
|
|
1013
|
+
> neurai-cli getaccountaddress ""
|
|
1014
|
+
> neurai-cli getaccountaddress "myaccount"
|
|
1015
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaccountaddress", "params": ["myaccount"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1016
1016
|
|
|
1017
1017
|
<br> <br/>
|
|
1018
1018
|
## getaddednodeinfo
|
|
@@ -1031,7 +1031,7 @@ Result:
|
|
|
1031
1031
|
"connected" : true|false, (boolean) If connected
|
|
1032
1032
|
"addresses" : [ (list of objects) Only when connected = true
|
|
1033
1033
|
{
|
|
1034
|
-
"address" : "192.168.0.201:8767", (string) The
|
|
1034
|
+
"address" : "192.168.0.201:8767", (string) The neurai server IP and port we're connected to
|
|
1035
1035
|
"connected" : "outbound" (string) connection, inbound or outbound
|
|
1036
1036
|
}
|
|
1037
1037
|
]
|
|
@@ -1040,8 +1040,8 @@ Result:
|
|
|
1040
1040
|
]
|
|
1041
1041
|
|
|
1042
1042
|
Examples:
|
|
1043
|
-
>
|
|
1044
|
-
> 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:
|
|
1043
|
+
> neurai-cli getaddednodeinfo "192.168.0.201"
|
|
1044
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddednodeinfo", "params": ["192.168.0.201"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1045
1045
|
|
|
1046
1046
|
<br> <br/>
|
|
1047
1047
|
## getaddressbalance
|
|
@@ -1075,10 +1075,10 @@ OR
|
|
|
1075
1075
|
|
|
1076
1076
|
]
|
|
1077
1077
|
Examples:
|
|
1078
|
-
>
|
|
1079
|
-
>
|
|
1080
|
-
> 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:
|
|
1081
|
-
> 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:
|
|
1078
|
+
> neurai-cli getaddressbalance '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}'
|
|
1079
|
+
> neurai-cli getaddressbalance '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}', true
|
|
1080
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressbalance", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1081
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressbalance", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}, true] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1082
1082
|
|
|
1083
1083
|
<br> <br/>
|
|
1084
1084
|
## getaddressdeltas
|
|
@@ -1112,10 +1112,10 @@ Result:
|
|
|
1112
1112
|
]
|
|
1113
1113
|
|
|
1114
1114
|
Examples:
|
|
1115
|
-
>
|
|
1116
|
-
> 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:
|
|
1117
|
-
>
|
|
1118
|
-
> 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:
|
|
1115
|
+
> neurai-cli getaddressdeltas '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}'
|
|
1116
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressdeltas", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1117
|
+
> neurai-cli getaddressdeltas '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"],"assetName":"MY_ASSET"}'
|
|
1118
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressdeltas", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"],"assetName":"MY_ASSET"}] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1119
1119
|
|
|
1120
1120
|
<br> <br/>
|
|
1121
1121
|
## getaddressesbyaccount
|
|
@@ -1128,13 +1128,13 @@ Arguments:
|
|
|
1128
1128
|
|
|
1129
1129
|
Result:
|
|
1130
1130
|
[ (json array of string)
|
|
1131
|
-
"address" (string) a
|
|
1131
|
+
"address" (string) a neurai address associated with the given account
|
|
1132
1132
|
,...
|
|
1133
1133
|
]
|
|
1134
1134
|
|
|
1135
1135
|
Examples:
|
|
1136
|
-
>
|
|
1137
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressesbyaccount", "params": ["tabby"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1136
|
+
> neurai-cli getaddressesbyaccount "tabby"
|
|
1137
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressesbyaccount", "params": ["tabby"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1138
1138
|
|
|
1139
1139
|
<br> <br/>
|
|
1140
1140
|
## getaddressmempool
|
|
@@ -1167,10 +1167,10 @@ Result:
|
|
|
1167
1167
|
]
|
|
1168
1168
|
|
|
1169
1169
|
Examples:
|
|
1170
|
-
>
|
|
1171
|
-
> 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:
|
|
1172
|
-
>
|
|
1173
|
-
> 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:
|
|
1170
|
+
> neurai-cli getaddressmempool '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}'
|
|
1171
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressmempool", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1172
|
+
> neurai-cli getaddressmempool '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}', true
|
|
1173
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressmempool", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}, true] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1174
1174
|
|
|
1175
1175
|
<br> <br/>
|
|
1176
1176
|
## getaddresstxids
|
|
@@ -1197,10 +1197,10 @@ Result:
|
|
|
1197
1197
|
]
|
|
1198
1198
|
|
|
1199
1199
|
Examples:
|
|
1200
|
-
>
|
|
1201
|
-
> 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:
|
|
1202
|
-
>
|
|
1203
|
-
> 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:
|
|
1200
|
+
> neurai-cli getaddresstxids '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}'
|
|
1201
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddresstxids", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1202
|
+
> neurai-cli getaddresstxids '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}', true
|
|
1203
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddresstxids", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}, true] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1204
1204
|
|
|
1205
1205
|
<br> <br/>
|
|
1206
1206
|
## getaddressutxos
|
|
@@ -1233,10 +1233,10 @@ Result
|
|
|
1233
1233
|
]
|
|
1234
1234
|
|
|
1235
1235
|
Examples:
|
|
1236
|
-
>
|
|
1237
|
-
> 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:
|
|
1238
|
-
>
|
|
1239
|
-
> 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:
|
|
1236
|
+
> neurai-cli getaddressutxos '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}'
|
|
1237
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressutxos", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1238
|
+
> neurai-cli getaddressutxos '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"],"assetName":"MY_ASSET"}'
|
|
1239
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressutxos", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"],"assetName":"MY_ASSET"}] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1240
1240
|
|
|
1241
1241
|
<br> <br/>
|
|
1242
1242
|
## getassetdata
|
|
@@ -1260,8 +1260,8 @@ Result:
|
|
|
1260
1260
|
}
|
|
1261
1261
|
|
|
1262
1262
|
Examples:
|
|
1263
|
-
>
|
|
1264
|
-
> 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:
|
|
1263
|
+
> neurai-cli getassetdata "ASSET_NAME"
|
|
1264
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getassetdata", "params": ["ASSET_NAME"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1265
1265
|
|
|
1266
1266
|
<br> <br/>
|
|
1267
1267
|
## getbalance
|
|
@@ -1294,13 +1294,13 @@ amount (numeric) The total amount in XNA received for this account.
|
|
|
1294
1294
|
Examples:
|
|
1295
1295
|
|
|
1296
1296
|
The total amount in the wallet with 1 or more confirmations
|
|
1297
|
-
>
|
|
1297
|
+
> neurai-cli getbalance
|
|
1298
1298
|
|
|
1299
1299
|
The total amount in the wallet at least 6 blocks confirmed
|
|
1300
|
-
>
|
|
1300
|
+
> neurai-cli getbalance "*" 6
|
|
1301
1301
|
|
|
1302
1302
|
As a json rpc call
|
|
1303
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getbalance", "params": ["*", 6] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1303
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getbalance", "params": ["*", 6] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1304
1304
|
|
|
1305
1305
|
<br> <br/>
|
|
1306
1306
|
## getbestblockhash
|
|
@@ -1312,8 +1312,8 @@ Result:
|
|
|
1312
1312
|
"hex" (string) the block hash hex encoded
|
|
1313
1313
|
|
|
1314
1314
|
Examples:
|
|
1315
|
-
>
|
|
1316
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getbestblockhash", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1315
|
+
> neurai-cli getbestblockhash
|
|
1316
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getbestblockhash", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1317
1317
|
|
|
1318
1318
|
<br> <br/>
|
|
1319
1319
|
## getblock
|
|
@@ -1365,8 +1365,8 @@ Result (for verbosity = 2):
|
|
|
1365
1365
|
}
|
|
1366
1366
|
|
|
1367
1367
|
Examples:
|
|
1368
|
-
>
|
|
1369
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblock", "params": ["00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1368
|
+
> neurai-cli getblock "00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"
|
|
1369
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblock", "params": ["00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1370
1370
|
|
|
1371
1371
|
<br> <br/>
|
|
1372
1372
|
## getblockchaininfo
|
|
@@ -1417,8 +1417,8 @@ Result:
|
|
|
1417
1417
|
}
|
|
1418
1418
|
|
|
1419
1419
|
Examples:
|
|
1420
|
-
>
|
|
1421
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockchaininfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1420
|
+
> neurai-cli getblockchaininfo
|
|
1421
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockchaininfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1422
1422
|
|
|
1423
1423
|
<br> <br/>
|
|
1424
1424
|
## getblockcount
|
|
@@ -1430,8 +1430,8 @@ Result:
|
|
|
1430
1430
|
n (numeric) The current block count
|
|
1431
1431
|
|
|
1432
1432
|
Examples:
|
|
1433
|
-
>
|
|
1434
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockcount", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1433
|
+
> neurai-cli getblockcount
|
|
1434
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockcount", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1435
1435
|
|
|
1436
1436
|
<br> <br/>
|
|
1437
1437
|
## getblockhash
|
|
@@ -1446,8 +1446,8 @@ Result:
|
|
|
1446
1446
|
"hash" (string) The block hash
|
|
1447
1447
|
|
|
1448
1448
|
Examples:
|
|
1449
|
-
>
|
|
1450
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockhash", "params": [1000] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1449
|
+
> neurai-cli getblockhash 1000
|
|
1450
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockhash", "params": [1000] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1451
1451
|
|
|
1452
1452
|
<br> <br/>
|
|
1453
1453
|
## getblockhashes
|
|
@@ -1476,9 +1476,9 @@ Result:
|
|
|
1476
1476
|
]
|
|
1477
1477
|
|
|
1478
1478
|
Examples:
|
|
1479
|
-
>
|
|
1480
|
-
> 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:
|
|
1481
|
-
>
|
|
1479
|
+
> neurai-cli getblockhashes 1231614698 1231024505
|
|
1480
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockhashes", "params": [1231614698, 1231024505] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1481
|
+
> neurai-cli getblockhashes 1231614698 1231024505 '{"noOrphans":false, "logicalTimes":true}'
|
|
1482
1482
|
|
|
1483
1483
|
<br> <br/>
|
|
1484
1484
|
## getblockheader
|
|
@@ -1513,8 +1513,8 @@ Result (for verbose=false):
|
|
|
1513
1513
|
"data" (string) A string that is serialized, hex-encoded data for block 'hash'.
|
|
1514
1514
|
|
|
1515
1515
|
Examples:
|
|
1516
|
-
>
|
|
1517
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockheader", "params": ["00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1516
|
+
> neurai-cli getblockheader "00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"
|
|
1517
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockheader", "params": ["00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1518
1518
|
|
|
1519
1519
|
<br> <br/>
|
|
1520
1520
|
## getblocktemplate
|
|
@@ -1523,10 +1523,10 @@ Examples:
|
|
|
1523
1523
|
If the request parameters include a 'mode' key, that is used to explicitly select between the default 'template' request or a 'proposal'.
|
|
1524
1524
|
It returns data needed to construct a block to work on.
|
|
1525
1525
|
For full specification, see BIPs 22, 23, 9, and 145:
|
|
1526
|
-
https://github.com/
|
|
1527
|
-
https://github.com/
|
|
1528
|
-
https://github.com/
|
|
1529
|
-
https://github.com/
|
|
1526
|
+
https://github.com/neurai/bips/blob/master/bip-0022.mediawiki
|
|
1527
|
+
https://github.com/neurai/bips/blob/master/bip-0023.mediawiki
|
|
1528
|
+
https://github.com/neurai/bips/blob/master/bip-0009.mediawiki#getblocktemplate_changes
|
|
1529
|
+
https://github.com/neurai/bips/blob/master/bip-0145.mediawiki
|
|
1530
1530
|
|
|
1531
1531
|
Arguments:
|
|
1532
1532
|
1. template_request (json object, optional) A json object in the following spec
|
|
@@ -1590,8 +1590,8 @@ Result:
|
|
|
1590
1590
|
}
|
|
1591
1591
|
|
|
1592
1592
|
Examples:
|
|
1593
|
-
>
|
|
1594
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblocktemplate", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1593
|
+
> neurai-cli getblocktemplate
|
|
1594
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblocktemplate", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1595
1595
|
|
|
1596
1596
|
<br> <br/>
|
|
1597
1597
|
## getcacheinfo
|
|
@@ -1611,8 +1611,8 @@ Result:
|
|
|
1611
1611
|
]
|
|
1612
1612
|
|
|
1613
1613
|
Examples:
|
|
1614
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getcacheinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1615
|
-
>
|
|
1614
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getcacheinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1615
|
+
> neurai-cli getcacheinfo
|
|
1616
1616
|
|
|
1617
1617
|
<br> <br/>
|
|
1618
1618
|
## getchaintips
|
|
@@ -1642,8 +1642,8 @@ Possible values for status:
|
|
|
1642
1642
|
5. "active" This is the tip of the active main chain, which is certainly valid
|
|
1643
1643
|
|
|
1644
1644
|
Examples:
|
|
1645
|
-
>
|
|
1646
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getchaintips", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1645
|
+
> neurai-cli getchaintips
|
|
1646
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getchaintips", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1647
1647
|
|
|
1648
1648
|
<br> <br/>
|
|
1649
1649
|
## getchaintxstats
|
|
@@ -1666,8 +1666,8 @@ Result:
|
|
|
1666
1666
|
}
|
|
1667
1667
|
|
|
1668
1668
|
Examples:
|
|
1669
|
-
>
|
|
1670
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getchaintxstats", "params": [2016] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1669
|
+
> neurai-cli getchaintxstats
|
|
1670
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getchaintxstats", "params": [2016] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1671
1671
|
|
|
1672
1672
|
<br> <br/>
|
|
1673
1673
|
## getconnectioncount
|
|
@@ -1679,8 +1679,8 @@ Result:
|
|
|
1679
1679
|
n (numeric) The connection count
|
|
1680
1680
|
|
|
1681
1681
|
Examples:
|
|
1682
|
-
>
|
|
1683
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getconnectioncount", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1682
|
+
> neurai-cli getconnectioncount
|
|
1683
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getconnectioncount", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1684
1684
|
|
|
1685
1685
|
<br> <br/>
|
|
1686
1686
|
## getdifficulty
|
|
@@ -1692,8 +1692,8 @@ Result:
|
|
|
1692
1692
|
n.nnn (numeric) the proof-of-work difficulty as a multiple of the minimum difficulty.
|
|
1693
1693
|
|
|
1694
1694
|
Examples:
|
|
1695
|
-
>
|
|
1696
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getdifficulty", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1695
|
+
> neurai-cli getdifficulty
|
|
1696
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getdifficulty", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1697
1697
|
|
|
1698
1698
|
<br> <br/>
|
|
1699
1699
|
## getdistributestatus
|
|
@@ -1709,25 +1709,25 @@ Arguments:
|
|
|
1709
1709
|
5. "exception_addresses" (string, optional) Ownership addresses that should be excluded
|
|
1710
1710
|
|
|
1711
1711
|
Examples:
|
|
1712
|
-
>
|
|
1713
|
-
>
|
|
1714
|
-
> 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:
|
|
1715
|
-
> 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:
|
|
1712
|
+
> neurai-cli getdistributestatus "TRONCO" 12345 "XNA" 1000
|
|
1713
|
+
> neurai-cli getdistributestatus "PHATSTACKS" 12345 "DIVIDENDS" 1000 "mwN7xC3yomYdvJuVXkVC7ymY9wNBjWNduD,n4Rf18edydDaRBh7t6gHUbuByLbWEoWUTg"
|
|
1714
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getdistributestatus", "params": ["TRONCO" 34987 "DIVIDENDS" 100000] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1715
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getdistributestatus", "params": ["PHATSTACKS" 34987 "XNA" 100000 "mwN7xC3yomYdvJuVXkVC7ymY9wNBjWNduD,n4Rf18edydDaRBh7t6gHUbuByLbWEoWUTg"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1716
1716
|
|
|
1717
1717
|
<br> <br/>
|
|
1718
1718
|
## getgenerate
|
|
1719
1719
|
<br/> getgenerate
|
|
1720
1720
|
|
|
1721
1721
|
Return if the server is set to generate coins or not. The default is false.
|
|
1722
|
-
It is set with the command line argument -gen (or
|
|
1722
|
+
It is set with the command line argument -gen (or neurai.conf setting gen)
|
|
1723
1723
|
It can also be set with the setgenerate call.
|
|
1724
1724
|
|
|
1725
1725
|
Result
|
|
1726
1726
|
true|false (boolean) If the server is set to generate coins or not
|
|
1727
1727
|
|
|
1728
1728
|
Examples:
|
|
1729
|
-
>
|
|
1730
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getgenerate", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1729
|
+
> neurai-cli getgenerate
|
|
1730
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getgenerate", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1731
1731
|
|
|
1732
1732
|
<br> <br/>
|
|
1733
1733
|
## getinfo
|
|
@@ -1757,8 +1757,8 @@ Result:
|
|
|
1757
1757
|
}
|
|
1758
1758
|
|
|
1759
1759
|
Examples:
|
|
1760
|
-
>
|
|
1761
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1760
|
+
> neurai-cli getinfo
|
|
1761
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1762
1762
|
|
|
1763
1763
|
<br> <br/>
|
|
1764
1764
|
## getkawpowhash
|
|
@@ -1776,8 +1776,8 @@ Arguments
|
|
|
1776
1776
|
Result:
|
|
1777
1777
|
|
|
1778
1778
|
Examples:
|
|
1779
|
-
>
|
|
1780
|
-
> 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:
|
|
1779
|
+
> neurai-cli getkawpowhash "header_hash" "mix_hash" "0x100000" 2456
|
|
1780
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getkawpowhash", "params": ["header_hash" "mix_hash" "0x100000" 2456] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1781
1781
|
|
|
1782
1782
|
<br> <br/>
|
|
1783
1783
|
## getmasterkeyinfo
|
|
@@ -1795,8 +1795,8 @@ Result:
|
|
|
1795
1795
|
}
|
|
1796
1796
|
|
|
1797
1797
|
Examples:
|
|
1798
|
-
>
|
|
1799
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmasterkeyinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1798
|
+
> neurai-cli getmasterkeyinfo
|
|
1799
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmasterkeyinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1800
1800
|
|
|
1801
1801
|
<br> <br/>
|
|
1802
1802
|
## getmemoryinfo
|
|
@@ -1823,8 +1823,8 @@ Result (mode "mallocinfo"):
|
|
|
1823
1823
|
"<malloc version="1">..."
|
|
1824
1824
|
|
|
1825
1825
|
Examples:
|
|
1826
|
-
>
|
|
1827
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmemoryinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1826
|
+
> neurai-cli getmemoryinfo
|
|
1827
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmemoryinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1828
1828
|
|
|
1829
1829
|
<br> <br/>
|
|
1830
1830
|
## getmempoolancestors
|
|
@@ -1864,8 +1864,8 @@ Result (for verbose=true):
|
|
|
1864
1864
|
}
|
|
1865
1865
|
|
|
1866
1866
|
Examples:
|
|
1867
|
-
>
|
|
1868
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempoolancestors", "params": ["mytxid"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1867
|
+
> neurai-cli getmempoolancestors "mytxid"
|
|
1868
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempoolancestors", "params": ["mytxid"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1869
1869
|
|
|
1870
1870
|
<br> <br/>
|
|
1871
1871
|
## getmempooldescendants
|
|
@@ -1905,8 +1905,8 @@ Result (for verbose=true):
|
|
|
1905
1905
|
}
|
|
1906
1906
|
|
|
1907
1907
|
Examples:
|
|
1908
|
-
>
|
|
1909
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempooldescendants", "params": ["mytxid"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1908
|
+
> neurai-cli getmempooldescendants "mytxid"
|
|
1909
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempooldescendants", "params": ["mytxid"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1910
1910
|
|
|
1911
1911
|
<br> <br/>
|
|
1912
1912
|
## getmempoolentry
|
|
@@ -1937,8 +1937,8 @@ Result:
|
|
|
1937
1937
|
}
|
|
1938
1938
|
|
|
1939
1939
|
Examples:
|
|
1940
|
-
>
|
|
1941
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempoolentry", "params": ["mytxid"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1940
|
+
> neurai-cli getmempoolentry "mytxid"
|
|
1941
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempoolentry", "params": ["mytxid"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1942
1942
|
|
|
1943
1943
|
<br> <br/>
|
|
1944
1944
|
## getmempoolinfo
|
|
@@ -1956,8 +1956,8 @@ Result:
|
|
|
1956
1956
|
}
|
|
1957
1957
|
|
|
1958
1958
|
Examples:
|
|
1959
|
-
>
|
|
1960
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempoolinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1959
|
+
> neurai-cli getmempoolinfo
|
|
1960
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempoolinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1961
1961
|
|
|
1962
1962
|
<br> <br/>
|
|
1963
1963
|
## getmininginfo
|
|
@@ -1975,12 +1975,12 @@ Result:
|
|
|
1975
1975
|
"pooledtx": n (numeric) The size of the mempool
|
|
1976
1976
|
"chain": "xxxx", (string) current network name as defined in BIP70 (main, test, regtest)
|
|
1977
1977
|
"warnings": "..." (string) any network and blockchain warnings
|
|
1978
|
-
"errors": "..." (string) DEPRECATED. Same as warnings. Only shown when
|
|
1978
|
+
"errors": "..." (string) DEPRECATED. Same as warnings. Only shown when neuraid is started with -deprecatedrpc=getmininginfo
|
|
1979
1979
|
}
|
|
1980
1980
|
|
|
1981
1981
|
Examples:
|
|
1982
|
-
>
|
|
1983
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmininginfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1982
|
+
> neurai-cli getmininginfo
|
|
1983
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmininginfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1984
1984
|
|
|
1985
1985
|
<br> <br/>
|
|
1986
1986
|
## getmywords
|
|
@@ -1994,8 +1994,8 @@ Result:
|
|
|
1994
1994
|
"passphrase:" (optional) Only show if passphrase was used when creating the wallet
|
|
1995
1995
|
|
|
1996
1996
|
Examples:
|
|
1997
|
-
>
|
|
1998
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmywords", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1997
|
+
> neurai-cli getmywords
|
|
1998
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmywords", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1999
1999
|
|
|
2000
2000
|
<br> <br/>
|
|
2001
2001
|
## getnettotals
|
|
@@ -2021,8 +2021,8 @@ Result:
|
|
|
2021
2021
|
}
|
|
2022
2022
|
|
|
2023
2023
|
Examples:
|
|
2024
|
-
>
|
|
2025
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnettotals", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2024
|
+
> neurai-cli getnettotals
|
|
2025
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnettotals", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2026
2026
|
|
|
2027
2027
|
<br> <br/>
|
|
2028
2028
|
## getnetworkhashps
|
|
@@ -2040,8 +2040,8 @@ Result:
|
|
|
2040
2040
|
x (numeric) Hashes per second estimated
|
|
2041
2041
|
|
|
2042
2042
|
Examples:
|
|
2043
|
-
>
|
|
2044
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnetworkhashps", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2043
|
+
> neurai-cli getnetworkhashps
|
|
2044
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnetworkhashps", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2045
2045
|
|
|
2046
2046
|
<br> <br/>
|
|
2047
2047
|
## getnetworkinfo
|
|
@@ -2082,14 +2082,14 @@ Result:
|
|
|
2082
2082
|
}
|
|
2083
2083
|
|
|
2084
2084
|
Examples:
|
|
2085
|
-
>
|
|
2086
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnetworkinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2085
|
+
> neurai-cli getnetworkinfo
|
|
2086
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnetworkinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2087
2087
|
|
|
2088
2088
|
<br> <br/>
|
|
2089
2089
|
## getnewaddress
|
|
2090
2090
|
<br/> getnewaddress ( "account" )
|
|
2091
2091
|
|
|
2092
|
-
Returns a new
|
|
2092
|
+
Returns a new Neurai address for receiving payments.
|
|
2093
2093
|
If 'account' is specified (DEPRECATED), it is added to the address book
|
|
2094
2094
|
so payments received with the address will be credited to 'account'.
|
|
2095
2095
|
|
|
@@ -2097,11 +2097,11 @@ Arguments:
|
|
|
2097
2097
|
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.
|
|
2098
2098
|
|
|
2099
2099
|
Result:
|
|
2100
|
-
"address" (string) The new
|
|
2100
|
+
"address" (string) The new neurai address
|
|
2101
2101
|
|
|
2102
2102
|
Examples:
|
|
2103
|
-
>
|
|
2104
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnewaddress", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2103
|
+
> neurai-cli getnewaddress
|
|
2104
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnewaddress", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2105
2105
|
|
|
2106
2106
|
<br> <br/>
|
|
2107
2107
|
## getpeerinfo
|
|
@@ -2153,22 +2153,22 @@ Result:
|
|
|
2153
2153
|
]
|
|
2154
2154
|
|
|
2155
2155
|
Examples:
|
|
2156
|
-
>
|
|
2157
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getpeerinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2156
|
+
> neurai-cli getpeerinfo
|
|
2157
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getpeerinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2158
2158
|
|
|
2159
2159
|
<br> <br/>
|
|
2160
2160
|
## getrawchangeaddress
|
|
2161
2161
|
<br/> getrawchangeaddress
|
|
2162
2162
|
|
|
2163
|
-
Returns a new
|
|
2163
|
+
Returns a new Neurai address, for receiving change.
|
|
2164
2164
|
This is for use with raw transactions, NOT normal use.
|
|
2165
2165
|
|
|
2166
2166
|
Result:
|
|
2167
2167
|
"address" (string) The address
|
|
2168
2168
|
|
|
2169
2169
|
Examples:
|
|
2170
|
-
>
|
|
2171
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrawchangeaddress", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2170
|
+
> neurai-cli getrawchangeaddress
|
|
2171
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrawchangeaddress", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2172
2172
|
|
|
2173
2173
|
<br> <br/>
|
|
2174
2174
|
## getrawmempool
|
|
@@ -2209,8 +2209,8 @@ Result: (for verbose = true):
|
|
|
2209
2209
|
}
|
|
2210
2210
|
|
|
2211
2211
|
Examples:
|
|
2212
|
-
>
|
|
2213
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrawmempool", "params": [true] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2212
|
+
> neurai-cli getrawmempool true
|
|
2213
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrawmempool", "params": [true] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2214
2214
|
|
|
2215
2215
|
<br> <br/>
|
|
2216
2216
|
## getrawtransaction
|
|
@@ -2264,7 +2264,7 @@ Result (if verbose is set to true):
|
|
|
2264
2264
|
"reqSigs" : n, (numeric) The required sigs
|
|
2265
2265
|
"type" : "pubkeyhash", (string) The type, eg 'pubkeyhash'
|
|
2266
2266
|
"addresses" : [ (json array of string)
|
|
2267
|
-
"address" (string)
|
|
2267
|
+
"address" (string) neurai address
|
|
2268
2268
|
,...
|
|
2269
2269
|
]
|
|
2270
2270
|
}
|
|
@@ -2278,9 +2278,9 @@ Result (if verbose is set to true):
|
|
|
2278
2278
|
}
|
|
2279
2279
|
|
|
2280
2280
|
Examples:
|
|
2281
|
-
>
|
|
2282
|
-
>
|
|
2283
|
-
> 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:
|
|
2281
|
+
> neurai-cli getrawtransaction "mytxid"
|
|
2282
|
+
> neurai-cli getrawtransaction "mytxid" true
|
|
2283
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrawtransaction", "params": ["mytxid", true] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2284
2284
|
|
|
2285
2285
|
<br> <br/>
|
|
2286
2286
|
## getreceivedbyaccount
|
|
@@ -2298,16 +2298,16 @@ amount (numeric) The total amount in XNA received for this account.
|
|
|
2298
2298
|
Examples:
|
|
2299
2299
|
|
|
2300
2300
|
Amount received by the default account with at least 1 confirmation
|
|
2301
|
-
>
|
|
2301
|
+
> neurai-cli getreceivedbyaccount ""
|
|
2302
2302
|
|
|
2303
2303
|
Amount received at the tabby account including unconfirmed amounts with zero confirmations
|
|
2304
|
-
>
|
|
2304
|
+
> neurai-cli getreceivedbyaccount "tabby" 0
|
|
2305
2305
|
|
|
2306
2306
|
The amount with at least 6 confirmations
|
|
2307
|
-
>
|
|
2307
|
+
> neurai-cli getreceivedbyaccount "tabby" 6
|
|
2308
2308
|
|
|
2309
2309
|
As a json rpc call
|
|
2310
|
-
> 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:
|
|
2310
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getreceivedbyaccount", "params": ["tabby", 6] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2311
2311
|
|
|
2312
2312
|
<br> <br/>
|
|
2313
2313
|
## getreceivedbyaddress
|
|
@@ -2316,7 +2316,7 @@ As a json rpc call
|
|
|
2316
2316
|
Returns the total amount received by the given address in transactions with at least minconf confirmations.
|
|
2317
2317
|
|
|
2318
2318
|
Arguments:
|
|
2319
|
-
1. "address" (string, required) The
|
|
2319
|
+
1. "address" (string, required) The neurai address for transactions.
|
|
2320
2320
|
2. minconf (numeric, optional, default=1) Only include transactions confirmed at least this many times.
|
|
2321
2321
|
|
|
2322
2322
|
Result:
|
|
@@ -2325,16 +2325,16 @@ amount (numeric) The total amount in XNA received at this address.
|
|
|
2325
2325
|
Examples:
|
|
2326
2326
|
|
|
2327
2327
|
The amount from transactions with at least 1 confirmation
|
|
2328
|
-
>
|
|
2328
|
+
> neurai-cli getreceivedbyaddress "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX"
|
|
2329
2329
|
|
|
2330
2330
|
The amount including unconfirmed transactions, zero confirmations
|
|
2331
|
-
>
|
|
2331
|
+
> neurai-cli getreceivedbyaddress "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX" 0
|
|
2332
2332
|
|
|
2333
2333
|
The amount with at least 6 confirmations
|
|
2334
|
-
>
|
|
2334
|
+
> neurai-cli getreceivedbyaddress "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX" 6
|
|
2335
2335
|
|
|
2336
2336
|
As a json rpc call
|
|
2337
|
-
> 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:
|
|
2337
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getreceivedbyaddress", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX", 6] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2338
2338
|
|
|
2339
2339
|
<br> <br/>
|
|
2340
2340
|
## getrpcinfo
|
|
@@ -2351,8 +2351,8 @@ Result:
|
|
|
2351
2351
|
},...
|
|
2352
2352
|
],
|
|
2353
2353
|
}
|
|
2354
|
-
>
|
|
2355
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrpcinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2354
|
+
> neurai-cli getrpcinfo
|
|
2355
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrpcinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2356
2356
|
|
|
2357
2357
|
<br> <br/>
|
|
2358
2358
|
## getsnapshot
|
|
@@ -2376,7 +2376,7 @@ Result:
|
|
|
2376
2376
|
}
|
|
2377
2377
|
|
|
2378
2378
|
Examples:
|
|
2379
|
-
> 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:
|
|
2379
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getsnapshot", "params": ["ASSET_NAME" 28546] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2380
2380
|
|
|
2381
2381
|
<br> <br/>
|
|
2382
2382
|
## getsnapshotrequest
|
|
@@ -2395,8 +2395,8 @@ Result:
|
|
|
2395
2395
|
}
|
|
2396
2396
|
|
|
2397
2397
|
Examples:
|
|
2398
|
-
>
|
|
2399
|
-
> 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:
|
|
2398
|
+
> neurai-cli getsnapshotrequest "TRONCO" 12345
|
|
2399
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getsnapshotrequest", "params": ["PHATSTACKS" 34987] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2400
2400
|
|
|
2401
2401
|
<br> <br/>
|
|
2402
2402
|
## getspentinfo
|
|
@@ -2418,8 +2418,8 @@ Result:
|
|
|
2418
2418
|
}
|
|
2419
2419
|
|
|
2420
2420
|
Examples:
|
|
2421
|
-
>
|
|
2422
|
-
> 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:
|
|
2421
|
+
> neurai-cli getspentinfo '{"txid": "0437cd7f8525ceed2324359c2d0ba26006d92d856a9c20fa0241106ee5a597c9", "index": 0}'
|
|
2422
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getspentinfo", "params": [{"txid": "0437cd7f8525ceed2324359c2d0ba26006d92d856a9c20fa0241106ee5a597c9", "index": 0}] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2423
2423
|
|
|
2424
2424
|
<br> <br/>
|
|
2425
2425
|
## gettransaction
|
|
@@ -2448,7 +2448,7 @@ Result:
|
|
|
2448
2448
|
"details" : [
|
|
2449
2449
|
{
|
|
2450
2450
|
"account" : "accountname", (string) DEPRECATED. The account name involved in the transaction, can be "" for the default account.
|
|
2451
|
-
"address" : "address", (string) The
|
|
2451
|
+
"address" : "address", (string) The neurai address involved in the transaction
|
|
2452
2452
|
"category" : "send|receive", (string) The category, either 'send' or 'receive'
|
|
2453
2453
|
"amount" : x.xxx, (numeric) The amount in XNA
|
|
2454
2454
|
"label" : "label", (string) A comment for the address/transaction, if any
|
|
@@ -2465,7 +2465,7 @@ Result:
|
|
|
2465
2465
|
"asset_type" : "new_asset|transfer_asset|reissue_asset", (string) The type of asset transaction
|
|
2466
2466
|
"asset_name" : "asset_name", (string) The name of the asset
|
|
2467
2467
|
"amount" : x.xxx, (numeric) The amount in XNA
|
|
2468
|
-
"address" : "address", (string) The
|
|
2468
|
+
"address" : "address", (string) The neurai address involved in the transaction
|
|
2469
2469
|
"vout" : n, (numeric) the vout value
|
|
2470
2470
|
"category" : "send|receive", (string) The category, either 'send' or 'receive'
|
|
2471
2471
|
}
|
|
@@ -2475,9 +2475,9 @@ Result:
|
|
|
2475
2475
|
}
|
|
2476
2476
|
|
|
2477
2477
|
Examples:
|
|
2478
|
-
>
|
|
2479
|
-
>
|
|
2480
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettransaction", "params": ["1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2478
|
+
> neurai-cli gettransaction "1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"
|
|
2479
|
+
> neurai-cli gettransaction "1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d" true
|
|
2480
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettransaction", "params": ["1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2481
2481
|
|
|
2482
2482
|
<br> <br/>
|
|
2483
2483
|
## gettxout
|
|
@@ -2500,8 +2500,8 @@ Result:
|
|
|
2500
2500
|
"hex" : "hex", (string)
|
|
2501
2501
|
"reqSigs" : n, (numeric) Number of required signatures
|
|
2502
2502
|
"type" : "pubkeyhash", (string) The type, eg pubkeyhash
|
|
2503
|
-
"addresses" : [ (array of string) array of
|
|
2504
|
-
"address" (string)
|
|
2503
|
+
"addresses" : [ (array of string) array of neurai addresses
|
|
2504
|
+
"address" (string) neurai address
|
|
2505
2505
|
,...
|
|
2506
2506
|
]
|
|
2507
2507
|
},
|
|
@@ -2511,13 +2511,13 @@ Result:
|
|
|
2511
2511
|
Examples:
|
|
2512
2512
|
|
|
2513
2513
|
Get unspent transactions
|
|
2514
|
-
>
|
|
2514
|
+
> neurai-cli listunspent
|
|
2515
2515
|
|
|
2516
2516
|
View the details
|
|
2517
|
-
>
|
|
2517
|
+
> neurai-cli gettxout "txid" 1
|
|
2518
2518
|
|
|
2519
2519
|
As a json rpc call
|
|
2520
|
-
> 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:
|
|
2520
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettxout", "params": ["txid", 1] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2521
2521
|
|
|
2522
2522
|
<br> <br/>
|
|
2523
2523
|
## gettxoutproof
|
|
@@ -2561,8 +2561,8 @@ Result:
|
|
|
2561
2561
|
}
|
|
2562
2562
|
|
|
2563
2563
|
Examples:
|
|
2564
|
-
>
|
|
2565
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettxoutsetinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2564
|
+
> neurai-cli gettxoutsetinfo
|
|
2565
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettxoutsetinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2566
2566
|
|
|
2567
2567
|
<br> <br/>
|
|
2568
2568
|
## getunconfirmedbalance
|
|
@@ -2582,8 +2582,8 @@ Result:
|
|
|
2582
2582
|
"verifier_string", (string) The verifier for the asset
|
|
2583
2583
|
|
|
2584
2584
|
Examples:
|
|
2585
|
-
>
|
|
2586
|
-
> 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:
|
|
2585
|
+
> neurai-cli getverifierstring "restricted_name"
|
|
2586
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getverifierstring", "params": ["restricted_name"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2587
2587
|
|
|
2588
2588
|
<br> <br/>
|
|
2589
2589
|
## getwalletinfo
|
|
@@ -2608,8 +2608,8 @@ Result:
|
|
|
2608
2608
|
}
|
|
2609
2609
|
|
|
2610
2610
|
Examples:
|
|
2611
|
-
>
|
|
2612
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getwalletinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2611
|
+
> neurai-cli getwalletinfo
|
|
2612
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getwalletinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2613
2613
|
|
|
2614
2614
|
<br> <br/>
|
|
2615
2615
|
## help
|
|
@@ -2644,13 +2644,13 @@ as change, and not show up in many RPCs.
|
|
|
2644
2644
|
Examples:
|
|
2645
2645
|
|
|
2646
2646
|
Import a script with rescan
|
|
2647
|
-
>
|
|
2647
|
+
> neurai-cli importaddress "myscript"
|
|
2648
2648
|
|
|
2649
2649
|
Import using a label without rescan
|
|
2650
|
-
>
|
|
2650
|
+
> neurai-cli importaddress "myscript" "testing" false
|
|
2651
2651
|
|
|
2652
2652
|
As a JSON-RPC call
|
|
2653
|
-
> 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:
|
|
2653
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importaddress", "params": ["myscript", "testing", false] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2654
2654
|
|
|
2655
2655
|
<br> <br/>
|
|
2656
2656
|
## importmulti
|
|
@@ -2684,8 +2684,8 @@ Arguments:
|
|
|
2684
2684
|
}
|
|
2685
2685
|
|
|
2686
2686
|
Examples:
|
|
2687
|
-
>
|
|
2688
|
-
>
|
|
2687
|
+
> neurai-cli importmulti '[{ "scriptPubKey": { "address": "<my address>" }, "timestamp":1455191478 }, { "scriptPubKey": { "address": "<my 2nd address>" }, "label": "example 2", "timestamp": 1455191480 }]'
|
|
2688
|
+
> neurai-cli importmulti '[{ "scriptPubKey": { "address": "<my address>" }, "timestamp":1455191478 }]' '{ "rescan": false}'
|
|
2689
2689
|
|
|
2690
2690
|
Response is an array with the same size as the input that has the execution result :
|
|
2691
2691
|
[{ "success": true } , { "success": false, "error": { "code": -1, "message": "Internal Server Error"} }, ... ]
|
|
@@ -2706,19 +2706,19 @@ Note: This call can take minutes to complete if rescan is true.
|
|
|
2706
2706
|
Examples:
|
|
2707
2707
|
|
|
2708
2708
|
Dump a private key
|
|
2709
|
-
>
|
|
2709
|
+
> neurai-cli dumpprivkey "myaddress"
|
|
2710
2710
|
|
|
2711
2711
|
Import the private key with rescan
|
|
2712
|
-
>
|
|
2712
|
+
> neurai-cli importprivkey "mykey"
|
|
2713
2713
|
|
|
2714
2714
|
Import using a label and without rescan
|
|
2715
|
-
>
|
|
2715
|
+
> neurai-cli importprivkey "mykey" "testing" false
|
|
2716
2716
|
|
|
2717
2717
|
Import using default blank label and without rescan
|
|
2718
|
-
>
|
|
2718
|
+
> neurai-cli importprivkey "mykey" "" false
|
|
2719
2719
|
|
|
2720
2720
|
As a JSON-RPC call
|
|
2721
|
-
> 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:
|
|
2721
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importprivkey", "params": ["mykey", "testing", false] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2722
2722
|
|
|
2723
2723
|
<br> <br/>
|
|
2724
2724
|
## importprunedfunds
|
|
@@ -2746,13 +2746,13 @@ Note: This call can take minutes to complete if rescan is true.
|
|
|
2746
2746
|
Examples:
|
|
2747
2747
|
|
|
2748
2748
|
Import a public key with rescan
|
|
2749
|
-
>
|
|
2749
|
+
> neurai-cli importpubkey "mypubkey"
|
|
2750
2750
|
|
|
2751
2751
|
Import using a label without rescan
|
|
2752
|
-
>
|
|
2752
|
+
> neurai-cli importpubkey "mypubkey" "testing" false
|
|
2753
2753
|
|
|
2754
2754
|
As a JSON-RPC call
|
|
2755
|
-
> 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:
|
|
2755
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importpubkey", "params": ["mypubkey", "testing", false] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2756
2756
|
|
|
2757
2757
|
<br> <br/>
|
|
2758
2758
|
## importwallet
|
|
@@ -2766,13 +2766,13 @@ Arguments:
|
|
|
2766
2766
|
Examples:
|
|
2767
2767
|
|
|
2768
2768
|
Dump the wallet
|
|
2769
|
-
>
|
|
2769
|
+
> neurai-cli dumpwallet "test"
|
|
2770
2770
|
|
|
2771
2771
|
Import the wallet
|
|
2772
|
-
>
|
|
2772
|
+
> neurai-cli importwallet "test"
|
|
2773
2773
|
|
|
2774
2774
|
Import using the json rpc call
|
|
2775
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importwallet", "params": ["test"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2775
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importwallet", "params": ["test"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2776
2776
|
|
|
2777
2777
|
<br> <br/>
|
|
2778
2778
|
## issue
|
|
@@ -2798,13 +2798,13 @@ Result:
|
|
|
2798
2798
|
"txid" (string) The transaction id
|
|
2799
2799
|
|
|
2800
2800
|
Examples:
|
|
2801
|
-
>
|
|
2802
|
-
>
|
|
2803
|
-
>
|
|
2804
|
-
>
|
|
2805
|
-
>
|
|
2806
|
-
>
|
|
2807
|
-
>
|
|
2801
|
+
> neurai-cli issue "ASSET_NAME" 1000
|
|
2802
|
+
> neurai-cli issue "ASSET_NAME" 1000 "myaddress"
|
|
2803
|
+
> neurai-cli issue "ASSET_NAME" 1000 "myaddress" "changeaddress" 4
|
|
2804
|
+
> neurai-cli issue "ASSET_NAME" 1000 "myaddress" "changeaddress" 2 true
|
|
2805
|
+
> neurai-cli issue "ASSET_NAME" 1000 "myaddress" "changeaddress" 8 false true QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E
|
|
2806
|
+
> neurai-cli issue "ASSET_NAME/SUB_ASSET" 1000 "myaddress" "changeaddress" 2 true
|
|
2807
|
+
> neurai-cli issue "ASSET_NAME#uniquetag"
|
|
2808
2808
|
|
|
2809
2809
|
<br> <br/>
|
|
2810
2810
|
## issuequalifierasset
|
|
@@ -2829,13 +2829,13 @@ Result:
|
|
|
2829
2829
|
"txid" (string) The transaction id
|
|
2830
2830
|
|
|
2831
2831
|
Examples:
|
|
2832
|
-
>
|
|
2833
|
-
>
|
|
2834
|
-
>
|
|
2835
|
-
>
|
|
2836
|
-
>
|
|
2837
|
-
>
|
|
2838
|
-
>
|
|
2832
|
+
> neurai-cli issuequalifierasset "#ASSET_NAME" 1000
|
|
2833
|
+
> neurai-cli issuequalifierasset "ASSET_NAME" 1000 "myaddress"
|
|
2834
|
+
> neurai-cli issuequalifierasset "#ASSET_NAME" 1000 "myaddress" "changeaddress"
|
|
2835
|
+
> neurai-cli issuequalifierasset "ASSET_NAME" 1000 "myaddress" "changeaddress"
|
|
2836
|
+
> neurai-cli issuequalifierasset "#ASSET_NAME" 1000 "myaddress" "changeaddress" true QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E
|
|
2837
|
+
> neurai-cli issuequalifierasset "ASSET_NAME/SUB_QUALIFIER" 1000 "myaddress" "changeaddress"
|
|
2838
|
+
> neurai-cli issuequalifierasset "#ASSET_NAME"
|
|
2839
2839
|
|
|
2840
2840
|
<br> <br/>
|
|
2841
2841
|
## issuerestrictedasset
|
|
@@ -2861,11 +2861,11 @@ Result:
|
|
|
2861
2861
|
"txid" (string) The transaction id
|
|
2862
2862
|
|
|
2863
2863
|
Examples:
|
|
2864
|
-
>
|
|
2865
|
-
>
|
|
2866
|
-
>
|
|
2867
|
-
>
|
|
2868
|
-
>
|
|
2864
|
+
> neurai-cli issuerestrictedasset "$ASSET_NAME" 1000 "#KYC & !#AML" "myaddress"
|
|
2865
|
+
> neurai-cli issuerestrictedasset "$ASSET_NAME" 1000 "#KYC & !#AML" "myaddress"
|
|
2866
|
+
> neurai-cli issuerestrictedasset "$ASSET_NAME" 1000 "#KYC & !#AML" "myaddress" "changeaddress" 5
|
|
2867
|
+
> neurai-cli issuerestrictedasset "$ASSET_NAME" 1000 "#KYC & !#AML" "myaddress" "changeaddress" 8 true
|
|
2868
|
+
> neurai-cli issuerestrictedasset "$ASSET_NAME" 1000 "#KYC & !#AML" "myaddress" "changeaddress" 0 false true QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E
|
|
2869
2869
|
|
|
2870
2870
|
<br> <br/>
|
|
2871
2871
|
## issueunique
|
|
@@ -2888,8 +2888,8 @@ Result:
|
|
|
2888
2888
|
"txid" (string) The transaction id
|
|
2889
2889
|
|
|
2890
2890
|
Examples:
|
|
2891
|
-
>
|
|
2892
|
-
>
|
|
2891
|
+
> neurai-cli issueunique "MY_ASSET" '["primo","secundo"]'
|
|
2892
|
+
> neurai-cli issueunique "MY_ASSET" '["primo","secundo"]' '["first_hash","second_hash"]'
|
|
2893
2893
|
|
|
2894
2894
|
<br> <br/>
|
|
2895
2895
|
## isvalidverifierstring
|
|
@@ -2904,8 +2904,8 @@ Result:
|
|
|
2904
2904
|
"xxxxxxx", (string) If the verifier string is valid, and the reason
|
|
2905
2905
|
|
|
2906
2906
|
Examples:
|
|
2907
|
-
>
|
|
2908
|
-
> 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:
|
|
2907
|
+
> neurai-cli isvalidverifierstring "verifier_string"
|
|
2908
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "isvalidverifierstring", "params": ["verifier_string"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2909
2909
|
|
|
2910
2910
|
<br> <br/>
|
|
2911
2911
|
## keypoolrefill
|
|
@@ -2917,8 +2917,8 @@ Arguments
|
|
|
2917
2917
|
1. newsize (numeric, optional, default=100) The new keypool size
|
|
2918
2918
|
|
|
2919
2919
|
Examples:
|
|
2920
|
-
>
|
|
2921
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "keypoolrefill", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2920
|
+
> neurai-cli keypoolrefill
|
|
2921
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "keypoolrefill", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2922
2922
|
|
|
2923
2923
|
<br> <br/>
|
|
2924
2924
|
## listaccounts
|
|
@@ -2939,16 +2939,16 @@ Result:
|
|
|
2939
2939
|
Examples:
|
|
2940
2940
|
|
|
2941
2941
|
List account balances where there at least 1 confirmation
|
|
2942
|
-
>
|
|
2942
|
+
> neurai-cli listaccounts
|
|
2943
2943
|
|
|
2944
2944
|
List account balances including zero confirmation transactions
|
|
2945
|
-
>
|
|
2945
|
+
> neurai-cli listaccounts 0
|
|
2946
2946
|
|
|
2947
2947
|
List account balances for 6 or more confirmations
|
|
2948
|
-
>
|
|
2948
|
+
> neurai-cli listaccounts 6
|
|
2949
2949
|
|
|
2950
2950
|
As json rpc call
|
|
2951
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaccounts", "params": [6] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2951
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaccounts", "params": [6] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2952
2952
|
|
|
2953
2953
|
<br> <br/>
|
|
2954
2954
|
## listaddressesbyasset
|
|
@@ -2968,9 +2968,9 @@ Result:
|
|
|
2968
2968
|
]
|
|
2969
2969
|
|
|
2970
2970
|
Examples:
|
|
2971
|
-
>
|
|
2972
|
-
>
|
|
2973
|
-
>
|
|
2971
|
+
> neurai-cli listaddressesbyasset "ASSET_NAME" false 2 0
|
|
2972
|
+
> neurai-cli listaddressesbyasset "ASSET_NAME" true
|
|
2973
|
+
> neurai-cli listaddressesbyasset "ASSET_NAME"
|
|
2974
2974
|
|
|
2975
2975
|
<br> <br/>
|
|
2976
2976
|
## listaddressesfortag
|
|
@@ -2987,8 +2987,8 @@ Result:
|
|
|
2987
2987
|
]
|
|
2988
2988
|
|
|
2989
2989
|
Examples:
|
|
2990
|
-
>
|
|
2991
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressesfortag", "params": ["#TAG"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2990
|
+
> neurai-cli listaddressesfortag "#TAG"
|
|
2991
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressesfortag", "params": ["#TAG"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2992
2992
|
|
|
2993
2993
|
<br> <br/>
|
|
2994
2994
|
## listaddressgroupings
|
|
@@ -3002,7 +3002,7 @@ Result:
|
|
|
3002
3002
|
[
|
|
3003
3003
|
[
|
|
3004
3004
|
[
|
|
3005
|
-
"address", (string) The
|
|
3005
|
+
"address", (string) The neurai address
|
|
3006
3006
|
amount, (numeric) The amount in XNA
|
|
3007
3007
|
"account" (string, optional) DEPRECATED. The account
|
|
3008
3008
|
]
|
|
@@ -3012,8 +3012,8 @@ Result:
|
|
|
3012
3012
|
]
|
|
3013
3013
|
|
|
3014
3014
|
Examples:
|
|
3015
|
-
>
|
|
3016
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressgroupings", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3015
|
+
> neurai-cli listaddressgroupings
|
|
3016
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressgroupings", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3017
3017
|
|
|
3018
3018
|
<br> <br/>
|
|
3019
3019
|
## listaddressrestrictions
|
|
@@ -3030,8 +3030,8 @@ Result:
|
|
|
3030
3030
|
]
|
|
3031
3031
|
|
|
3032
3032
|
Examples:
|
|
3033
|
-
>
|
|
3034
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressrestrictions", "params": ["address"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3033
|
+
> neurai-cli listaddressrestrictions "address"
|
|
3034
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressrestrictions", "params": ["address"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3035
3035
|
|
|
3036
3036
|
<br> <br/>
|
|
3037
3037
|
## listassetbalancesbyaddress
|
|
@@ -3040,7 +3040,7 @@ Examples:
|
|
|
3040
3040
|
Returns a list of all asset balances for an address.
|
|
3041
3041
|
|
|
3042
3042
|
Arguments:
|
|
3043
|
-
1. "address" (string, required) a
|
|
3043
|
+
1. "address" (string, required) a neurai address
|
|
3044
3044
|
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
|
|
3045
3045
|
3. "count" (integer, optional, default=50000, MAX=50000) truncates results to include only the first _count_ assets found
|
|
3046
3046
|
4. "start" (integer, optional, default=0) results skip over the first _start_ assets found (if negative it skips back from the end)
|
|
@@ -3052,9 +3052,9 @@ Result:
|
|
|
3052
3052
|
}
|
|
3053
3053
|
|
|
3054
3054
|
Examples:
|
|
3055
|
-
>
|
|
3056
|
-
>
|
|
3057
|
-
>
|
|
3055
|
+
> neurai-cli listassetbalancesbyaddress "myaddress" false 2 0
|
|
3056
|
+
> neurai-cli listassetbalancesbyaddress "myaddress" true
|
|
3057
|
+
> neurai-cli listassetbalancesbyaddress "myaddress"
|
|
3058
3058
|
|
|
3059
3059
|
<br> <br/>
|
|
3060
3060
|
## listassets
|
|
@@ -3091,9 +3091,9 @@ Result (verbose=true):
|
|
|
3091
3091
|
}
|
|
3092
3092
|
|
|
3093
3093
|
Examples:
|
|
3094
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listassets", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3095
|
-
>
|
|
3096
|
-
>
|
|
3094
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listassets", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3095
|
+
> neurai-cli listassets ASSET
|
|
3096
|
+
> neurai-cli listassets "ASSET*" true 10 20
|
|
3097
3097
|
|
|
3098
3098
|
<br> <br/>
|
|
3099
3099
|
## listbanned
|
|
@@ -3102,8 +3102,8 @@ Examples:
|
|
|
3102
3102
|
List all banned IPs/Subnets.
|
|
3103
3103
|
|
|
3104
3104
|
Examples:
|
|
3105
|
-
>
|
|
3106
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listbanned", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3105
|
+
> neurai-cli listbanned
|
|
3106
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listbanned", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3107
3107
|
|
|
3108
3108
|
<br> <br/>
|
|
3109
3109
|
## listglobalrestrictions
|
|
@@ -3117,8 +3117,8 @@ Result:
|
|
|
3117
3117
|
]
|
|
3118
3118
|
|
|
3119
3119
|
Examples:
|
|
3120
|
-
>
|
|
3121
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listglobalrestrictions", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3120
|
+
> neurai-cli listglobalrestrictions
|
|
3121
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listglobalrestrictions", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3122
3122
|
|
|
3123
3123
|
<br> <br/>
|
|
3124
3124
|
## listlockunspent
|
|
@@ -3139,19 +3139,19 @@ Result:
|
|
|
3139
3139
|
Examples:
|
|
3140
3140
|
|
|
3141
3141
|
List the unspent transactions
|
|
3142
|
-
>
|
|
3142
|
+
> neurai-cli listunspent
|
|
3143
3143
|
|
|
3144
3144
|
Lock an unspent transaction
|
|
3145
|
-
>
|
|
3145
|
+
> neurai-cli lockunspent false "[{\"txid\":\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\",\"vout\":1}]"
|
|
3146
3146
|
|
|
3147
3147
|
List the locked transactions
|
|
3148
|
-
>
|
|
3148
|
+
> neurai-cli listlockunspent
|
|
3149
3149
|
|
|
3150
3150
|
Unlock the transaction again
|
|
3151
|
-
>
|
|
3151
|
+
> neurai-cli lockunspent true "[{\"txid\":\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\",\"vout\":1}]"
|
|
3152
3152
|
|
|
3153
3153
|
As a json rpc call
|
|
3154
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listlockunspent", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3154
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listlockunspent", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3155
3155
|
|
|
3156
3156
|
<br> <br/>
|
|
3157
3157
|
## listmyassets
|
|
@@ -3191,10 +3191,10 @@ Result (verbose=true):
|
|
|
3191
3191
|
{...}, {...}
|
|
3192
3192
|
|
|
3193
3193
|
Examples:
|
|
3194
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listmyassets", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3195
|
-
>
|
|
3196
|
-
>
|
|
3197
|
-
>
|
|
3194
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listmyassets", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3195
|
+
> neurai-cli listmyassets ASSET
|
|
3196
|
+
> neurai-cli listmyassets "ASSET*" true 10 20
|
|
3197
|
+
> neurai-cli listmyassets "ASSET*" true 10 20 1
|
|
3198
3198
|
|
|
3199
3199
|
<br> <br/>
|
|
3200
3200
|
## listreceivedbyaccount
|
|
@@ -3220,9 +3220,9 @@ Result:
|
|
|
3220
3220
|
]
|
|
3221
3221
|
|
|
3222
3222
|
Examples:
|
|
3223
|
-
>
|
|
3224
|
-
>
|
|
3225
|
-
> 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:
|
|
3223
|
+
> neurai-cli listreceivedbyaccount
|
|
3224
|
+
> neurai-cli listreceivedbyaccount 6 true
|
|
3225
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listreceivedbyaccount", "params": [6, true, true] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3226
3226
|
|
|
3227
3227
|
<br> <br/>
|
|
3228
3228
|
## listreceivedbyaddress
|
|
@@ -3253,9 +3253,9 @@ Result:
|
|
|
3253
3253
|
]
|
|
3254
3254
|
|
|
3255
3255
|
Examples:
|
|
3256
|
-
>
|
|
3257
|
-
>
|
|
3258
|
-
> 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:
|
|
3256
|
+
> neurai-cli listreceivedbyaddress
|
|
3257
|
+
> neurai-cli listreceivedbyaddress 6 true
|
|
3258
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listreceivedbyaddress", "params": [6, true, true] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3259
3259
|
|
|
3260
3260
|
<br> <br/>
|
|
3261
3261
|
## listsinceblock
|
|
@@ -3276,7 +3276,7 @@ Result:
|
|
|
3276
3276
|
{
|
|
3277
3277
|
"transactions": [
|
|
3278
3278
|
"account":"accountname", (string) DEPRECATED. The account name associated with the transaction. Will be "" for the default account.
|
|
3279
|
-
"address":"address", (string) The
|
|
3279
|
+
"address":"address", (string) The neurai address of the transaction. Not present for move transactions (category = move).
|
|
3280
3280
|
"category":"send|receive", (string) The transaction category. 'send' has negative amounts, 'receive' has positive amounts.
|
|
3281
3281
|
"amount": x.xxx, (numeric) The amount in XNA. This is negative for the 'send' category, and for the 'move' category for moves
|
|
3282
3282
|
outbound. It is positive for the 'receive' category, and for the 'move' category for inbound funds.
|
|
@@ -3305,9 +3305,9 @@ Result:
|
|
|
3305
3305
|
}
|
|
3306
3306
|
|
|
3307
3307
|
Examples:
|
|
3308
|
-
>
|
|
3309
|
-
>
|
|
3310
|
-
> 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:
|
|
3308
|
+
> neurai-cli listsinceblock
|
|
3309
|
+
> neurai-cli listsinceblock "000000000000000bacf66f7497b7dc45ef753ee9a7d38571037cdb1a57f663ad" 6
|
|
3310
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listsinceblock", "params": ["000000000000000bacf66f7497b7dc45ef753ee9a7d38571037cdb1a57f663ad", 6] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3311
3311
|
|
|
3312
3312
|
<br> <br/>
|
|
3313
3313
|
## listsnapshotrequests
|
|
@@ -3328,8 +3328,8 @@ Result:
|
|
|
3328
3328
|
]
|
|
3329
3329
|
|
|
3330
3330
|
Examples:
|
|
3331
|
-
>
|
|
3332
|
-
> 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:
|
|
3331
|
+
> neurai-cli listsnapshotrequests
|
|
3332
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listsnapshotrequests", "params": ["TRONCO" 345333] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3333
3333
|
|
|
3334
3334
|
<br> <br/>
|
|
3335
3335
|
## listtagsforaddress
|
|
@@ -3346,8 +3346,8 @@ Result:
|
|
|
3346
3346
|
]
|
|
3347
3347
|
|
|
3348
3348
|
Examples:
|
|
3349
|
-
>
|
|
3350
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listtagsforaddress", "params": ["address"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3349
|
+
> neurai-cli listtagsforaddress "address"
|
|
3350
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listtagsforaddress", "params": ["address"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3351
3351
|
|
|
3352
3352
|
<br> <br/>
|
|
3353
3353
|
## listtransactions
|
|
@@ -3366,7 +3366,7 @@ Result:
|
|
|
3366
3366
|
{
|
|
3367
3367
|
"account":"accountname", (string) DEPRECATED. The account name associated with the transaction.
|
|
3368
3368
|
It will be "" for the default account.
|
|
3369
|
-
"address":"address", (string) The
|
|
3369
|
+
"address":"address", (string) The neurai address of the transaction. Not present for
|
|
3370
3370
|
move transactions (category = move).
|
|
3371
3371
|
"category":"send|receive|move", (string) The transaction category. 'move' is a local (off blockchain)
|
|
3372
3372
|
transaction between accounts, and not associated with an address,
|
|
@@ -3406,13 +3406,13 @@ Result:
|
|
|
3406
3406
|
Examples:
|
|
3407
3407
|
|
|
3408
3408
|
List the most recent 10 transactions in the systems
|
|
3409
|
-
>
|
|
3409
|
+
> neurai-cli listtransactions
|
|
3410
3410
|
|
|
3411
3411
|
List transactions 100 to 120
|
|
3412
|
-
>
|
|
3412
|
+
> neurai-cli listtransactions "*" 20 100
|
|
3413
3413
|
|
|
3414
3414
|
As a json rpc call
|
|
3415
|
-
> 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:
|
|
3415
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listtransactions", "params": ["*", 20, 100] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3416
3416
|
|
|
3417
3417
|
<br> <br/>
|
|
3418
3418
|
## listunspent
|
|
@@ -3425,9 +3425,9 @@ Optionally filter to only include txouts paid to specified addresses.
|
|
|
3425
3425
|
Arguments:
|
|
3426
3426
|
1. minconf (numeric, optional, default=1) The minimum confirmations to filter
|
|
3427
3427
|
2. maxconf (numeric, optional, default=9999999) The maximum confirmations to filter
|
|
3428
|
-
3. "addresses" (string) A json array of
|
|
3428
|
+
3. "addresses" (string) A json array of neurai addresses to filter
|
|
3429
3429
|
[
|
|
3430
|
-
"address" (string)
|
|
3430
|
+
"address" (string) neurai address
|
|
3431
3431
|
,...
|
|
3432
3432
|
]
|
|
3433
3433
|
4. include_unsafe (bool, optional, default=true) Include outputs that are not safe to spend
|
|
@@ -3445,7 +3445,7 @@ Result
|
|
|
3445
3445
|
{
|
|
3446
3446
|
"txid" : "txid", (string) the transaction id
|
|
3447
3447
|
"vout" : n, (numeric) the vout value
|
|
3448
|
-
"address" : "address", (string) the
|
|
3448
|
+
"address" : "address", (string) the neurai address
|
|
3449
3449
|
"account" : "account", (string) DEPRECATED. The associated account, or "" for the default account
|
|
3450
3450
|
"scriptPubKey" : "key", (string) the script key
|
|
3451
3451
|
"amount" : x.xxx, (numeric) the transaction output amount in XNA
|
|
@@ -3461,11 +3461,11 @@ Result
|
|
|
3461
3461
|
]
|
|
3462
3462
|
|
|
3463
3463
|
Examples
|
|
3464
|
-
>
|
|
3465
|
-
>
|
|
3466
|
-
> 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:
|
|
3467
|
-
>
|
|
3468
|
-
> 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:
|
|
3464
|
+
> neurai-cli listunspent
|
|
3465
|
+
> neurai-cli listunspent 6 9999999 "[\"1PGFqEzfmQch1gKD3ra4k18PNj3tTUUSqg\",\"1LtvqCaApEdUGFkpKMM4MstjcaL4dKg8SP\"]"
|
|
3466
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listunspent", "params": [6, 9999999 "[\"1PGFqEzfmQch1gKD3ra4k18PNj3tTUUSqg\",\"1LtvqCaApEdUGFkpKMM4MstjcaL4dKg8SP\"]"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3467
|
+
> neurai-cli listunspent 6 9999999 '[]' true '{ "minimumAmount": 0.005 }'
|
|
3468
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listunspent", "params": [6, 9999999, [] , true, { "minimumAmount": 0.005 } ] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3469
3469
|
|
|
3470
3470
|
<br> <br/>
|
|
3471
3471
|
## listwallets
|
|
@@ -3480,8 +3480,8 @@ Result:
|
|
|
3480
3480
|
]
|
|
3481
3481
|
|
|
3482
3482
|
Examples:
|
|
3483
|
-
>
|
|
3484
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listwallets", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3483
|
+
> neurai-cli listwallets
|
|
3484
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listwallets", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3485
3485
|
|
|
3486
3486
|
<br> <br/>
|
|
3487
3487
|
## lockunspent
|
|
@@ -3490,7 +3490,7 @@ Examples:
|
|
|
3490
3490
|
Updates list of temporarily unspendable outputs.
|
|
3491
3491
|
Temporarily lock (unlock=false) or unlock (unlock=true) specified transaction outputs.
|
|
3492
3492
|
If no transaction outputs are specified when unlocking then all current locked transaction outputs are unlocked.
|
|
3493
|
-
A locked transaction output will not be chosen by automatic coin selection, when spending
|
|
3493
|
+
A locked transaction output will not be chosen by automatic coin selection, when spending neurais.
|
|
3494
3494
|
Locks are stored in memory only. Nodes start with zero locked outputs, and the locked output list
|
|
3495
3495
|
is always cleared (by virtue of process exit) when a node stops or fails.
|
|
3496
3496
|
Also see the listunspent call
|
|
@@ -3512,19 +3512,19 @@ true|false (boolean) Whether the command was successful or not
|
|
|
3512
3512
|
Examples:
|
|
3513
3513
|
|
|
3514
3514
|
List the unspent transactions
|
|
3515
|
-
>
|
|
3515
|
+
> neurai-cli listunspent
|
|
3516
3516
|
|
|
3517
3517
|
Lock an unspent transaction
|
|
3518
|
-
>
|
|
3518
|
+
> neurai-cli lockunspent false "[{\"txid\":\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\",\"vout\":1}]"
|
|
3519
3519
|
|
|
3520
3520
|
List the locked transactions
|
|
3521
|
-
>
|
|
3521
|
+
> neurai-cli listlockunspent
|
|
3522
3522
|
|
|
3523
3523
|
Unlock the transaction again
|
|
3524
|
-
>
|
|
3524
|
+
> neurai-cli lockunspent true "[{\"txid\":\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\",\"vout\":1}]"
|
|
3525
3525
|
|
|
3526
3526
|
As a json rpc call
|
|
3527
|
-
> 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:
|
|
3527
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "lockunspent", "params": [false, "[{\"txid\":\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\",\"vout\":1}]"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3528
3528
|
|
|
3529
3529
|
<br> <br/>
|
|
3530
3530
|
## move
|
|
@@ -3545,13 +3545,13 @@ true|false (boolean) true if successful.
|
|
|
3545
3545
|
Examples:
|
|
3546
3546
|
|
|
3547
3547
|
Move 0.01 XNA from the default account to the account named tabby
|
|
3548
|
-
>
|
|
3548
|
+
> neurai-cli move "" "tabby" 0.01
|
|
3549
3549
|
|
|
3550
3550
|
Move 0.01 XNA timotei to akiko with a comment and funds have 6 confirmations
|
|
3551
|
-
>
|
|
3551
|
+
> neurai-cli move "timotei" "akiko" 0.01 6 "happy birthday!"
|
|
3552
3552
|
|
|
3553
3553
|
As a json rpc call
|
|
3554
|
-
> 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:
|
|
3554
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "move", "params": ["timotei", "akiko", 0.01, 6, "happy birthday!"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3555
3555
|
|
|
3556
3556
|
<br> <br/>
|
|
3557
3557
|
## ping
|
|
@@ -3562,8 +3562,8 @@ Results provided in getpeerinfo, pingtime and pingwait fields are decimal second
|
|
|
3562
3562
|
Ping command is handled in queue with all other commands, so it measures processing backlog, not just network ping.
|
|
3563
3563
|
|
|
3564
3564
|
Examples:
|
|
3565
|
-
>
|
|
3566
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "ping", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3565
|
+
> neurai-cli ping
|
|
3566
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "ping", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3567
3567
|
|
|
3568
3568
|
<br> <br/>
|
|
3569
3569
|
## pprpcsb
|
|
@@ -3579,8 +3579,8 @@ Arguments
|
|
|
3579
3579
|
Result:
|
|
3580
3580
|
|
|
3581
3581
|
Examples:
|
|
3582
|
-
>
|
|
3583
|
-
> 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:
|
|
3582
|
+
> neurai-cli pprpcsb "header_hash" "mix_hash" 100000
|
|
3583
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "pprpcsb", "params": ["header_hash" "mix_hash" 100000] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3584
3584
|
|
|
3585
3585
|
<br> <br/>
|
|
3586
3586
|
## preciousblock
|
|
@@ -3598,8 +3598,8 @@ Arguments:
|
|
|
3598
3598
|
Result:
|
|
3599
3599
|
|
|
3600
3600
|
Examples:
|
|
3601
|
-
>
|
|
3602
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "preciousblock", "params": ["blockhash"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3601
|
+
> neurai-cli preciousblock "blockhash"
|
|
3602
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "preciousblock", "params": ["blockhash"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3603
3603
|
|
|
3604
3604
|
<br> <br/>
|
|
3605
3605
|
## prioritisetransaction
|
|
@@ -3618,8 +3618,8 @@ Result:
|
|
|
3618
3618
|
true (boolean) Returns true
|
|
3619
3619
|
|
|
3620
3620
|
Examples:
|
|
3621
|
-
>
|
|
3622
|
-
> 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:
|
|
3621
|
+
> neurai-cli prioritisetransaction "txid" 0.0 10000
|
|
3622
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "prioritisetransaction", "params": ["txid", 0.0, 10000] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3623
3623
|
|
|
3624
3624
|
<br> <br/>
|
|
3625
3625
|
## pruneblockchain
|
|
@@ -3633,8 +3633,8 @@ Result:
|
|
|
3633
3633
|
n (numeric) Height of the last block pruned.
|
|
3634
3634
|
|
|
3635
3635
|
Examples:
|
|
3636
|
-
>
|
|
3637
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "pruneblockchain", "params": [1000] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3636
|
+
> neurai-cli pruneblockchain 1000
|
|
3637
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "pruneblockchain", "params": [1000] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3638
3638
|
|
|
3639
3639
|
<br> <br/>
|
|
3640
3640
|
## purgesnapshot
|
|
@@ -3653,8 +3653,8 @@ Result:
|
|
|
3653
3653
|
}
|
|
3654
3654
|
|
|
3655
3655
|
Examples:
|
|
3656
|
-
>
|
|
3657
|
-
> 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:
|
|
3656
|
+
> neurai-cli purgesnapshot "ASSET_NAME" 28546
|
|
3657
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "purgesnapshot", "params": ["ASSET_NAME" 28546] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3658
3658
|
|
|
3659
3659
|
<br> <br/>
|
|
3660
3660
|
## reissue
|
|
@@ -3676,8 +3676,8 @@ Result:
|
|
|
3676
3676
|
"txid" (string) The transaction id
|
|
3677
3677
|
|
|
3678
3678
|
Examples:
|
|
3679
|
-
>
|
|
3680
|
-
> 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:
|
|
3679
|
+
> neurai-cli reissue "ASSET_NAME" 20 "address"
|
|
3680
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "reissue", "params": ["ASSET_NAME" 20 "address" "change_address" "true" 8 "Qmd286K6pohQcTKYqnS1YhWrCiS4gz7Xi34sdwMe9USZ7u"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3681
3681
|
|
|
3682
3682
|
<br> <br/>
|
|
3683
3683
|
## reissuerestrictedasset
|
|
@@ -3701,11 +3701,11 @@ Result:
|
|
|
3701
3701
|
"txid" (string) The transaction id
|
|
3702
3702
|
|
|
3703
3703
|
Examples:
|
|
3704
|
-
>
|
|
3705
|
-
>
|
|
3706
|
-
>
|
|
3707
|
-
>
|
|
3708
|
-
>
|
|
3704
|
+
> neurai-cli reissuerestrictedasset "$ASSET_NAME" 1000 "myaddress" true "KYC & !AML"
|
|
3705
|
+
> neurai-cli reissuerestrictedasset "$ASSET_NAME" 1000 "myaddress" true "KYC & !AML"
|
|
3706
|
+
> neurai-cli reissuerestrictedasset "$ASSET_NAME" 1000 "myaddress" true "KYC & !AML" "changeaddress"
|
|
3707
|
+
> neurai-cli reissuerestrictedasset "$ASSET_NAME" 1000 "myaddress" true "KYC & !AML" "changeaddress" -1 true
|
|
3708
|
+
> neurai-cli reissuerestrictedasset "$ASSET_NAME" 1000 "myaddress" false "" "changeaddress" -1 false QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E
|
|
3709
3709
|
|
|
3710
3710
|
<br> <br/>
|
|
3711
3711
|
## removeprunedfunds
|
|
@@ -3717,10 +3717,10 @@ Arguments:
|
|
|
3717
3717
|
1. "txid" (string, required) The hex-encoded id of the transaction you are deleting
|
|
3718
3718
|
|
|
3719
3719
|
Examples:
|
|
3720
|
-
>
|
|
3720
|
+
> neurai-cli removeprunedfunds "a8d0c0184dde994a09ec054286f1ce581bebf46446a512166eae7628734ea0a5"
|
|
3721
3721
|
|
|
3722
3722
|
As a JSON-RPC call
|
|
3723
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "removeprunedfunds", "params": ["a8d0c0184dde994a09ec054286f1ce581bebf46446a512166eae7628734ea0a5"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3723
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "removeprunedfunds", "params": ["a8d0c0184dde994a09ec054286f1ce581bebf46446a512166eae7628734ea0a5"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3724
3724
|
|
|
3725
3725
|
<br> <br/>
|
|
3726
3726
|
## removetagfromaddress
|
|
@@ -3738,10 +3738,10 @@ Result:
|
|
|
3738
3738
|
"txid" (string) The transaction id
|
|
3739
3739
|
|
|
3740
3740
|
Examples:
|
|
3741
|
-
>
|
|
3742
|
-
> 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:
|
|
3743
|
-
>
|
|
3744
|
-
> 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:
|
|
3741
|
+
> neurai-cli removetagfromaddress "#TAG" "to_address"
|
|
3742
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "removetagfromaddress", "params": ["#TAG" "to_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3743
|
+
> neurai-cli removetagfromaddress "#TAG" "to_address" "change_address"
|
|
3744
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "removetagfromaddress", "params": ["#TAG" "to_address" "change_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3745
3745
|
|
|
3746
3746
|
<br> <br/>
|
|
3747
3747
|
## requestsnapshot
|
|
@@ -3759,8 +3759,8 @@ Result:
|
|
|
3759
3759
|
}
|
|
3760
3760
|
|
|
3761
3761
|
Examples:
|
|
3762
|
-
>
|
|
3763
|
-
> 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:
|
|
3762
|
+
> neurai-cli requestsnapshot "TRONCO" 12345
|
|
3763
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "requestsnapshot", "params": ["PHATSTACKS" 34987] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3764
3764
|
|
|
3765
3765
|
<br> <br/>
|
|
3766
3766
|
## rescanblockchain
|
|
@@ -3779,8 +3779,8 @@ Result:
|
|
|
3779
3779
|
}
|
|
3780
3780
|
|
|
3781
3781
|
Examples:
|
|
3782
|
-
>
|
|
3783
|
-
> 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:
|
|
3782
|
+
> neurai-cli rescanblockchain 100000 120000
|
|
3783
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "rescanblockchain", "params": [100000, 120000] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3784
3784
|
|
|
3785
3785
|
<br> <br/>
|
|
3786
3786
|
## savemempool
|
|
@@ -3789,21 +3789,21 @@ Examples:
|
|
|
3789
3789
|
Dumps the mempool to disk.
|
|
3790
3790
|
|
|
3791
3791
|
Examples:
|
|
3792
|
-
>
|
|
3793
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "savemempool", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3792
|
+
> neurai-cli savemempool
|
|
3793
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "savemempool", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3794
3794
|
|
|
3795
3795
|
<br> <br/>
|
|
3796
3796
|
## sendfrom
|
|
3797
3797
|
<br/> sendfrom "fromaccount" "toaddress" amount ( minconf "comment" "comment_to" )
|
|
3798
3798
|
|
|
3799
|
-
DEPRECATED (use sendtoaddress). Sent an amount from an account to a
|
|
3799
|
+
DEPRECATED (use sendtoaddress). Sent an amount from an account to a neurai address.
|
|
3800
3800
|
|
|
3801
3801
|
Arguments:
|
|
3802
3802
|
1. "fromaccount" (string, required) The name of the account to send funds from. May be the default account using "".
|
|
3803
3803
|
Specifying an account does not influence coin selection, but it does associate the newly created
|
|
3804
3804
|
transaction with the account, so the account's balance computation and transaction history can reflect
|
|
3805
3805
|
the spend.
|
|
3806
|
-
2. "toaddress" (string, required) The
|
|
3806
|
+
2. "toaddress" (string, required) The neurai address to send funds to.
|
|
3807
3807
|
3. amount (numeric or string, required) The amount in XNA (transaction fee is added on top).
|
|
3808
3808
|
4. minconf (numeric, optional, default=1) Only use funds with at least this many confirmations.
|
|
3809
3809
|
5. "comment" (string, optional) A comment used to store what the transaction is for.
|
|
@@ -3818,13 +3818,13 @@ Result:
|
|
|
3818
3818
|
Examples:
|
|
3819
3819
|
|
|
3820
3820
|
Send 0.01 XNA from the default account to the address, must have at least 1 confirmation
|
|
3821
|
-
>
|
|
3821
|
+
> neurai-cli sendfrom "" "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.01
|
|
3822
3822
|
|
|
3823
3823
|
Send 0.01 from the tabby account to the given address, funds must have at least 6 confirmations
|
|
3824
|
-
>
|
|
3824
|
+
> neurai-cli sendfrom "tabby" "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.01 6 "donation" "seans outpost"
|
|
3825
3825
|
|
|
3826
3826
|
As a json rpc call
|
|
3827
|
-
> 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:
|
|
3827
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendfrom", "params": ["tabby", "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd", 0.01, 6, "donation", "seans outpost"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3828
3828
|
|
|
3829
3829
|
<br> <br/>
|
|
3830
3830
|
## sendfromaddress
|
|
@@ -3833,8 +3833,8 @@ As a json rpc call
|
|
|
3833
3833
|
Send an amount from a specific address to a given address. All xna change will get sent back to the from_address
|
|
3834
3834
|
|
|
3835
3835
|
Arguments:
|
|
3836
|
-
1. "from_address" (string, required) The
|
|
3837
|
-
2. "to_address" (string, required) The
|
|
3836
|
+
1. "from_address" (string, required) The neurai address to send from.
|
|
3837
|
+
2. "to_address" (string, required) The neurai address to send to.
|
|
3838
3838
|
3. "amount" (numeric or string, required) The amount in XNA to send. eg 0.1
|
|
3839
3839
|
4. "comment" (string, optional) A comment used to store what the transaction is for.
|
|
3840
3840
|
This is not part of the transaction, just kept in your wallet.
|
|
@@ -3842,7 +3842,7 @@ Arguments:
|
|
|
3842
3842
|
to which you're sending the transaction. This is not part of the
|
|
3843
3843
|
transaction, just kept in your wallet.
|
|
3844
3844
|
6. subtractfeefromamount (boolean, optional, default=false) The fee will be deducted from the amount being sent.
|
|
3845
|
-
The recipient will receive less
|
|
3845
|
+
The recipient will receive less neurais than you enter in the amount field.
|
|
3846
3846
|
7. conf_target (numeric, optional) Confirmation target (in blocks)
|
|
3847
3847
|
8. "estimate_mode" (string, optional, default=UNSET) The fee estimate mode, must be one of:
|
|
3848
3848
|
"UNSET"
|
|
@@ -3853,10 +3853,10 @@ Result:
|
|
|
3853
3853
|
"txid" (string) The transaction id.
|
|
3854
3854
|
|
|
3855
3855
|
Examples:
|
|
3856
|
-
>
|
|
3857
|
-
>
|
|
3858
|
-
>
|
|
3859
|
-
> 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:
|
|
3856
|
+
> neurai-cli sendfromaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1
|
|
3857
|
+
> neurai-cli sendfromaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1 "donation" "seans outpost"
|
|
3858
|
+
> neurai-cli sendfromaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1 "" "" true
|
|
3859
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendfromaddress", "params": ["1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd", 0.1, "donation", "seans outpost"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3860
3860
|
|
|
3861
3861
|
<br> <br/>
|
|
3862
3862
|
## sendmany
|
|
@@ -3868,14 +3868,14 @@ Arguments:
|
|
|
3868
3868
|
1. "fromaccount" (string, required) DEPRECATED. The account to send the funds from. Should be "" for the default account
|
|
3869
3869
|
2. "amounts" (string, required) A json object with addresses and amounts
|
|
3870
3870
|
{
|
|
3871
|
-
"address":amount (numeric or string) The
|
|
3871
|
+
"address":amount (numeric or string) The neurai address is the key, the numeric amount (can be string) in XNA is the value
|
|
3872
3872
|
,...
|
|
3873
3873
|
}
|
|
3874
3874
|
3. minconf (numeric, optional, default=1) Only use the balance confirmed at least this many times.
|
|
3875
3875
|
4. "comment" (string, optional) A comment
|
|
3876
3876
|
5. subtractfeefrom (array, optional) A json array with addresses.
|
|
3877
3877
|
The fee will be equally deducted from the amount of each selected address.
|
|
3878
|
-
Those recipients will receive less
|
|
3878
|
+
Those recipients will receive less neurais than you enter in their corresponding amount field.
|
|
3879
3879
|
If no addresses are specified here, the sender pays the fee.
|
|
3880
3880
|
[
|
|
3881
3881
|
"address" (string) Subtract fee from this address
|
|
@@ -3894,16 +3894,16 @@ Result:
|
|
|
3894
3894
|
Examples:
|
|
3895
3895
|
|
|
3896
3896
|
Send two amounts to two different addresses:
|
|
3897
|
-
>
|
|
3897
|
+
> neurai-cli sendmany "" "{\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\":0.01,\"1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz\":0.02}"
|
|
3898
3898
|
|
|
3899
3899
|
Send two amounts to two different addresses setting the confirmation and comment:
|
|
3900
|
-
>
|
|
3900
|
+
> neurai-cli sendmany "" "{\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\":0.01,\"1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz\":0.02}" 6 "testing"
|
|
3901
3901
|
|
|
3902
3902
|
Send two amounts to two different addresses, subtract fee from amount:
|
|
3903
|
-
>
|
|
3903
|
+
> neurai-cli sendmany "" "{\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\":0.01,\"1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz\":0.02}" 1 "" "[\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\",\"1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz\"]"
|
|
3904
3904
|
|
|
3905
3905
|
As a json rpc call
|
|
3906
|
-
> 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:
|
|
3906
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendmany", "params": ["", "{\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\":0.01,\"1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz\":0.02}", 6, "testing"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3907
3907
|
|
|
3908
3908
|
<br> <br/>
|
|
3909
3909
|
## sendmessage
|
|
@@ -3920,8 +3920,8 @@ txid
|
|
|
3920
3920
|
]
|
|
3921
3921
|
|
|
3922
3922
|
Examples:
|
|
3923
|
-
>
|
|
3924
|
-
>
|
|
3923
|
+
> neurai-cli sendmessage "ASSET_NAME!" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
3924
|
+
> neurai-cli sendmessage "ASSET_NAME!" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
3925
3925
|
|
|
3926
3926
|
<br> <br/>
|
|
3927
3927
|
## sendrawtransaction
|
|
@@ -3941,15 +3941,15 @@ Result:
|
|
|
3941
3941
|
Examples:
|
|
3942
3942
|
|
|
3943
3943
|
Create a transaction
|
|
3944
|
-
>
|
|
3944
|
+
> neurai-cli createrawtransaction "[{\"txid\" : \"mytxid\",\"vout\":0}]" "{\"myaddress\":0.01}"
|
|
3945
3945
|
Sign the transaction, and get back the hex
|
|
3946
|
-
>
|
|
3946
|
+
> neurai-cli signrawtransaction "myhex"
|
|
3947
3947
|
|
|
3948
3948
|
Send the transaction (signed hex)
|
|
3949
|
-
>
|
|
3949
|
+
> neurai-cli sendrawtransaction "signedhex"
|
|
3950
3950
|
|
|
3951
3951
|
As a json rpc call
|
|
3952
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendrawtransaction", "params": ["signedhex"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3952
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendrawtransaction", "params": ["signedhex"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3953
3953
|
|
|
3954
3954
|
<br> <br/>
|
|
3955
3955
|
## sendtoaddress
|
|
@@ -3958,7 +3958,7 @@ As a json rpc call
|
|
|
3958
3958
|
Send an amount to a given address.
|
|
3959
3959
|
|
|
3960
3960
|
Arguments:
|
|
3961
|
-
1. "address" (string, required) The
|
|
3961
|
+
1. "address" (string, required) The neurai address to send to.
|
|
3962
3962
|
2. "amount" (numeric or string, required) The amount in XNA to send. eg 0.1
|
|
3963
3963
|
3. "comment" (string, optional) A comment used to store what the transaction is for.
|
|
3964
3964
|
This is not part of the transaction, just kept in your wallet.
|
|
@@ -3966,7 +3966,7 @@ Arguments:
|
|
|
3966
3966
|
to which you're sending the transaction. This is not part of the
|
|
3967
3967
|
transaction, just kept in your wallet.
|
|
3968
3968
|
5. subtractfeefromamount (boolean, optional, default=false) The fee will be deducted from the amount being sent.
|
|
3969
|
-
The recipient will receive less
|
|
3969
|
+
The recipient will receive less neurais than you enter in the amount field.
|
|
3970
3970
|
6. conf_target (numeric, optional) Confirmation target (in blocks)
|
|
3971
3971
|
7. "estimate_mode" (string, optional, default=UNSET) The fee estimate mode, must be one of:
|
|
3972
3972
|
"UNSET"
|
|
@@ -3977,10 +3977,10 @@ Result:
|
|
|
3977
3977
|
"txid" (string) The transaction id.
|
|
3978
3978
|
|
|
3979
3979
|
Examples:
|
|
3980
|
-
>
|
|
3981
|
-
>
|
|
3982
|
-
>
|
|
3983
|
-
> 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:
|
|
3980
|
+
> neurai-cli sendtoaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1
|
|
3981
|
+
> neurai-cli sendtoaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1 "donation" "seans outpost"
|
|
3982
|
+
> neurai-cli sendtoaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1 "" "" true
|
|
3983
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendtoaddress", "params": ["1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd", 0.1, "donation", "seans outpost"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3984
3984
|
|
|
3985
3985
|
<br> <br/>
|
|
3986
3986
|
## setaccount
|
|
@@ -3989,12 +3989,12 @@ Examples:
|
|
|
3989
3989
|
DEPRECATED. Sets the account associated with the given address.
|
|
3990
3990
|
|
|
3991
3991
|
Arguments:
|
|
3992
|
-
1. "address" (string, required) The
|
|
3992
|
+
1. "address" (string, required) The neurai address to be associated with an account.
|
|
3993
3993
|
2. "account" (string, required) The account to assign the address to.
|
|
3994
3994
|
|
|
3995
3995
|
Examples:
|
|
3996
|
-
>
|
|
3997
|
-
> 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:
|
|
3996
|
+
> neurai-cli setaccount "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX" "tabby"
|
|
3997
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "setaccount", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX", "tabby"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3998
3998
|
|
|
3999
3999
|
<br> <br/>
|
|
4000
4000
|
## setban
|
|
@@ -4009,9 +4009,9 @@ Arguments:
|
|
|
4009
4009
|
4. "absolute" (boolean, optional) If set, the bantime must be an absolute timestamp in seconds since epoch (Jan 1 1970 GMT)
|
|
4010
4010
|
|
|
4011
4011
|
Examples:
|
|
4012
|
-
>
|
|
4013
|
-
>
|
|
4014
|
-
> 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:
|
|
4012
|
+
> neurai-cli setban "192.168.0.6" "add" 86400
|
|
4013
|
+
> neurai-cli setban "192.168.0.0/24" "add"
|
|
4014
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "setban", "params": ["192.168.0.6", "add", 86400] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4015
4015
|
|
|
4016
4016
|
<br> <br/>
|
|
4017
4017
|
## setgenerate
|
|
@@ -4028,16 +4028,16 @@ Arguments:
|
|
|
4028
4028
|
Examples:
|
|
4029
4029
|
|
|
4030
4030
|
Set the generation on with a limit of one processor
|
|
4031
|
-
>
|
|
4031
|
+
> neurai-cli setgenerate true 1
|
|
4032
4032
|
|
|
4033
4033
|
Check the setting
|
|
4034
|
-
>
|
|
4034
|
+
> neurai-cli getgenerate
|
|
4035
4035
|
|
|
4036
4036
|
Turn off generation
|
|
4037
|
-
>
|
|
4037
|
+
> neurai-cli setgenerate false
|
|
4038
4038
|
|
|
4039
4039
|
Using json rpc
|
|
4040
|
-
> 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:
|
|
4040
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "setgenerate", "params": [true, 1] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4041
4041
|
|
|
4042
4042
|
<br> <br/>
|
|
4043
4043
|
## setnetworkactive
|
|
@@ -4061,8 +4061,8 @@ Result
|
|
|
4061
4061
|
true|false (boolean) Returns true if successful
|
|
4062
4062
|
|
|
4063
4063
|
Examples:
|
|
4064
|
-
>
|
|
4065
|
-
> 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:
|
|
4064
|
+
> neurai-cli settxfee 0.00001
|
|
4065
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "settxfee", "params": [0.00001] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4066
4066
|
|
|
4067
4067
|
<br> <br/>
|
|
4068
4068
|
## signmessage
|
|
@@ -4071,7 +4071,7 @@ Examples:
|
|
|
4071
4071
|
Sign a message with the private key of an address
|
|
4072
4072
|
|
|
4073
4073
|
Arguments:
|
|
4074
|
-
1. "address" (string, required) The
|
|
4074
|
+
1. "address" (string, required) The neurai address to use for the private key.
|
|
4075
4075
|
2. "message" (string, required) The message to create a signature of.
|
|
4076
4076
|
|
|
4077
4077
|
Result:
|
|
@@ -4080,16 +4080,16 @@ Result:
|
|
|
4080
4080
|
Examples:
|
|
4081
4081
|
|
|
4082
4082
|
Unlock the wallet for 30 seconds
|
|
4083
|
-
>
|
|
4083
|
+
> neurai-cli walletpassphrase "mypassphrase" 30
|
|
4084
4084
|
|
|
4085
4085
|
Create the signature
|
|
4086
|
-
>
|
|
4086
|
+
> neurai-cli signmessage "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX" "my message"
|
|
4087
4087
|
|
|
4088
4088
|
Verify the signature
|
|
4089
|
-
>
|
|
4089
|
+
> neurai-cli verifymessage "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX" "signature" "my message"
|
|
4090
4090
|
|
|
4091
4091
|
As json rpc
|
|
4092
|
-
> 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:
|
|
4092
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "signmessage", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX", "my message"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4093
4093
|
|
|
4094
4094
|
<br> <br/>
|
|
4095
4095
|
## signmessagewithprivkey
|
|
@@ -4107,13 +4107,13 @@ Result:
|
|
|
4107
4107
|
Examples:
|
|
4108
4108
|
|
|
4109
4109
|
Create the signature
|
|
4110
|
-
>
|
|
4110
|
+
> neurai-cli signmessagewithprivkey "privkey" "my message"
|
|
4111
4111
|
|
|
4112
4112
|
Verify the signature
|
|
4113
|
-
>
|
|
4113
|
+
> neurai-cli verifymessage "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX" "signature" "my message"
|
|
4114
4114
|
|
|
4115
4115
|
As json rpc
|
|
4116
|
-
> 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:
|
|
4116
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "signmessagewithprivkey", "params": ["privkey", "my message"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4117
4117
|
|
|
4118
4118
|
<br> <br/>
|
|
4119
4119
|
## signrawtransaction
|
|
@@ -4169,20 +4169,20 @@ Result:
|
|
|
4169
4169
|
}
|
|
4170
4170
|
|
|
4171
4171
|
Examples:
|
|
4172
|
-
>
|
|
4173
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "signrawtransaction", "params": ["myhex"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4172
|
+
> neurai-cli signrawtransaction "myhex"
|
|
4173
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "signrawtransaction", "params": ["myhex"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4174
4174
|
|
|
4175
4175
|
<br> <br/>
|
|
4176
4176
|
## stop
|
|
4177
4177
|
<br/> stop
|
|
4178
4178
|
|
|
4179
|
-
Stop
|
|
4179
|
+
Stop Neurai server.
|
|
4180
4180
|
<br> <br/>
|
|
4181
4181
|
## submitblock
|
|
4182
4182
|
<br/> submitblock "hexdata" ( "dummy" )
|
|
4183
4183
|
|
|
4184
4184
|
Attempts to submit new block to network.
|
|
4185
|
-
See https://en.
|
|
4185
|
+
See https://en.neurai.it/wiki/BIP_0022 for full specification.
|
|
4186
4186
|
|
|
4187
4187
|
Arguments
|
|
4188
4188
|
1. "hexdata" (string, required) the hex-encoded block data to submit
|
|
@@ -4191,8 +4191,8 @@ Arguments
|
|
|
4191
4191
|
Result:
|
|
4192
4192
|
|
|
4193
4193
|
Examples:
|
|
4194
|
-
>
|
|
4195
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "submitblock", "params": ["mydata"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4194
|
+
> neurai-cli submitblock "mydata"
|
|
4195
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "submitblock", "params": ["mydata"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4196
4196
|
|
|
4197
4197
|
<br> <br/>
|
|
4198
4198
|
## subscribetochannel
|
|
@@ -4208,8 +4208,8 @@ Result:[
|
|
|
4208
4208
|
]
|
|
4209
4209
|
|
|
4210
4210
|
Examples:
|
|
4211
|
-
>
|
|
4212
|
-
> 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:
|
|
4211
|
+
> neurai-cli subscribetochannel "ASSET_NAME!"
|
|
4212
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "subscribetochannel", "params": ["ASSET_NAME!"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4213
4213
|
|
|
4214
4214
|
<br> <br/>
|
|
4215
4215
|
## testmempoolaccept
|
|
@@ -4239,15 +4239,15 @@ Result:
|
|
|
4239
4239
|
Examples:
|
|
4240
4240
|
|
|
4241
4241
|
Create a transaction
|
|
4242
|
-
>
|
|
4242
|
+
> neurai-cli createrawtransaction "[{\"txid\" : \"mytxid\",\"vout\":0}]" "{\"myaddress\":0.01}"
|
|
4243
4243
|
Sign the transaction, and get back the hex
|
|
4244
|
-
>
|
|
4244
|
+
> neurai-cli signrawtransaction "myhex"
|
|
4245
4245
|
|
|
4246
4246
|
Test acceptance of the transaction (signed hex)
|
|
4247
|
-
>
|
|
4247
|
+
> neurai-cli testmempoolaccept "signedhex"
|
|
4248
4248
|
|
|
4249
4249
|
As a json rpc call
|
|
4250
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "testmempoolaccept", "params": [["signedhex"]] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4250
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "testmempoolaccept", "params": [["signedhex"]] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4251
4251
|
|
|
4252
4252
|
<br> <br/>
|
|
4253
4253
|
## transfer
|
|
@@ -4269,8 +4269,8 @@ txid
|
|
|
4269
4269
|
]
|
|
4270
4270
|
|
|
4271
4271
|
Examples:
|
|
4272
|
-
>
|
|
4273
|
-
>
|
|
4272
|
+
> neurai-cli transfer "ASSET_NAME" 20 "address" "" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
4273
|
+
> neurai-cli transfer "ASSET_NAME" 20 "address" "" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
4274
4274
|
|
|
4275
4275
|
<br> <br/>
|
|
4276
4276
|
## transferfromaddress
|
|
@@ -4293,8 +4293,8 @@ txid
|
|
|
4293
4293
|
]
|
|
4294
4294
|
|
|
4295
4295
|
Examples:
|
|
4296
|
-
>
|
|
4297
|
-
> 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:
|
|
4296
|
+
> neurai-cli transferfromaddress "ASSET_NAME" "fromaddress" 20 "address" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E", 156545652
|
|
4297
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "transferfromaddress", "params": ["ASSET_NAME" "fromaddress" 20 "address" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E", 156545652] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4298
4298
|
|
|
4299
4299
|
<br> <br/>
|
|
4300
4300
|
## transferfromaddresses
|
|
@@ -4317,8 +4317,8 @@ txid
|
|
|
4317
4317
|
]
|
|
4318
4318
|
|
|
4319
4319
|
Examples:
|
|
4320
|
-
>
|
|
4321
|
-
> 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:
|
|
4320
|
+
> neurai-cli transferfromaddresses "ASSET_NAME" '["fromaddress1", "fromaddress2"]' 20 "to_address" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 154652365
|
|
4321
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "transferfromaddresses", "params": ["ASSET_NAME" '["fromaddress1", "fromaddress2"]' 20 "to_address" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 154652365] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4322
4322
|
|
|
4323
4323
|
<br> <br/>
|
|
4324
4324
|
## transferqualifier
|
|
@@ -4339,8 +4339,8 @@ txid
|
|
|
4339
4339
|
]
|
|
4340
4340
|
|
|
4341
4341
|
Examples:
|
|
4342
|
-
>
|
|
4343
|
-
>
|
|
4342
|
+
> neurai-cli transferqualifier "#QUALIFIER" 20 "to_address" "" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
4343
|
+
> neurai-cli transferqualifier "#QUALIFIER" 20 "to_address" "change_address" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
4344
4344
|
|
|
4345
4345
|
<br> <br/>
|
|
4346
4346
|
## unfreezeaddress
|
|
@@ -4358,10 +4358,10 @@ Result:
|
|
|
4358
4358
|
"txid" (string) The transaction id
|
|
4359
4359
|
|
|
4360
4360
|
Examples:
|
|
4361
|
-
>
|
|
4362
|
-
> 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:
|
|
4363
|
-
>
|
|
4364
|
-
> 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:
|
|
4361
|
+
> neurai-cli unfreezeaddress "$RESTRICTED_ASSET" "address"
|
|
4362
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "unfreezeaddress", "params": ["$RESTRICTED_ASSET" "address"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4363
|
+
> neurai-cli unfreezeaddress "$RESTRICTED_ASSET" "address" "change_address"
|
|
4364
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "unfreezeaddress", "params": ["$RESTRICTED_ASSET" "address" "change_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4365
4365
|
|
|
4366
4366
|
<br> <br/>
|
|
4367
4367
|
## unfreezerestrictedasset
|
|
@@ -4378,10 +4378,10 @@ Result:
|
|
|
4378
4378
|
"txid" (string) The transaction id
|
|
4379
4379
|
|
|
4380
4380
|
Examples:
|
|
4381
|
-
>
|
|
4382
|
-
> 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:
|
|
4383
|
-
>
|
|
4384
|
-
> 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:
|
|
4381
|
+
> neurai-cli unfreezerestrictedasset "$RESTRICTED_ASSET"
|
|
4382
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "unfreezerestrictedasset", "params": ["$RESTRICTED_ASSET"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4383
|
+
> neurai-cli unfreezerestrictedasset "$RESTRICTED_ASSET" "change_address"
|
|
4384
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "unfreezerestrictedasset", "params": ["$RESTRICTED_ASSET" "change_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4385
4385
|
|
|
4386
4386
|
<br> <br/>
|
|
4387
4387
|
## unsubscribefromchannel
|
|
@@ -4397,8 +4397,8 @@ Result:[
|
|
|
4397
4397
|
]
|
|
4398
4398
|
|
|
4399
4399
|
Examples:
|
|
4400
|
-
>
|
|
4401
|
-
> 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:
|
|
4400
|
+
> neurai-cli unsubscribefromchannel "ASSET_NAME!"
|
|
4401
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "unsubscribefromchannel", "params": ["ASSET_NAME!"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4402
4402
|
|
|
4403
4403
|
<br> <br/>
|
|
4404
4404
|
## uptime
|
|
@@ -4410,22 +4410,22 @@ Result:
|
|
|
4410
4410
|
ttt (numeric) The number of seconds that the server has been running
|
|
4411
4411
|
|
|
4412
4412
|
Examples:
|
|
4413
|
-
>
|
|
4414
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "uptime", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4413
|
+
> neurai-cli uptime
|
|
4414
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "uptime", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4415
4415
|
|
|
4416
4416
|
<br> <br/>
|
|
4417
4417
|
## validateaddress
|
|
4418
4418
|
<br/> validateaddress "address"
|
|
4419
4419
|
|
|
4420
|
-
Return information about the given
|
|
4420
|
+
Return information about the given neurai address.
|
|
4421
4421
|
|
|
4422
4422
|
Arguments:
|
|
4423
|
-
1. "address" (string, required) The
|
|
4423
|
+
1. "address" (string, required) The neurai address to validate
|
|
4424
4424
|
|
|
4425
4425
|
Result:
|
|
4426
4426
|
{
|
|
4427
4427
|
"isvalid" : true|false, (boolean) If the address is valid or not. If not, this is the only property returned.
|
|
4428
|
-
"address" : "address", (string) The
|
|
4428
|
+
"address" : "address", (string) The neurai address validated
|
|
4429
4429
|
"scriptPubKey" : "hex", (string) The hex encoded scriptPubKey generated by the address
|
|
4430
4430
|
"ismine" : true|false, (boolean) If the address is yours or not
|
|
4431
4431
|
"iswatchonly" : true|false, (boolean) If the address is watchonly
|
|
@@ -4447,8 +4447,8 @@ Result:
|
|
|
4447
4447
|
}
|
|
4448
4448
|
|
|
4449
4449
|
Examples:
|
|
4450
|
-
>
|
|
4451
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "validateaddress", "params": ["1PSSGeFHDnKNxiEyFrD1wcEaHr9hrQDDWc"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4450
|
+
> neurai-cli validateaddress "1PSSGeFHDnKNxiEyFrD1wcEaHr9hrQDDWc"
|
|
4451
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "validateaddress", "params": ["1PSSGeFHDnKNxiEyFrD1wcEaHr9hrQDDWc"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4452
4452
|
|
|
4453
4453
|
<br> <br/>
|
|
4454
4454
|
## verifychain
|
|
@@ -4464,8 +4464,8 @@ Result:
|
|
|
4464
4464
|
true|false (boolean) Verified or not
|
|
4465
4465
|
|
|
4466
4466
|
Examples:
|
|
4467
|
-
>
|
|
4468
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "verifychain", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4467
|
+
> neurai-cli verifychain
|
|
4468
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "verifychain", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4469
4469
|
|
|
4470
4470
|
<br> <br/>
|
|
4471
4471
|
## verifymessage
|
|
@@ -4474,7 +4474,7 @@ Examples:
|
|
|
4474
4474
|
Verify a signed message
|
|
4475
4475
|
|
|
4476
4476
|
Arguments:
|
|
4477
|
-
1. "address" (string, required) The
|
|
4477
|
+
1. "address" (string, required) The neurai address to use for the signature.
|
|
4478
4478
|
2. "signature" (string, required) The signature provided by the signer in base 64 encoding (see signmessage).
|
|
4479
4479
|
3. "message" (string, required) The message that was signed.
|
|
4480
4480
|
|
|
@@ -4484,16 +4484,16 @@ true|false (boolean) If the signature is verified or not.
|
|
|
4484
4484
|
Examples:
|
|
4485
4485
|
|
|
4486
4486
|
Unlock the wallet for 30 seconds
|
|
4487
|
-
>
|
|
4487
|
+
> neurai-cli walletpassphrase "mypassphrase" 30
|
|
4488
4488
|
|
|
4489
4489
|
Create the signature
|
|
4490
|
-
>
|
|
4490
|
+
> neurai-cli signmessage "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX" "my message"
|
|
4491
4491
|
|
|
4492
4492
|
Verify the signature
|
|
4493
|
-
>
|
|
4493
|
+
> neurai-cli verifymessage "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX" "signature" "my message"
|
|
4494
4494
|
|
|
4495
4495
|
As json rpc
|
|
4496
|
-
> 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:
|
|
4496
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "verifymessage", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX", "signature", "my message"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4497
4497
|
|
|
4498
4498
|
<br> <br/>
|
|
4499
4499
|
## verifytxoutproof
|
|
@@ -4520,8 +4520,8 @@ Result:[
|
|
|
4520
4520
|
]
|
|
4521
4521
|
|
|
4522
4522
|
Examples:
|
|
4523
|
-
>
|
|
4524
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewallmessagechannels", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4523
|
+
> neurai-cli viewallmessagechannels
|
|
4524
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewallmessagechannels", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4525
4525
|
|
|
4526
4526
|
<br> <br/>
|
|
4527
4527
|
## viewallmessages
|
|
@@ -4539,8 +4539,8 @@ Result:
|
|
|
4539
4539
|
"Expire UTC Time:" (Date, optional) If the message contains an expire date that is too large, the UTC number will be displayed
|
|
4540
4540
|
|
|
4541
4541
|
Examples:
|
|
4542
|
-
>
|
|
4543
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewallmessages", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4542
|
+
> neurai-cli viewallmessages
|
|
4543
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewallmessages", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4544
4544
|
|
|
4545
4545
|
<br> <br/>
|
|
4546
4546
|
## viewmyrestrictedaddresses
|
|
@@ -4557,8 +4557,8 @@ Result:
|
|
|
4557
4557
|
}...
|
|
4558
4558
|
|
|
4559
4559
|
Examples:
|
|
4560
|
-
>
|
|
4561
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewmyrestrictedaddresses", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4560
|
+
> neurai-cli viewmyrestrictedaddresses
|
|
4561
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewmyrestrictedaddresses", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4562
4562
|
|
|
4563
4563
|
<br> <br/>
|
|
4564
4564
|
## viewmytaggedaddresses
|
|
@@ -4575,6 +4575,6 @@ Result:
|
|
|
4575
4575
|
}...
|
|
4576
4576
|
|
|
4577
4577
|
Examples:
|
|
4578
|
-
>
|
|
4579
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewmytaggedaddresses", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4578
|
+
> neurai-cli viewmytaggedaddresses
|
|
4579
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewmytaggedaddresses", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4580
4580
|
|