@neuraiproject/neurai-rpc 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +5 -5
- package/createDocs.mjs +2 -2
- package/dist/index.cjs +4505 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.mjs +4499 -0
- package/dist/index.mjs.map +1 -0
- package/dist/types.d.ts +177 -0
- package/dist/types.d.ts.map +1 -0
- package/docs.json +163 -163
- package/docs.ts +498 -498
- package/index.ts +2 -2
- package/neurai_methods.md +160 -160
- package/package.json +3 -3
- package/test.js +56 -0
package/neurai_methods.md
CHANGED
|
@@ -17,7 +17,7 @@ Result:
|
|
|
17
17
|
|
|
18
18
|
Examples:
|
|
19
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:
|
|
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:8766/
|
|
21
21
|
|
|
22
22
|
<br> <br/>
|
|
23
23
|
## abortrescan
|
|
@@ -34,7 +34,7 @@ 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:8766/
|
|
38
38
|
|
|
39
39
|
<br> <br/>
|
|
40
40
|
## addmultisigaddress
|
|
@@ -62,7 +62,7 @@ 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:8766/
|
|
66
66
|
|
|
67
67
|
<br> <br/>
|
|
68
68
|
## addnode
|
|
@@ -79,7 +79,7 @@ Arguments:
|
|
|
79
79
|
|
|
80
80
|
Examples:
|
|
81
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:
|
|
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:8766/
|
|
83
83
|
|
|
84
84
|
<br> <br/>
|
|
85
85
|
## addtagtoaddress
|
|
@@ -98,9 +98,9 @@ Result:
|
|
|
98
98
|
|
|
99
99
|
Examples:
|
|
100
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:
|
|
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:8766/
|
|
102
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:
|
|
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:8766/
|
|
104
104
|
|
|
105
105
|
<br> <br/>
|
|
106
106
|
## addwitnessaddress
|
|
@@ -127,7 +127,7 @@ Arguments:
|
|
|
127
127
|
|
|
128
128
|
Examples:
|
|
129
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:
|
|
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:8766/
|
|
131
131
|
|
|
132
132
|
<br> <br/>
|
|
133
133
|
## bumpfee
|
|
@@ -149,7 +149,7 @@ Result:
|
|
|
149
149
|
|
|
150
150
|
Examples:
|
|
151
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:
|
|
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:8766/
|
|
153
153
|
|
|
154
154
|
<br> <br/>
|
|
155
155
|
## checkaddressrestriction
|
|
@@ -166,7 +166,7 @@ Result:
|
|
|
166
166
|
|
|
167
167
|
Examples:
|
|
168
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:
|
|
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:8766/
|
|
170
170
|
|
|
171
171
|
<br> <br/>
|
|
172
172
|
## checkaddresstag
|
|
@@ -183,7 +183,7 @@ Result:
|
|
|
183
183
|
|
|
184
184
|
Examples:
|
|
185
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:
|
|
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:8766/
|
|
187
187
|
|
|
188
188
|
<br> <br/>
|
|
189
189
|
## checkglobalrestriction
|
|
@@ -199,7 +199,7 @@ Result:
|
|
|
199
199
|
|
|
200
200
|
Examples:
|
|
201
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:
|
|
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:8766/
|
|
203
203
|
|
|
204
204
|
<br> <br/>
|
|
205
205
|
## clearbanned
|
|
@@ -209,7 +209,7 @@ Clear all banned IPs.
|
|
|
209
209
|
|
|
210
210
|
Examples:
|
|
211
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:
|
|
212
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearbanned", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
213
213
|
|
|
214
214
|
<br> <br/>
|
|
215
215
|
## clearmempool
|
|
@@ -219,7 +219,7 @@ Removes all transaction from the mempool
|
|
|
219
219
|
|
|
220
220
|
Examples:
|
|
221
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:
|
|
222
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearmempool", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
223
223
|
|
|
224
224
|
<br> <br/>
|
|
225
225
|
## clearmessages
|
|
@@ -233,7 +233,7 @@ Result:[
|
|
|
233
233
|
|
|
234
234
|
Examples:
|
|
235
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:
|
|
236
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearmessages", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
237
237
|
|
|
238
238
|
<br> <br/>
|
|
239
239
|
## combinerawtransaction
|
|
@@ -282,7 +282,7 @@ 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:8766/
|
|
286
286
|
|
|
287
287
|
<br> <br/>
|
|
288
288
|
## createrawtransaction
|
|
@@ -529,7 +529,7 @@ Examples:
|
|
|
529
529
|
> neurai-cli createrawtransaction "[{\"txid\":\"mycoin\",\"vout\":0},{\"txid\":\"myasset\",\"vout\":0}]" "{\"address\":{\"transfer\":{\"MYASSET\":50}}}"
|
|
530
530
|
> neurai-cli createrawtransaction "[{\"txid\":\"mycoin\",\"vout\":0},{\"txid\":\"myasset\",\"vout\":0}]" "{\"address\":{\"transferwithmessage\":{\"MYASSET\":50,\"message\":\"hash\",\"expire_time\": utc_time}}}"
|
|
531
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:
|
|
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:8766/
|
|
533
533
|
|
|
534
534
|
<br> <br/>
|
|
535
535
|
## decodeblock
|
|
@@ -559,7 +559,7 @@ Result:
|
|
|
559
559
|
|
|
560
560
|
Examples:
|
|
561
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:
|
|
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:8766/
|
|
563
563
|
|
|
564
564
|
<br> <br/>
|
|
565
565
|
## decoderawtransaction
|
|
@@ -617,7 +617,7 @@ Result:
|
|
|
617
617
|
|
|
618
618
|
Examples:
|
|
619
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:
|
|
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:8766/
|
|
621
621
|
|
|
622
622
|
<br> <br/>
|
|
623
623
|
## decodescript
|
|
@@ -656,7 +656,7 @@ Result:
|
|
|
656
656
|
|
|
657
657
|
Examples:
|
|
658
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:
|
|
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:8766/
|
|
660
660
|
|
|
661
661
|
<br> <br/>
|
|
662
662
|
## disconnectnode
|
|
@@ -675,8 +675,8 @@ Arguments:
|
|
|
675
675
|
Examples:
|
|
676
676
|
> neurai-cli disconnectnode "192.168.0.6:8767"
|
|
677
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:
|
|
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:
|
|
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:8766/
|
|
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:8766/
|
|
680
680
|
|
|
681
681
|
<br> <br/>
|
|
682
682
|
## distributereward
|
|
@@ -713,8 +713,8 @@ Result:
|
|
|
713
713
|
Examples:
|
|
714
714
|
> neurai-cli distributereward "TRONCO" 12345 "XNA" 1000
|
|
715
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:
|
|
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:
|
|
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:8766/
|
|
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:8766/
|
|
718
718
|
|
|
719
719
|
<br> <br/>
|
|
720
720
|
## dumpprivkey
|
|
@@ -732,7 +732,7 @@ Result:
|
|
|
732
732
|
Examples:
|
|
733
733
|
> neurai-cli dumpprivkey "myaddress"
|
|
734
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:
|
|
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:8766/
|
|
736
736
|
|
|
737
737
|
<br> <br/>
|
|
738
738
|
## dumpwallet
|
|
@@ -750,7 +750,7 @@ Result:
|
|
|
750
750
|
|
|
751
751
|
Examples:
|
|
752
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:
|
|
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:8766/
|
|
754
754
|
|
|
755
755
|
<br> <br/>
|
|
756
756
|
## encryptwallet
|
|
@@ -781,7 +781,7 @@ 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:8766/
|
|
785
785
|
|
|
786
786
|
<br> <br/>
|
|
787
787
|
## estimatefee
|
|
@@ -859,9 +859,9 @@ Result:
|
|
|
859
859
|
|
|
860
860
|
Examples:
|
|
861
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:
|
|
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:8766/
|
|
863
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:
|
|
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:8766/
|
|
865
865
|
|
|
866
866
|
<br> <br/>
|
|
867
867
|
## freezerestrictedasset
|
|
@@ -879,9 +879,9 @@ Result:
|
|
|
879
879
|
|
|
880
880
|
Examples:
|
|
881
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:
|
|
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:8766/
|
|
883
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:
|
|
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:8766/
|
|
885
885
|
|
|
886
886
|
<br> <br/>
|
|
887
887
|
## fundrawtransaction
|
|
@@ -994,7 +994,7 @@ Result:
|
|
|
994
994
|
|
|
995
995
|
Examples:
|
|
996
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:
|
|
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:8766/
|
|
998
998
|
|
|
999
999
|
<br> <br/>
|
|
1000
1000
|
## getaccountaddress
|
|
@@ -1012,7 +1012,7 @@ Examples:
|
|
|
1012
1012
|
> neurai-cli getaccountaddress
|
|
1013
1013
|
> neurai-cli getaccountaddress ""
|
|
1014
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:
|
|
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:8766/
|
|
1016
1016
|
|
|
1017
1017
|
<br> <br/>
|
|
1018
1018
|
## getaddednodeinfo
|
|
@@ -1041,7 +1041,7 @@ Result:
|
|
|
1041
1041
|
|
|
1042
1042
|
Examples:
|
|
1043
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:
|
|
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:8766/
|
|
1045
1045
|
|
|
1046
1046
|
<br> <br/>
|
|
1047
1047
|
## getaddressbalance
|
|
@@ -1077,8 +1077,8 @@ OR
|
|
|
1077
1077
|
Examples:
|
|
1078
1078
|
> neurai-cli getaddressbalance '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}'
|
|
1079
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:
|
|
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:
|
|
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:8766/
|
|
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:8766/
|
|
1082
1082
|
|
|
1083
1083
|
<br> <br/>
|
|
1084
1084
|
## getaddressdeltas
|
|
@@ -1113,9 +1113,9 @@ Result:
|
|
|
1113
1113
|
|
|
1114
1114
|
Examples:
|
|
1115
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:
|
|
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:8766/
|
|
1117
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:
|
|
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:8766/
|
|
1119
1119
|
|
|
1120
1120
|
<br> <br/>
|
|
1121
1121
|
## getaddressesbyaccount
|
|
@@ -1134,7 +1134,7 @@ Result:
|
|
|
1134
1134
|
|
|
1135
1135
|
Examples:
|
|
1136
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:
|
|
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:8766/
|
|
1138
1138
|
|
|
1139
1139
|
<br> <br/>
|
|
1140
1140
|
## getaddressmempool
|
|
@@ -1168,9 +1168,9 @@ Result:
|
|
|
1168
1168
|
|
|
1169
1169
|
Examples:
|
|
1170
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:
|
|
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:8766/
|
|
1172
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:
|
|
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:8766/
|
|
1174
1174
|
|
|
1175
1175
|
<br> <br/>
|
|
1176
1176
|
## getaddresstxids
|
|
@@ -1198,9 +1198,9 @@ Result:
|
|
|
1198
1198
|
|
|
1199
1199
|
Examples:
|
|
1200
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:
|
|
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:8766/
|
|
1202
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:
|
|
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:8766/
|
|
1204
1204
|
|
|
1205
1205
|
<br> <br/>
|
|
1206
1206
|
## getaddressutxos
|
|
@@ -1234,9 +1234,9 @@ Result
|
|
|
1234
1234
|
|
|
1235
1235
|
Examples:
|
|
1236
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:
|
|
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:8766/
|
|
1238
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:
|
|
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:8766/
|
|
1240
1240
|
|
|
1241
1241
|
<br> <br/>
|
|
1242
1242
|
## getassetdata
|
|
@@ -1261,7 +1261,7 @@ Result:
|
|
|
1261
1261
|
|
|
1262
1262
|
Examples:
|
|
1263
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:
|
|
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:8766/
|
|
1265
1265
|
|
|
1266
1266
|
<br> <br/>
|
|
1267
1267
|
## getbalance
|
|
@@ -1300,7 +1300,7 @@ 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:8766/
|
|
1304
1304
|
|
|
1305
1305
|
<br> <br/>
|
|
1306
1306
|
## getbestblockhash
|
|
@@ -1313,7 +1313,7 @@ Result:
|
|
|
1313
1313
|
|
|
1314
1314
|
Examples:
|
|
1315
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:
|
|
1316
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getbestblockhash", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1317
1317
|
|
|
1318
1318
|
<br> <br/>
|
|
1319
1319
|
## getblock
|
|
@@ -1366,7 +1366,7 @@ Result (for verbosity = 2):
|
|
|
1366
1366
|
|
|
1367
1367
|
Examples:
|
|
1368
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:
|
|
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:8766/
|
|
1370
1370
|
|
|
1371
1371
|
<br> <br/>
|
|
1372
1372
|
## getblockchaininfo
|
|
@@ -1418,7 +1418,7 @@ Result:
|
|
|
1418
1418
|
|
|
1419
1419
|
Examples:
|
|
1420
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:
|
|
1421
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockchaininfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1422
1422
|
|
|
1423
1423
|
<br> <br/>
|
|
1424
1424
|
## getblockcount
|
|
@@ -1431,7 +1431,7 @@ n (numeric) The current block count
|
|
|
1431
1431
|
|
|
1432
1432
|
Examples:
|
|
1433
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:
|
|
1434
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockcount", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1435
1435
|
|
|
1436
1436
|
<br> <br/>
|
|
1437
1437
|
## getblockhash
|
|
@@ -1447,7 +1447,7 @@ Result:
|
|
|
1447
1447
|
|
|
1448
1448
|
Examples:
|
|
1449
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:
|
|
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:8766/
|
|
1451
1451
|
|
|
1452
1452
|
<br> <br/>
|
|
1453
1453
|
## getblockhashes
|
|
@@ -1477,7 +1477,7 @@ Result:
|
|
|
1477
1477
|
|
|
1478
1478
|
Examples:
|
|
1479
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:
|
|
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:8766/
|
|
1481
1481
|
> neurai-cli getblockhashes 1231614698 1231024505 '{"noOrphans":false, "logicalTimes":true}'
|
|
1482
1482
|
|
|
1483
1483
|
<br> <br/>
|
|
@@ -1514,7 +1514,7 @@ Result (for verbose=false):
|
|
|
1514
1514
|
|
|
1515
1515
|
Examples:
|
|
1516
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:
|
|
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:8766/
|
|
1518
1518
|
|
|
1519
1519
|
<br> <br/>
|
|
1520
1520
|
## getblocktemplate
|
|
@@ -1591,7 +1591,7 @@ Result:
|
|
|
1591
1591
|
|
|
1592
1592
|
Examples:
|
|
1593
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:
|
|
1594
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblocktemplate", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1595
1595
|
|
|
1596
1596
|
<br> <br/>
|
|
1597
1597
|
## getcacheinfo
|
|
@@ -1611,7 +1611,7 @@ 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:
|
|
1614
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getcacheinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1615
1615
|
> neurai-cli getcacheinfo
|
|
1616
1616
|
|
|
1617
1617
|
<br> <br/>
|
|
@@ -1643,7 +1643,7 @@ Possible values for status:
|
|
|
1643
1643
|
|
|
1644
1644
|
Examples:
|
|
1645
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:
|
|
1646
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getchaintips", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1647
1647
|
|
|
1648
1648
|
<br> <br/>
|
|
1649
1649
|
## getchaintxstats
|
|
@@ -1667,7 +1667,7 @@ Result:
|
|
|
1667
1667
|
|
|
1668
1668
|
Examples:
|
|
1669
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:
|
|
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:8766/
|
|
1671
1671
|
|
|
1672
1672
|
<br> <br/>
|
|
1673
1673
|
## getconnectioncount
|
|
@@ -1680,7 +1680,7 @@ n (numeric) The connection count
|
|
|
1680
1680
|
|
|
1681
1681
|
Examples:
|
|
1682
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:
|
|
1683
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getconnectioncount", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1684
1684
|
|
|
1685
1685
|
<br> <br/>
|
|
1686
1686
|
## getdifficulty
|
|
@@ -1693,7 +1693,7 @@ n.nnn (numeric) the proof-of-work difficulty as a multiple of the minimum
|
|
|
1693
1693
|
|
|
1694
1694
|
Examples:
|
|
1695
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:
|
|
1696
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getdifficulty", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1697
1697
|
|
|
1698
1698
|
<br> <br/>
|
|
1699
1699
|
## getdistributestatus
|
|
@@ -1711,8 +1711,8 @@ Arguments:
|
|
|
1711
1711
|
Examples:
|
|
1712
1712
|
> neurai-cli getdistributestatus "TRONCO" 12345 "XNA" 1000
|
|
1713
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:
|
|
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:
|
|
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:8766/
|
|
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:8766/
|
|
1716
1716
|
|
|
1717
1717
|
<br> <br/>
|
|
1718
1718
|
## getgenerate
|
|
@@ -1727,7 +1727,7 @@ true|false (boolean) If the server is set to generate coins or not
|
|
|
1727
1727
|
|
|
1728
1728
|
Examples:
|
|
1729
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:
|
|
1730
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getgenerate", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1731
1731
|
|
|
1732
1732
|
<br> <br/>
|
|
1733
1733
|
## getinfo
|
|
@@ -1758,7 +1758,7 @@ Result:
|
|
|
1758
1758
|
|
|
1759
1759
|
Examples:
|
|
1760
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:
|
|
1761
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1762
1762
|
|
|
1763
1763
|
<br> <br/>
|
|
1764
1764
|
## getkawpowhash
|
|
@@ -1777,7 +1777,7 @@ Result:
|
|
|
1777
1777
|
|
|
1778
1778
|
Examples:
|
|
1779
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:
|
|
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:8766/
|
|
1781
1781
|
|
|
1782
1782
|
<br> <br/>
|
|
1783
1783
|
## getmasterkeyinfo
|
|
@@ -1796,7 +1796,7 @@ Result:
|
|
|
1796
1796
|
|
|
1797
1797
|
Examples:
|
|
1798
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:
|
|
1799
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmasterkeyinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1800
1800
|
|
|
1801
1801
|
<br> <br/>
|
|
1802
1802
|
## getmemoryinfo
|
|
@@ -1824,7 +1824,7 @@ Result (mode "mallocinfo"):
|
|
|
1824
1824
|
|
|
1825
1825
|
Examples:
|
|
1826
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:
|
|
1827
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmemoryinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1828
1828
|
|
|
1829
1829
|
<br> <br/>
|
|
1830
1830
|
## getmempoolancestors
|
|
@@ -1865,7 +1865,7 @@ Result (for verbose=true):
|
|
|
1865
1865
|
|
|
1866
1866
|
Examples:
|
|
1867
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:
|
|
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:8766/
|
|
1869
1869
|
|
|
1870
1870
|
<br> <br/>
|
|
1871
1871
|
## getmempooldescendants
|
|
@@ -1906,7 +1906,7 @@ Result (for verbose=true):
|
|
|
1906
1906
|
|
|
1907
1907
|
Examples:
|
|
1908
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:
|
|
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:8766/
|
|
1910
1910
|
|
|
1911
1911
|
<br> <br/>
|
|
1912
1912
|
## getmempoolentry
|
|
@@ -1938,7 +1938,7 @@ Result:
|
|
|
1938
1938
|
|
|
1939
1939
|
Examples:
|
|
1940
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:
|
|
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:8766/
|
|
1942
1942
|
|
|
1943
1943
|
<br> <br/>
|
|
1944
1944
|
## getmempoolinfo
|
|
@@ -1957,7 +1957,7 @@ Result:
|
|
|
1957
1957
|
|
|
1958
1958
|
Examples:
|
|
1959
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:
|
|
1960
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempoolinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1961
1961
|
|
|
1962
1962
|
<br> <br/>
|
|
1963
1963
|
## getmininginfo
|
|
@@ -1980,7 +1980,7 @@ Result:
|
|
|
1980
1980
|
|
|
1981
1981
|
Examples:
|
|
1982
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:
|
|
1983
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmininginfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1984
1984
|
|
|
1985
1985
|
<br> <br/>
|
|
1986
1986
|
## getmywords
|
|
@@ -1995,7 +1995,7 @@ Result:
|
|
|
1995
1995
|
|
|
1996
1996
|
Examples:
|
|
1997
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:
|
|
1998
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmywords", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1999
1999
|
|
|
2000
2000
|
<br> <br/>
|
|
2001
2001
|
## getnettotals
|
|
@@ -2022,7 +2022,7 @@ Result:
|
|
|
2022
2022
|
|
|
2023
2023
|
Examples:
|
|
2024
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:
|
|
2025
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnettotals", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2026
2026
|
|
|
2027
2027
|
<br> <br/>
|
|
2028
2028
|
## getnetworkhashps
|
|
@@ -2041,7 +2041,7 @@ x (numeric) Hashes per second estimated
|
|
|
2041
2041
|
|
|
2042
2042
|
Examples:
|
|
2043
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:
|
|
2044
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnetworkhashps", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2045
2045
|
|
|
2046
2046
|
<br> <br/>
|
|
2047
2047
|
## getnetworkinfo
|
|
@@ -2083,7 +2083,7 @@ Result:
|
|
|
2083
2083
|
|
|
2084
2084
|
Examples:
|
|
2085
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:
|
|
2086
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnetworkinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2087
2087
|
|
|
2088
2088
|
<br> <br/>
|
|
2089
2089
|
## getnewaddress
|
|
@@ -2101,7 +2101,7 @@ Result:
|
|
|
2101
2101
|
|
|
2102
2102
|
Examples:
|
|
2103
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:
|
|
2104
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnewaddress", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2105
2105
|
|
|
2106
2106
|
<br> <br/>
|
|
2107
2107
|
## getpeerinfo
|
|
@@ -2154,7 +2154,7 @@ Result:
|
|
|
2154
2154
|
|
|
2155
2155
|
Examples:
|
|
2156
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:
|
|
2157
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getpeerinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2158
2158
|
|
|
2159
2159
|
<br> <br/>
|
|
2160
2160
|
## getrawchangeaddress
|
|
@@ -2168,7 +2168,7 @@ Result:
|
|
|
2168
2168
|
|
|
2169
2169
|
Examples:
|
|
2170
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:
|
|
2171
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrawchangeaddress", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2172
2172
|
|
|
2173
2173
|
<br> <br/>
|
|
2174
2174
|
## getrawmempool
|
|
@@ -2210,7 +2210,7 @@ Result: (for verbose = true):
|
|
|
2210
2210
|
|
|
2211
2211
|
Examples:
|
|
2212
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:
|
|
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:8766/
|
|
2214
2214
|
|
|
2215
2215
|
<br> <br/>
|
|
2216
2216
|
## getrawtransaction
|
|
@@ -2280,7 +2280,7 @@ Result (if verbose is set to true):
|
|
|
2280
2280
|
Examples:
|
|
2281
2281
|
> neurai-cli getrawtransaction "mytxid"
|
|
2282
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:
|
|
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:8766/
|
|
2284
2284
|
|
|
2285
2285
|
<br> <br/>
|
|
2286
2286
|
## getreceivedbyaccount
|
|
@@ -2307,7 +2307,7 @@ 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:8766/
|
|
2311
2311
|
|
|
2312
2312
|
<br> <br/>
|
|
2313
2313
|
## getreceivedbyaddress
|
|
@@ -2334,7 +2334,7 @@ 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:8766/
|
|
2338
2338
|
|
|
2339
2339
|
<br> <br/>
|
|
2340
2340
|
## getrpcinfo
|
|
@@ -2352,7 +2352,7 @@ Result:
|
|
|
2352
2352
|
],
|
|
2353
2353
|
}
|
|
2354
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:
|
|
2355
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrpcinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
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:8766/
|
|
2380
2380
|
|
|
2381
2381
|
<br> <br/>
|
|
2382
2382
|
## getsnapshotrequest
|
|
@@ -2396,7 +2396,7 @@ Result:
|
|
|
2396
2396
|
|
|
2397
2397
|
Examples:
|
|
2398
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:
|
|
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:8766/
|
|
2400
2400
|
|
|
2401
2401
|
<br> <br/>
|
|
2402
2402
|
## getspentinfo
|
|
@@ -2419,7 +2419,7 @@ Result:
|
|
|
2419
2419
|
|
|
2420
2420
|
Examples:
|
|
2421
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:
|
|
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:8766/
|
|
2423
2423
|
|
|
2424
2424
|
<br> <br/>
|
|
2425
2425
|
## gettransaction
|
|
@@ -2477,7 +2477,7 @@ Result:
|
|
|
2477
2477
|
Examples:
|
|
2478
2478
|
> neurai-cli gettransaction "1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"
|
|
2479
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:
|
|
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:8766/
|
|
2481
2481
|
|
|
2482
2482
|
<br> <br/>
|
|
2483
2483
|
## gettxout
|
|
@@ -2517,7 +2517,7 @@ 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:8766/
|
|
2521
2521
|
|
|
2522
2522
|
<br> <br/>
|
|
2523
2523
|
## gettxoutproof
|
|
@@ -2562,7 +2562,7 @@ Result:
|
|
|
2562
2562
|
|
|
2563
2563
|
Examples:
|
|
2564
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:
|
|
2565
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettxoutsetinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2566
2566
|
|
|
2567
2567
|
<br> <br/>
|
|
2568
2568
|
## getunconfirmedbalance
|
|
@@ -2583,7 +2583,7 @@ Result:
|
|
|
2583
2583
|
|
|
2584
2584
|
Examples:
|
|
2585
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:
|
|
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:8766/
|
|
2587
2587
|
|
|
2588
2588
|
<br> <br/>
|
|
2589
2589
|
## getwalletinfo
|
|
@@ -2609,7 +2609,7 @@ Result:
|
|
|
2609
2609
|
|
|
2610
2610
|
Examples:
|
|
2611
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:
|
|
2612
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getwalletinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2613
2613
|
|
|
2614
2614
|
<br> <br/>
|
|
2615
2615
|
## help
|
|
@@ -2650,7 +2650,7 @@ 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:8766/
|
|
2654
2654
|
|
|
2655
2655
|
<br> <br/>
|
|
2656
2656
|
## importmulti
|
|
@@ -2718,7 +2718,7 @@ 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:8766/
|
|
2722
2722
|
|
|
2723
2723
|
<br> <br/>
|
|
2724
2724
|
## importprunedfunds
|
|
@@ -2752,7 +2752,7 @@ 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:8766/
|
|
2756
2756
|
|
|
2757
2757
|
<br> <br/>
|
|
2758
2758
|
## importwallet
|
|
@@ -2772,7 +2772,7 @@ 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:8766/
|
|
2776
2776
|
|
|
2777
2777
|
<br> <br/>
|
|
2778
2778
|
## issue
|
|
@@ -2905,7 +2905,7 @@ Result:
|
|
|
2905
2905
|
|
|
2906
2906
|
Examples:
|
|
2907
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:
|
|
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:8766/
|
|
2909
2909
|
|
|
2910
2910
|
<br> <br/>
|
|
2911
2911
|
## keypoolrefill
|
|
@@ -2918,7 +2918,7 @@ Arguments
|
|
|
2918
2918
|
|
|
2919
2919
|
Examples:
|
|
2920
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:
|
|
2921
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "keypoolrefill", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2922
2922
|
|
|
2923
2923
|
<br> <br/>
|
|
2924
2924
|
## listaccounts
|
|
@@ -2948,7 +2948,7 @@ 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:8766/
|
|
2952
2952
|
|
|
2953
2953
|
<br> <br/>
|
|
2954
2954
|
## listaddressesbyasset
|
|
@@ -2988,7 +2988,7 @@ Result:
|
|
|
2988
2988
|
|
|
2989
2989
|
Examples:
|
|
2990
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:
|
|
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:8766/
|
|
2992
2992
|
|
|
2993
2993
|
<br> <br/>
|
|
2994
2994
|
## listaddressgroupings
|
|
@@ -3013,7 +3013,7 @@ Result:
|
|
|
3013
3013
|
|
|
3014
3014
|
Examples:
|
|
3015
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:
|
|
3016
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressgroupings", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3017
3017
|
|
|
3018
3018
|
<br> <br/>
|
|
3019
3019
|
## listaddressrestrictions
|
|
@@ -3031,7 +3031,7 @@ Result:
|
|
|
3031
3031
|
|
|
3032
3032
|
Examples:
|
|
3033
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:
|
|
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:8766/
|
|
3035
3035
|
|
|
3036
3036
|
<br> <br/>
|
|
3037
3037
|
## listassetbalancesbyaddress
|
|
@@ -3091,7 +3091,7 @@ 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:
|
|
3094
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listassets", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3095
3095
|
> neurai-cli listassets ASSET
|
|
3096
3096
|
> neurai-cli listassets "ASSET*" true 10 20
|
|
3097
3097
|
|
|
@@ -3103,7 +3103,7 @@ List all banned IPs/Subnets.
|
|
|
3103
3103
|
|
|
3104
3104
|
Examples:
|
|
3105
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:
|
|
3106
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listbanned", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3107
3107
|
|
|
3108
3108
|
<br> <br/>
|
|
3109
3109
|
## listglobalrestrictions
|
|
@@ -3118,7 +3118,7 @@ Result:
|
|
|
3118
3118
|
|
|
3119
3119
|
Examples:
|
|
3120
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:
|
|
3121
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listglobalrestrictions", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3122
3122
|
|
|
3123
3123
|
<br> <br/>
|
|
3124
3124
|
## listlockunspent
|
|
@@ -3151,7 +3151,7 @@ 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:8766/
|
|
3155
3155
|
|
|
3156
3156
|
<br> <br/>
|
|
3157
3157
|
## listmyassets
|
|
@@ -3191,7 +3191,7 @@ 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:
|
|
3194
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listmyassets", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3195
3195
|
> neurai-cli listmyassets ASSET
|
|
3196
3196
|
> neurai-cli listmyassets "ASSET*" true 10 20
|
|
3197
3197
|
> neurai-cli listmyassets "ASSET*" true 10 20 1
|
|
@@ -3222,7 +3222,7 @@ Result:
|
|
|
3222
3222
|
Examples:
|
|
3223
3223
|
> neurai-cli listreceivedbyaccount
|
|
3224
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:
|
|
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:8766/
|
|
3226
3226
|
|
|
3227
3227
|
<br> <br/>
|
|
3228
3228
|
## listreceivedbyaddress
|
|
@@ -3255,7 +3255,7 @@ Result:
|
|
|
3255
3255
|
Examples:
|
|
3256
3256
|
> neurai-cli listreceivedbyaddress
|
|
3257
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:
|
|
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:8766/
|
|
3259
3259
|
|
|
3260
3260
|
<br> <br/>
|
|
3261
3261
|
## listsinceblock
|
|
@@ -3307,7 +3307,7 @@ Result:
|
|
|
3307
3307
|
Examples:
|
|
3308
3308
|
> neurai-cli listsinceblock
|
|
3309
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:
|
|
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:8766/
|
|
3311
3311
|
|
|
3312
3312
|
<br> <br/>
|
|
3313
3313
|
## listsnapshotrequests
|
|
@@ -3329,7 +3329,7 @@ Result:
|
|
|
3329
3329
|
|
|
3330
3330
|
Examples:
|
|
3331
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:
|
|
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:8766/
|
|
3333
3333
|
|
|
3334
3334
|
<br> <br/>
|
|
3335
3335
|
## listtagsforaddress
|
|
@@ -3347,7 +3347,7 @@ Result:
|
|
|
3347
3347
|
|
|
3348
3348
|
Examples:
|
|
3349
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:
|
|
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:8766/
|
|
3351
3351
|
|
|
3352
3352
|
<br> <br/>
|
|
3353
3353
|
## listtransactions
|
|
@@ -3412,7 +3412,7 @@ 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:8766/
|
|
3416
3416
|
|
|
3417
3417
|
<br> <br/>
|
|
3418
3418
|
## listunspent
|
|
@@ -3463,9 +3463,9 @@ Result
|
|
|
3463
3463
|
Examples
|
|
3464
3464
|
> neurai-cli listunspent
|
|
3465
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:
|
|
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:8766/
|
|
3467
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:
|
|
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:8766/
|
|
3469
3469
|
|
|
3470
3470
|
<br> <br/>
|
|
3471
3471
|
## listwallets
|
|
@@ -3481,7 +3481,7 @@ Result:
|
|
|
3481
3481
|
|
|
3482
3482
|
Examples:
|
|
3483
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:
|
|
3484
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listwallets", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3485
3485
|
|
|
3486
3486
|
<br> <br/>
|
|
3487
3487
|
## lockunspent
|
|
@@ -3524,7 +3524,7 @@ 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:8766/
|
|
3528
3528
|
|
|
3529
3529
|
<br> <br/>
|
|
3530
3530
|
## move
|
|
@@ -3551,7 +3551,7 @@ 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:8766/
|
|
3555
3555
|
|
|
3556
3556
|
<br> <br/>
|
|
3557
3557
|
## ping
|
|
@@ -3563,7 +3563,7 @@ Ping command is handled in queue with all other commands, so it measures process
|
|
|
3563
3563
|
|
|
3564
3564
|
Examples:
|
|
3565
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:
|
|
3566
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "ping", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3567
3567
|
|
|
3568
3568
|
<br> <br/>
|
|
3569
3569
|
## pprpcsb
|
|
@@ -3580,7 +3580,7 @@ Result:
|
|
|
3580
3580
|
|
|
3581
3581
|
Examples:
|
|
3582
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:
|
|
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:8766/
|
|
3584
3584
|
|
|
3585
3585
|
<br> <br/>
|
|
3586
3586
|
## preciousblock
|
|
@@ -3599,7 +3599,7 @@ Result:
|
|
|
3599
3599
|
|
|
3600
3600
|
Examples:
|
|
3601
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:
|
|
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:8766/
|
|
3603
3603
|
|
|
3604
3604
|
<br> <br/>
|
|
3605
3605
|
## prioritisetransaction
|
|
@@ -3619,7 +3619,7 @@ true (boolean) Returns true
|
|
|
3619
3619
|
|
|
3620
3620
|
Examples:
|
|
3621
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:
|
|
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:8766/
|
|
3623
3623
|
|
|
3624
3624
|
<br> <br/>
|
|
3625
3625
|
## pruneblockchain
|
|
@@ -3634,7 +3634,7 @@ n (numeric) Height of the last block pruned.
|
|
|
3634
3634
|
|
|
3635
3635
|
Examples:
|
|
3636
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:
|
|
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:8766/
|
|
3638
3638
|
|
|
3639
3639
|
<br> <br/>
|
|
3640
3640
|
## purgesnapshot
|
|
@@ -3654,7 +3654,7 @@ Result:
|
|
|
3654
3654
|
|
|
3655
3655
|
Examples:
|
|
3656
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:
|
|
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:8766/
|
|
3658
3658
|
|
|
3659
3659
|
<br> <br/>
|
|
3660
3660
|
## reissue
|
|
@@ -3677,7 +3677,7 @@ Result:
|
|
|
3677
3677
|
|
|
3678
3678
|
Examples:
|
|
3679
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:
|
|
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:8766/
|
|
3681
3681
|
|
|
3682
3682
|
<br> <br/>
|
|
3683
3683
|
## reissuerestrictedasset
|
|
@@ -3720,7 +3720,7 @@ 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:8766/
|
|
3724
3724
|
|
|
3725
3725
|
<br> <br/>
|
|
3726
3726
|
## removetagfromaddress
|
|
@@ -3739,9 +3739,9 @@ Result:
|
|
|
3739
3739
|
|
|
3740
3740
|
Examples:
|
|
3741
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:
|
|
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:8766/
|
|
3743
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:
|
|
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:8766/
|
|
3745
3745
|
|
|
3746
3746
|
<br> <br/>
|
|
3747
3747
|
## requestsnapshot
|
|
@@ -3760,7 +3760,7 @@ Result:
|
|
|
3760
3760
|
|
|
3761
3761
|
Examples:
|
|
3762
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:
|
|
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:8766/
|
|
3764
3764
|
|
|
3765
3765
|
<br> <br/>
|
|
3766
3766
|
## rescanblockchain
|
|
@@ -3780,7 +3780,7 @@ Result:
|
|
|
3780
3780
|
|
|
3781
3781
|
Examples:
|
|
3782
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:
|
|
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:8766/
|
|
3784
3784
|
|
|
3785
3785
|
<br> <br/>
|
|
3786
3786
|
## savemempool
|
|
@@ -3790,7 +3790,7 @@ Dumps the mempool to disk.
|
|
|
3790
3790
|
|
|
3791
3791
|
Examples:
|
|
3792
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:
|
|
3793
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "savemempool", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3794
3794
|
|
|
3795
3795
|
<br> <br/>
|
|
3796
3796
|
## sendfrom
|
|
@@ -3824,7 +3824,7 @@ Send 0.01 from the tabby account to the given address, funds must have at least
|
|
|
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:8766/
|
|
3828
3828
|
|
|
3829
3829
|
<br> <br/>
|
|
3830
3830
|
## sendfromaddress
|
|
@@ -3856,7 +3856,7 @@ Examples:
|
|
|
3856
3856
|
> neurai-cli sendfromaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1
|
|
3857
3857
|
> neurai-cli sendfromaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1 "donation" "seans outpost"
|
|
3858
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:
|
|
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:8766/
|
|
3860
3860
|
|
|
3861
3861
|
<br> <br/>
|
|
3862
3862
|
## sendmany
|
|
@@ -3903,7 +3903,7 @@ 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:8766/
|
|
3907
3907
|
|
|
3908
3908
|
<br> <br/>
|
|
3909
3909
|
## sendmessage
|
|
@@ -3949,7 +3949,7 @@ 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:8766/
|
|
3953
3953
|
|
|
3954
3954
|
<br> <br/>
|
|
3955
3955
|
## sendtoaddress
|
|
@@ -3980,7 +3980,7 @@ Examples:
|
|
|
3980
3980
|
> neurai-cli sendtoaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1
|
|
3981
3981
|
> neurai-cli sendtoaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1 "donation" "seans outpost"
|
|
3982
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:
|
|
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:8766/
|
|
3984
3984
|
|
|
3985
3985
|
<br> <br/>
|
|
3986
3986
|
## setaccount
|
|
@@ -3994,7 +3994,7 @@ Arguments:
|
|
|
3994
3994
|
|
|
3995
3995
|
Examples:
|
|
3996
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:
|
|
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:8766/
|
|
3998
3998
|
|
|
3999
3999
|
<br> <br/>
|
|
4000
4000
|
## setban
|
|
@@ -4011,7 +4011,7 @@ Arguments:
|
|
|
4011
4011
|
Examples:
|
|
4012
4012
|
> neurai-cli setban "192.168.0.6" "add" 86400
|
|
4013
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:
|
|
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:8766/
|
|
4015
4015
|
|
|
4016
4016
|
<br> <br/>
|
|
4017
4017
|
## setgenerate
|
|
@@ -4037,7 +4037,7 @@ 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:8766/
|
|
4041
4041
|
|
|
4042
4042
|
<br> <br/>
|
|
4043
4043
|
## setnetworkactive
|
|
@@ -4062,7 +4062,7 @@ true|false (boolean) Returns true if successful
|
|
|
4062
4062
|
|
|
4063
4063
|
Examples:
|
|
4064
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:
|
|
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:8766/
|
|
4066
4066
|
|
|
4067
4067
|
<br> <br/>
|
|
4068
4068
|
## signmessage
|
|
@@ -4089,7 +4089,7 @@ 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:8766/
|
|
4093
4093
|
|
|
4094
4094
|
<br> <br/>
|
|
4095
4095
|
## signmessagewithprivkey
|
|
@@ -4113,7 +4113,7 @@ 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:8766/
|
|
4117
4117
|
|
|
4118
4118
|
<br> <br/>
|
|
4119
4119
|
## signrawtransaction
|
|
@@ -4170,7 +4170,7 @@ Result:
|
|
|
4170
4170
|
|
|
4171
4171
|
Examples:
|
|
4172
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:
|
|
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:8766/
|
|
4174
4174
|
|
|
4175
4175
|
<br> <br/>
|
|
4176
4176
|
## stop
|
|
@@ -4192,7 +4192,7 @@ Result:
|
|
|
4192
4192
|
|
|
4193
4193
|
Examples:
|
|
4194
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:
|
|
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:8766/
|
|
4196
4196
|
|
|
4197
4197
|
<br> <br/>
|
|
4198
4198
|
## subscribetochannel
|
|
@@ -4209,7 +4209,7 @@ Result:[
|
|
|
4209
4209
|
|
|
4210
4210
|
Examples:
|
|
4211
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:
|
|
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:8766/
|
|
4213
4213
|
|
|
4214
4214
|
<br> <br/>
|
|
4215
4215
|
## testmempoolaccept
|
|
@@ -4247,7 +4247,7 @@ 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:8766/
|
|
4251
4251
|
|
|
4252
4252
|
<br> <br/>
|
|
4253
4253
|
## transfer
|
|
@@ -4294,7 +4294,7 @@ txid
|
|
|
4294
4294
|
|
|
4295
4295
|
Examples:
|
|
4296
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:
|
|
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:8766/
|
|
4298
4298
|
|
|
4299
4299
|
<br> <br/>
|
|
4300
4300
|
## transferfromaddresses
|
|
@@ -4318,7 +4318,7 @@ txid
|
|
|
4318
4318
|
|
|
4319
4319
|
Examples:
|
|
4320
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:
|
|
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:8766/
|
|
4322
4322
|
|
|
4323
4323
|
<br> <br/>
|
|
4324
4324
|
## transferqualifier
|
|
@@ -4359,9 +4359,9 @@ Result:
|
|
|
4359
4359
|
|
|
4360
4360
|
Examples:
|
|
4361
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:
|
|
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:8766/
|
|
4363
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:
|
|
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:8766/
|
|
4365
4365
|
|
|
4366
4366
|
<br> <br/>
|
|
4367
4367
|
## unfreezerestrictedasset
|
|
@@ -4379,9 +4379,9 @@ Result:
|
|
|
4379
4379
|
|
|
4380
4380
|
Examples:
|
|
4381
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:
|
|
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:8766/
|
|
4383
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:
|
|
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:8766/
|
|
4385
4385
|
|
|
4386
4386
|
<br> <br/>
|
|
4387
4387
|
## unsubscribefromchannel
|
|
@@ -4398,7 +4398,7 @@ Result:[
|
|
|
4398
4398
|
|
|
4399
4399
|
Examples:
|
|
4400
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:
|
|
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:8766/
|
|
4402
4402
|
|
|
4403
4403
|
<br> <br/>
|
|
4404
4404
|
## uptime
|
|
@@ -4411,7 +4411,7 @@ ttt (numeric) The number of seconds that the server has been running
|
|
|
4411
4411
|
|
|
4412
4412
|
Examples:
|
|
4413
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:
|
|
4414
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "uptime", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4415
4415
|
|
|
4416
4416
|
<br> <br/>
|
|
4417
4417
|
## validateaddress
|
|
@@ -4448,7 +4448,7 @@ Result:
|
|
|
4448
4448
|
|
|
4449
4449
|
Examples:
|
|
4450
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:
|
|
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:8766/
|
|
4452
4452
|
|
|
4453
4453
|
<br> <br/>
|
|
4454
4454
|
## verifychain
|
|
@@ -4465,7 +4465,7 @@ true|false (boolean) Verified or not
|
|
|
4465
4465
|
|
|
4466
4466
|
Examples:
|
|
4467
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:
|
|
4468
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "verifychain", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4469
4469
|
|
|
4470
4470
|
<br> <br/>
|
|
4471
4471
|
## verifymessage
|
|
@@ -4493,7 +4493,7 @@ 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:8766/
|
|
4497
4497
|
|
|
4498
4498
|
<br> <br/>
|
|
4499
4499
|
## verifytxoutproof
|
|
@@ -4521,7 +4521,7 @@ Result:[
|
|
|
4521
4521
|
|
|
4522
4522
|
Examples:
|
|
4523
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:
|
|
4524
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewallmessagechannels", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4525
4525
|
|
|
4526
4526
|
<br> <br/>
|
|
4527
4527
|
## viewallmessages
|
|
@@ -4540,7 +4540,7 @@ Result:
|
|
|
4540
4540
|
|
|
4541
4541
|
Examples:
|
|
4542
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:
|
|
4543
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewallmessages", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4544
4544
|
|
|
4545
4545
|
<br> <br/>
|
|
4546
4546
|
## viewmyrestrictedaddresses
|
|
@@ -4558,7 +4558,7 @@ Result:
|
|
|
4558
4558
|
|
|
4559
4559
|
Examples:
|
|
4560
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:
|
|
4561
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewmyrestrictedaddresses", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4562
4562
|
|
|
4563
4563
|
<br> <br/>
|
|
4564
4564
|
## viewmytaggedaddresses
|
|
@@ -4576,5 +4576,5 @@ Result:
|
|
|
4576
4576
|
|
|
4577
4577
|
Examples:
|
|
4578
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:
|
|
4579
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewmytaggedaddresses", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4580
4580
|
|