@neuraiproject/neurai-rpc 0.4.2 → 0.4.3
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/README.md +1 -0
- package/dist/index.cjs +192 -172
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +192 -172
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -1
- package/docs.json +1 -0
- package/docs.ts +1231 -517
- package/package.json +1 -1
- package/test-getpubkey.js +149 -0
- package/neurai_methods.md +0 -4580
package/dist/index.cjs
CHANGED
|
@@ -22,7 +22,7 @@ Result:
|
|
|
22
22
|
Examples:
|
|
23
23
|
> neurai-cli abandontransaction "1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"
|
|
24
24
|
> 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/
|
|
25
|
-
**/ abandontransaction:
|
|
25
|
+
**/ abandontransaction: 'abandontransaction',
|
|
26
26
|
/** abortrescan
|
|
27
27
|
|
|
28
28
|
Stops current wallet rescan triggered e.g. by an importprivkey call.
|
|
@@ -37,7 +37,7 @@ Abort the running wallet rescan
|
|
|
37
37
|
|
|
38
38
|
As a JSON-RPC call
|
|
39
39
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "abortrescan", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
40
|
-
**/ abortrescan:
|
|
40
|
+
**/ abortrescan: 'abortrescan',
|
|
41
41
|
/** addmultisigaddress nrequired ["key",...] ( "account" )
|
|
42
42
|
|
|
43
43
|
Add a nrequired-to-sign multisignature address to the wallet.
|
|
@@ -63,7 +63,7 @@ Add a multisig address from 2 addresses
|
|
|
63
63
|
|
|
64
64
|
As json rpc call
|
|
65
65
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "addmultisigaddress", "params": [2, "[\"16sSauSf5pF2UkUwvKGq4qjNRzBZYqgEL5\",\"171sgjn4YtPu27adkKGrdDwzRTxnRkBfKV\"]"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
66
|
-
**/ addmultisigaddress:
|
|
66
|
+
**/ addmultisigaddress: 'addmultisigaddress',
|
|
67
67
|
/** addnode "node" "add|remove|onetry"
|
|
68
68
|
|
|
69
69
|
Attempts to add or remove a node from the addnode list.
|
|
@@ -78,7 +78,7 @@ Arguments:
|
|
|
78
78
|
Examples:
|
|
79
79
|
> neurai-cli addnode "192.168.0.6:8767" "onetry"
|
|
80
80
|
> 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/
|
|
81
|
-
**/ addnode:
|
|
81
|
+
**/ addnode: 'addnode',
|
|
82
82
|
/** addtagtoaddress tag_name to_address (change_address) (asset_data)
|
|
83
83
|
|
|
84
84
|
Assign a tag to a address
|
|
@@ -97,7 +97,7 @@ Examples:
|
|
|
97
97
|
> 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/
|
|
98
98
|
> neurai-cli addtagtoaddress "#TAG" "to_address" "change_address"
|
|
99
99
|
> 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/
|
|
100
|
-
**/ addtagtoaddress:
|
|
100
|
+
**/ addtagtoaddress: 'addtagtoaddress',
|
|
101
101
|
/** addwitnessaddress "address"
|
|
102
102
|
|
|
103
103
|
Add a witness address for a script (with pubkey or redeemscript known).
|
|
@@ -109,7 +109,7 @@ Arguments:
|
|
|
109
109
|
Result:
|
|
110
110
|
"witnessaddress", (string) The value of the new address (P2SH of witness script).
|
|
111
111
|
}
|
|
112
|
-
**/ addwitnessaddress:
|
|
112
|
+
**/ addwitnessaddress: 'addwitnessaddress',
|
|
113
113
|
/** backupwallet "destination"
|
|
114
114
|
|
|
115
115
|
Safely copies current wallet file to destination, which can be a directory or a path with filename.
|
|
@@ -120,8 +120,8 @@ Arguments:
|
|
|
120
120
|
Examples:
|
|
121
121
|
> neurai-cli backupwallet "backup.dat"
|
|
122
122
|
> 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/
|
|
123
|
-
**/ backupwallet:
|
|
124
|
-
/** bumpfee has been deprecated on the XNA Wallet.**/ bumpfee:
|
|
123
|
+
**/ backupwallet: 'backupwallet',
|
|
124
|
+
/** bumpfee has been deprecated on the XNA Wallet.**/ bumpfee: 'bumpfee',
|
|
125
125
|
/** cancelsnapshotrequest "asset_name" block_height
|
|
126
126
|
|
|
127
127
|
Cancels the specified snapshot request.
|
|
@@ -138,7 +138,7 @@ Result:
|
|
|
138
138
|
Examples:
|
|
139
139
|
> neurai-cli cancelsnapshotrequest "TRONCO" 12345
|
|
140
140
|
> 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/
|
|
141
|
-
**/ cancelsnapshotrequest:
|
|
141
|
+
**/ cancelsnapshotrequest: 'cancelsnapshotrequest',
|
|
142
142
|
/** checkaddressrestriction address restricted_name
|
|
143
143
|
|
|
144
144
|
Checks to see if an address has been frozen by the given restricted asset
|
|
@@ -153,7 +153,7 @@ Result:
|
|
|
153
153
|
Examples:
|
|
154
154
|
> neurai-cli checkaddressrestriction "address" "restricted_name"
|
|
155
155
|
> 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/
|
|
156
|
-
**/ checkaddressrestriction:
|
|
156
|
+
**/ checkaddressrestriction: 'checkaddressrestriction',
|
|
157
157
|
/** checkaddresstag address tag_name
|
|
158
158
|
|
|
159
159
|
Checks to see if an address has the given tag
|
|
@@ -168,7 +168,7 @@ Result:
|
|
|
168
168
|
Examples:
|
|
169
169
|
> neurai-cli checkaddresstag "address" "tag_name"
|
|
170
170
|
> 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/
|
|
171
|
-
**/ checkaddresstag:
|
|
171
|
+
**/ checkaddresstag: 'checkaddresstag',
|
|
172
172
|
/** checkglobalrestriction restricted_name
|
|
173
173
|
|
|
174
174
|
Checks to see if a restricted asset is globally frozen
|
|
@@ -182,7 +182,7 @@ Result:
|
|
|
182
182
|
Examples:
|
|
183
183
|
> neurai-cli checkglobalrestriction "restricted_name"
|
|
184
184
|
> 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/
|
|
185
|
-
**/ checkglobalrestriction:
|
|
185
|
+
**/ checkglobalrestriction: 'checkglobalrestriction',
|
|
186
186
|
/** clearbanned
|
|
187
187
|
|
|
188
188
|
Clear all banned IPs.
|
|
@@ -190,7 +190,7 @@ Clear all banned IPs.
|
|
|
190
190
|
Examples:
|
|
191
191
|
> neurai-cli clearbanned
|
|
192
192
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearbanned", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
193
|
-
**/ clearbanned:
|
|
193
|
+
**/ clearbanned: 'clearbanned',
|
|
194
194
|
/** clearmempool
|
|
195
195
|
|
|
196
196
|
Removes all transaction from the mempool
|
|
@@ -198,7 +198,7 @@ Removes all transaction from the mempool
|
|
|
198
198
|
Examples:
|
|
199
199
|
> neurai-cli clearmempool
|
|
200
200
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearmempool", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
201
|
-
**/ clearmempool:
|
|
201
|
+
**/ clearmempool: 'clearmempool',
|
|
202
202
|
/** clearmessages
|
|
203
203
|
|
|
204
204
|
Delete current database of messages
|
|
@@ -210,7 +210,7 @@ Result:[
|
|
|
210
210
|
Examples:
|
|
211
211
|
> neurai-cli clearmessages
|
|
212
212
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearmessages", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
213
|
-
**/ clearmessages:
|
|
213
|
+
**/ clearmessages: 'clearmessages',
|
|
214
214
|
/** combinerawtransaction ["hexstring",...]
|
|
215
215
|
|
|
216
216
|
Combine multiple partially signed transactions into one transaction.
|
|
@@ -228,7 +228,7 @@ Result:
|
|
|
228
228
|
|
|
229
229
|
Examples:
|
|
230
230
|
> neurai-cli combinerawtransaction ["myhex1", "myhex2", "myhex3"]
|
|
231
|
-
**/ combinerawtransaction:
|
|
231
|
+
**/ combinerawtransaction: 'combinerawtransaction',
|
|
232
232
|
/** createmultisig nrequired ["key",...]
|
|
233
233
|
|
|
234
234
|
Creates a multi-signature address with n signature of m keys required.
|
|
@@ -255,7 +255,7 @@ Create a multisig address from 2 addresses
|
|
|
255
255
|
|
|
256
256
|
As a json rpc call
|
|
257
257
|
> 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/
|
|
258
|
-
**/ createmultisig:
|
|
258
|
+
**/ createmultisig: 'createmultisig',
|
|
259
259
|
/** createrawtransaction [{"txid":"id","vout":n},...] {"address":(amount or object),"data":"hex",...}
|
|
260
260
|
( locktime ) ( replaceable )
|
|
261
261
|
|
|
@@ -500,7 +500,7 @@ Examples:
|
|
|
500
500
|
> neurai-cli createrawtransaction "[{\"txid\":\"mycoin\",\"vout\":0},{\"txid\":\"myasset\",\"vout\":0}]" "{\"address\":{\"transferwithmessage\":{\"MYASSET\":50,\"message\":\"hash\",\"expire_time\": utc_time}}}"
|
|
501
501
|
> neurai-cli createrawtransaction "[{\"txid\":\"mycoin\",\"vout\":0},{\"txid\":\"myownership\",\"vout\":0}]" "{\"issuer_address\":{\"reissue\":{\"asset_name\":\"MYASSET\",\"asset_quantity\":2000000}}}"
|
|
502
502
|
> 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/
|
|
503
|
-
**/ createrawtransaction:
|
|
503
|
+
**/ createrawtransaction: 'createrawtransaction',
|
|
504
504
|
/** decodeblock "blockhex"
|
|
505
505
|
|
|
506
506
|
Arguments:
|
|
@@ -528,7 +528,7 @@ Result:
|
|
|
528
528
|
Examples:
|
|
529
529
|
> neurai-cli decodeblock "xxxx"
|
|
530
530
|
> 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/
|
|
531
|
-
**/ decodeblock:
|
|
531
|
+
**/ decodeblock: 'decodeblock',
|
|
532
532
|
/** decoderawtransaction "hexstring"
|
|
533
533
|
|
|
534
534
|
Return a JSON object representing the serialized, hex-encoded transaction.
|
|
@@ -584,7 +584,7 @@ Result:
|
|
|
584
584
|
Examples:
|
|
585
585
|
> neurai-cli decoderawtransaction "hexstring"
|
|
586
586
|
> 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/
|
|
587
|
-
**/ decoderawtransaction:
|
|
587
|
+
**/ decoderawtransaction: 'decoderawtransaction',
|
|
588
588
|
/** decodescript "hexstring"
|
|
589
589
|
|
|
590
590
|
Decode a hex-encoded script.
|
|
@@ -621,7 +621,7 @@ Result:
|
|
|
621
621
|
Examples:
|
|
622
622
|
> neurai-cli decodescript "hexstring"
|
|
623
623
|
> 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/
|
|
624
|
-
**/ decodescript:
|
|
624
|
+
**/ decodescript: 'decodescript',
|
|
625
625
|
/** disconnectnode "[address]" [nodeid]
|
|
626
626
|
|
|
627
627
|
Immediately disconnects from the specified peer node.
|
|
@@ -639,7 +639,7 @@ Examples:
|
|
|
639
639
|
> neurai-cli disconnectnode "" 1
|
|
640
640
|
> 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/
|
|
641
641
|
> 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/
|
|
642
|
-
**/ disconnectnode:
|
|
642
|
+
**/ disconnectnode: 'disconnectnode',
|
|
643
643
|
/** distributereward "asset_name" snapshot_height "distribution_asset_name" gross_distribution_amount ( "exception_addresses" ) ("change_address") ("dry_run")
|
|
644
644
|
|
|
645
645
|
Splits the specified amount of the distribution asset to all owners of asset_name that are not in the optional exclusion_addresses
|
|
@@ -675,7 +675,7 @@ Examples:
|
|
|
675
675
|
> neurai-cli distributereward "PHATSTACKS" 12345 "DIVIDENDS" 1000 "mwN7xC3yomYdvJuVXkVC7ymY9wNBjWNduD,n4Rf18edydDaRBh7t6gHUbuByLbWEoWUTg"
|
|
676
676
|
> 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/
|
|
677
677
|
> 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/
|
|
678
|
-
**/ distributereward:
|
|
678
|
+
**/ distributereward: 'distributereward',
|
|
679
679
|
/** dumpprivkey "address"
|
|
680
680
|
|
|
681
681
|
Reveals the private key corresponding to 'address'.
|
|
@@ -691,7 +691,7 @@ Examples:
|
|
|
691
691
|
> neurai-cli dumpprivkey "myaddress"
|
|
692
692
|
> neurai-cli importprivkey "mykey"
|
|
693
693
|
> 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/
|
|
694
|
-
**/ dumpprivkey:
|
|
694
|
+
**/ dumpprivkey: 'dumpprivkey',
|
|
695
695
|
/** dumpwallet "filename"
|
|
696
696
|
|
|
697
697
|
Dumps all wallet keys in a human-readable format to a server-side file. This does not allow overwriting existing files.
|
|
@@ -707,7 +707,7 @@ Result:
|
|
|
707
707
|
Examples:
|
|
708
708
|
> neurai-cli dumpwallet "test"
|
|
709
709
|
> 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/
|
|
710
|
-
**/ dumpwallet:
|
|
710
|
+
**/ dumpwallet: 'dumpwallet',
|
|
711
711
|
/** encryptwallet "passphrase"
|
|
712
712
|
|
|
713
713
|
Encrypts the wallet with 'passphrase'. This is for first time encryption.
|
|
@@ -736,7 +736,7 @@ Now lock the wallet again by removing the passphrase
|
|
|
736
736
|
|
|
737
737
|
As a json rpc call
|
|
738
738
|
> 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/
|
|
739
|
-
**/ encryptwallet:
|
|
739
|
+
**/ encryptwallet: 'encryptwallet',
|
|
740
740
|
/** estimatefee nblocks
|
|
741
741
|
|
|
742
742
|
DEPRECATED. Please use estimatesmartfee for more intelligent estimates.
|
|
@@ -757,7 +757,7 @@ a fee that is high enough to get reliably included in the next block.
|
|
|
757
757
|
|
|
758
758
|
Example:
|
|
759
759
|
> neurai-cli estimatefee 6
|
|
760
|
-
**/ estimatefee:
|
|
760
|
+
**/ estimatefee: 'estimatefee',
|
|
761
761
|
/** estimatesmartfee conf_target ("estimate_mode")
|
|
762
762
|
|
|
763
763
|
Estimates the approximate fee per kilobyte needed for a transaction to begin
|
|
@@ -791,7 +791,7 @@ have been observed to make an estimate for any number of blocks.
|
|
|
791
791
|
|
|
792
792
|
Example:
|
|
793
793
|
> neurai-cli estimatesmartfee 6
|
|
794
|
-
**/ estimatesmartfee:
|
|
794
|
+
**/ estimatesmartfee: 'estimatesmartfee',
|
|
795
795
|
/** freezeaddress asset_name address (change_address) (asset_data)
|
|
796
796
|
|
|
797
797
|
Freeze an address from transferring a restricted asset
|
|
@@ -810,7 +810,7 @@ Examples:
|
|
|
810
810
|
> 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/
|
|
811
811
|
> neurai-cli freezeaddress "$RESTRICTED_ASSET" "address" "change_address"
|
|
812
812
|
> 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/
|
|
813
|
-
**/ freezeaddress:
|
|
813
|
+
**/ freezeaddress: 'freezeaddress',
|
|
814
814
|
/** freezerestrictedasset asset_name (change_address) (asset_data)
|
|
815
815
|
|
|
816
816
|
Freeze all trading for a specific restricted asset
|
|
@@ -828,7 +828,7 @@ Examples:
|
|
|
828
828
|
> 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/
|
|
829
829
|
> neurai-cli freezerestrictedasset "$RESTRICTED_ASSET" "change_address"
|
|
830
830
|
> 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/
|
|
831
|
-
**/ freezerestrictedasset:
|
|
831
|
+
**/ freezerestrictedasset: 'freezerestrictedasset',
|
|
832
832
|
/** fundrawtransaction "hexstring" ( options )
|
|
833
833
|
|
|
834
834
|
Add inputs to a transaction until it has enough in value to meet its out value.
|
|
@@ -886,7 +886,7 @@ Sign the transaction
|
|
|
886
886
|
|
|
887
887
|
Send the transaction
|
|
888
888
|
> neurai-cli sendrawtransaction "signedtransactionhex"
|
|
889
|
-
**/ fundrawtransaction:
|
|
889
|
+
**/ fundrawtransaction: 'fundrawtransaction',
|
|
890
890
|
/** generate nblocks ( maxtries )
|
|
891
891
|
|
|
892
892
|
Mine up to nblocks blocks immediately (before the RPC call returns) to an address in the wallet.
|
|
@@ -902,7 +902,7 @@ Examples:
|
|
|
902
902
|
|
|
903
903
|
Generate 11 blocks
|
|
904
904
|
> neurai-cli generate 11
|
|
905
|
-
**/ generate:
|
|
905
|
+
**/ generate: 'generate',
|
|
906
906
|
/** generatetoaddress nblocks address (maxtries)
|
|
907
907
|
|
|
908
908
|
Mine blocks immediately to a specified address (before the RPC call returns)
|
|
@@ -919,7 +919,7 @@ Examples:
|
|
|
919
919
|
|
|
920
920
|
Generate 11 blocks to myaddress
|
|
921
921
|
> neurai-cli generatetoaddress 11 "myaddress"
|
|
922
|
-
**/ generatetoaddress:
|
|
922
|
+
**/ generatetoaddress: 'generatetoaddress',
|
|
923
923
|
/** getaccount "address"
|
|
924
924
|
|
|
925
925
|
DEPRECATED. Returns the account associated with the given address.
|
|
@@ -933,7 +933,7 @@ Result:
|
|
|
933
933
|
Examples:
|
|
934
934
|
> neurai-cli getaccount "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX"
|
|
935
935
|
> 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/
|
|
936
|
-
**/ getaccount:
|
|
936
|
+
**/ getaccount: 'getaccount',
|
|
937
937
|
/** getaccountaddress "account"
|
|
938
938
|
|
|
939
939
|
DEPRECATED. Returns the current Neurai address for receiving payments to this account.
|
|
@@ -949,7 +949,7 @@ Examples:
|
|
|
949
949
|
> neurai-cli getaccountaddress ""
|
|
950
950
|
> neurai-cli getaccountaddress "myaccount"
|
|
951
951
|
> 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/
|
|
952
|
-
**/ getaccountaddress:
|
|
952
|
+
**/ getaccountaddress: 'getaccountaddress',
|
|
953
953
|
/** getaddednodeinfo ( "node" )
|
|
954
954
|
|
|
955
955
|
Returns information about the given added node, or all added nodes
|
|
@@ -976,7 +976,7 @@ Result:
|
|
|
976
976
|
Examples:
|
|
977
977
|
> neurai-cli getaddednodeinfo "192.168.0.201"
|
|
978
978
|
> 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/
|
|
979
|
-
**/ getaddednodeinfo:
|
|
979
|
+
**/ getaddednodeinfo: 'getaddednodeinfo',
|
|
980
980
|
/** getaddressbalance
|
|
981
981
|
|
|
982
982
|
Returns the balance for an address(es) (requires addressindex to be enabled).
|
|
@@ -1011,7 +1011,7 @@ Examples:
|
|
|
1011
1011
|
> neurai-cli getaddressbalance '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}', true
|
|
1012
1012
|
> 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/
|
|
1013
1013
|
> 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/
|
|
1014
|
-
**/ getaddressbalance:
|
|
1014
|
+
**/ getaddressbalance: 'getaddressbalance',
|
|
1015
1015
|
/** getaddressdeltas
|
|
1016
1016
|
|
|
1017
1017
|
Returns all changes for an address (requires addressindex to be enabled).
|
|
@@ -1046,7 +1046,7 @@ Examples:
|
|
|
1046
1046
|
> 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/
|
|
1047
1047
|
> neurai-cli getaddressdeltas '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"],"assetName":"MY_ASSET"}'
|
|
1048
1048
|
> 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/
|
|
1049
|
-
**/ getaddressdeltas:
|
|
1049
|
+
**/ getaddressdeltas: 'getaddressdeltas',
|
|
1050
1050
|
/** getaddressesbyaccount "account"
|
|
1051
1051
|
|
|
1052
1052
|
DEPRECATED. Returns the list of addresses for the given account.
|
|
@@ -1063,7 +1063,7 @@ Result:
|
|
|
1063
1063
|
Examples:
|
|
1064
1064
|
> neurai-cli getaddressesbyaccount "tabby"
|
|
1065
1065
|
> 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/
|
|
1066
|
-
**/ getaddressesbyaccount:
|
|
1066
|
+
**/ getaddressesbyaccount: 'getaddressesbyaccount',
|
|
1067
1067
|
/** getaddressmempool
|
|
1068
1068
|
|
|
1069
1069
|
Returns all mempool deltas for an address (requires addressindex to be enabled).
|
|
@@ -1097,7 +1097,7 @@ Examples:
|
|
|
1097
1097
|
> 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/
|
|
1098
1098
|
> neurai-cli getaddressmempool '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}', true
|
|
1099
1099
|
> 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/
|
|
1100
|
-
**/ getaddressmempool:
|
|
1100
|
+
**/ getaddressmempool: 'getaddressmempool',
|
|
1101
1101
|
/** getaddresstxids
|
|
1102
1102
|
|
|
1103
1103
|
Returns the txids for an address(es) (requires addressindex to be enabled).
|
|
@@ -1125,7 +1125,7 @@ Examples:
|
|
|
1125
1125
|
> 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/
|
|
1126
1126
|
> neurai-cli getaddresstxids '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}', true
|
|
1127
1127
|
> 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/
|
|
1128
|
-
**/ getaddresstxids:
|
|
1128
|
+
**/ getaddresstxids: 'getaddresstxids',
|
|
1129
1129
|
/** getaddressutxos
|
|
1130
1130
|
|
|
1131
1131
|
Returns all unspent outputs for an address (requires addressindex to be enabled).
|
|
@@ -1159,7 +1159,7 @@ Examples:
|
|
|
1159
1159
|
> 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/
|
|
1160
1160
|
> neurai-cli getaddressutxos '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"],"assetName":"MY_ASSET"}'
|
|
1161
1161
|
> 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/
|
|
1162
|
-
**/ getaddressutxos:
|
|
1162
|
+
**/ getaddressutxos: 'getaddressutxos',
|
|
1163
1163
|
/** getassetdata "asset_name"
|
|
1164
1164
|
|
|
1165
1165
|
Returns assets metadata if that asset exists
|
|
@@ -1182,7 +1182,7 @@ Result:
|
|
|
1182
1182
|
Examples:
|
|
1183
1183
|
> neurai-cli getassetdata "ASSET_NAME"
|
|
1184
1184
|
> 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/
|
|
1185
|
-
**/ getassetdata:
|
|
1185
|
+
**/ getassetdata: 'getassetdata',
|
|
1186
1186
|
/** getbalance ( "account" minconf include_watchonly )
|
|
1187
1187
|
|
|
1188
1188
|
If account is not specified, returns the server's total available balance.
|
|
@@ -1219,7 +1219,7 @@ The total amount in the wallet at least 6 blocks confirmed
|
|
|
1219
1219
|
|
|
1220
1220
|
As a json rpc call
|
|
1221
1221
|
> 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/
|
|
1222
|
-
**/ getbalance:
|
|
1222
|
+
**/ getbalance: 'getbalance',
|
|
1223
1223
|
/** getbestblockhash
|
|
1224
1224
|
|
|
1225
1225
|
Returns the hash of the best (tip) block in the longest blockchain.
|
|
@@ -1230,7 +1230,7 @@ Result:
|
|
|
1230
1230
|
Examples:
|
|
1231
1231
|
> neurai-cli getbestblockhash
|
|
1232
1232
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getbestblockhash", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1233
|
-
**/ getbestblockhash:
|
|
1233
|
+
**/ getbestblockhash: 'getbestblockhash',
|
|
1234
1234
|
/** getblock "blockhash" ( verbosity )
|
|
1235
1235
|
|
|
1236
1236
|
If verbosity is 0, returns a string that is serialized, hex-encoded data for block 'hash'.
|
|
@@ -1281,7 +1281,7 @@ Result (for verbosity = 2):
|
|
|
1281
1281
|
Examples:
|
|
1282
1282
|
> neurai-cli getblock "00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"
|
|
1283
1283
|
> 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/
|
|
1284
|
-
**/ getblock:
|
|
1284
|
+
**/ getblock: 'getblock',
|
|
1285
1285
|
/** getblockchaininfo
|
|
1286
1286
|
Returns an object containing various state info regarding blockchain processing.
|
|
1287
1287
|
|
|
@@ -1331,7 +1331,7 @@ Result:
|
|
|
1331
1331
|
Examples:
|
|
1332
1332
|
> neurai-cli getblockchaininfo
|
|
1333
1333
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockchaininfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1334
|
-
**/ getblockchaininfo:
|
|
1334
|
+
**/ getblockchaininfo: 'getblockchaininfo',
|
|
1335
1335
|
/** getblockcount
|
|
1336
1336
|
|
|
1337
1337
|
Returns the number of blocks in the longest blockchain.
|
|
@@ -1342,7 +1342,7 @@ n (numeric) The current block count
|
|
|
1342
1342
|
Examples:
|
|
1343
1343
|
> neurai-cli getblockcount
|
|
1344
1344
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockcount", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1345
|
-
**/ getblockcount:
|
|
1345
|
+
**/ getblockcount: 'getblockcount',
|
|
1346
1346
|
/** getblockhash height
|
|
1347
1347
|
|
|
1348
1348
|
Returns hash of block in best-block-chain at height provided.
|
|
@@ -1356,7 +1356,7 @@ Result:
|
|
|
1356
1356
|
Examples:
|
|
1357
1357
|
> neurai-cli getblockhash 1000
|
|
1358
1358
|
> 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/
|
|
1359
|
-
**/ getblockhash:
|
|
1359
|
+
**/ getblockhash: 'getblockhash',
|
|
1360
1360
|
/** getblockhashes timestamp
|
|
1361
1361
|
|
|
1362
1362
|
Returns array of hashes of blocks within the timestamp range provided.
|
|
@@ -1385,7 +1385,7 @@ Examples:
|
|
|
1385
1385
|
> neurai-cli getblockhashes 1231614698 1231024505
|
|
1386
1386
|
> 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/
|
|
1387
1387
|
> neurai-cli getblockhashes 1231614698 1231024505 '{"noOrphans":false, "logicalTimes":true}'
|
|
1388
|
-
**/ getblockhashes:
|
|
1388
|
+
**/ getblockhashes: 'getblockhashes',
|
|
1389
1389
|
/** getblockheader "hash" ( verbose )
|
|
1390
1390
|
|
|
1391
1391
|
If verbose is false, returns a string that is serialized, hex-encoded data for blockheader 'hash'.
|
|
@@ -1419,7 +1419,7 @@ Result (for verbose=false):
|
|
|
1419
1419
|
Examples:
|
|
1420
1420
|
> neurai-cli getblockheader "00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"
|
|
1421
1421
|
> 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/
|
|
1422
|
-
**/ getblockheader:
|
|
1422
|
+
**/ getblockheader: 'getblockheader',
|
|
1423
1423
|
/** getblocktemplate ( TemplateRequest )
|
|
1424
1424
|
|
|
1425
1425
|
If the request parameters include a 'mode' key, that is used to explicitly select between the default 'template' request or a 'proposal'.
|
|
@@ -1494,7 +1494,7 @@ Result:
|
|
|
1494
1494
|
Examples:
|
|
1495
1495
|
> neurai-cli getblocktemplate
|
|
1496
1496
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblocktemplate", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1497
|
-
**/ getblocktemplate:
|
|
1497
|
+
**/ getblocktemplate: 'getblocktemplate',
|
|
1498
1498
|
/** getcacheinfo
|
|
1499
1499
|
|
|
1500
1500
|
Result:
|
|
@@ -1513,7 +1513,7 @@ Result:
|
|
|
1513
1513
|
Examples:
|
|
1514
1514
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getcacheinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1515
1515
|
> neurai-cli getcacheinfo
|
|
1516
|
-
**/ getcacheinfo:
|
|
1516
|
+
**/ getcacheinfo: 'getcacheinfo',
|
|
1517
1517
|
/** getchaintips
|
|
1518
1518
|
Return information about all known tips in the block tree, including the main chain as well as orphaned branches.
|
|
1519
1519
|
|
|
@@ -1542,7 +1542,7 @@ Possible values for status:
|
|
|
1542
1542
|
Examples:
|
|
1543
1543
|
> neurai-cli getchaintips
|
|
1544
1544
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getchaintips", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1545
|
-
**/ getchaintips:
|
|
1545
|
+
**/ getchaintips: 'getchaintips',
|
|
1546
1546
|
/** getchaintxstats ( nblocks blockhash )
|
|
1547
1547
|
|
|
1548
1548
|
Compute statistics about the total number and rate of transactions in the chain.
|
|
@@ -1564,7 +1564,7 @@ Result:
|
|
|
1564
1564
|
Examples:
|
|
1565
1565
|
> neurai-cli getchaintxstats
|
|
1566
1566
|
> 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/
|
|
1567
|
-
**/ getchaintxstats:
|
|
1567
|
+
**/ getchaintxstats: 'getchaintxstats',
|
|
1568
1568
|
/** getconnectioncount
|
|
1569
1569
|
|
|
1570
1570
|
Returns the number of connections to other nodes.
|
|
@@ -1575,7 +1575,7 @@ n (numeric) The connection count
|
|
|
1575
1575
|
Examples:
|
|
1576
1576
|
> neurai-cli getconnectioncount
|
|
1577
1577
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getconnectioncount", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1578
|
-
**/ getconnectioncount:
|
|
1578
|
+
**/ getconnectioncount: 'getconnectioncount',
|
|
1579
1579
|
/** getdifficulty
|
|
1580
1580
|
|
|
1581
1581
|
Returns the proof-of-work difficulty as a multiple of the minimum difficulty.
|
|
@@ -1586,7 +1586,7 @@ n.nnn (numeric) the proof-of-work difficulty as a multiple of the minimum
|
|
|
1586
1586
|
Examples:
|
|
1587
1587
|
> neurai-cli getdifficulty
|
|
1588
1588
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getdifficulty", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1589
|
-
**/ getdifficulty:
|
|
1589
|
+
**/ getdifficulty: 'getdifficulty',
|
|
1590
1590
|
/** getdistributestatus "asset_name" snapshot_height "distribution_asset_name" gross_distribution_amount ( "exception_addresses" )
|
|
1591
1591
|
|
|
1592
1592
|
Give information about the status of the distribution
|
|
@@ -1603,7 +1603,7 @@ Examples:
|
|
|
1603
1603
|
> neurai-cli getdistributestatus "PHATSTACKS" 12345 "DIVIDENDS" 1000 "mwN7xC3yomYdvJuVXkVC7ymY9wNBjWNduD,n4Rf18edydDaRBh7t6gHUbuByLbWEoWUTg"
|
|
1604
1604
|
> 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/
|
|
1605
1605
|
> 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/
|
|
1606
|
-
**/ getdistributestatus:
|
|
1606
|
+
**/ getdistributestatus: 'getdistributestatus',
|
|
1607
1607
|
/** getgenerate
|
|
1608
1608
|
|
|
1609
1609
|
Return if the server is set to generate coins or not. The default is false.
|
|
@@ -1616,7 +1616,7 @@ true|false (boolean) If the server is set to generate coins or not
|
|
|
1616
1616
|
Examples:
|
|
1617
1617
|
> neurai-cli getgenerate
|
|
1618
1618
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getgenerate", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1619
|
-
**/ getgenerate:
|
|
1619
|
+
**/ getgenerate: 'getgenerate',
|
|
1620
1620
|
/** getinfo
|
|
1621
1621
|
|
|
1622
1622
|
DEPRECATED. Returns an object containing various state info.
|
|
@@ -1645,7 +1645,7 @@ Result:
|
|
|
1645
1645
|
Examples:
|
|
1646
1646
|
> neurai-cli getinfo
|
|
1647
1647
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1648
|
-
**/ getinfo:
|
|
1648
|
+
**/ getinfo: 'getinfo',
|
|
1649
1649
|
/** getkawpowhash "header_hash" "mix_hash" nonce, height, "target"
|
|
1650
1650
|
|
|
1651
1651
|
Get the kawpow hash for a block given its block data
|
|
@@ -1662,7 +1662,7 @@ Result:
|
|
|
1662
1662
|
Examples:
|
|
1663
1663
|
> neurai-cli getkawpowhash "header_hash" "mix_hash" "0x100000" 2456
|
|
1664
1664
|
> 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/
|
|
1665
|
-
**/ getkawpowhash:
|
|
1665
|
+
**/ getkawpowhash: 'getkawpowhash',
|
|
1666
1666
|
/** getmasterkeyinfo
|
|
1667
1667
|
|
|
1668
1668
|
Fetches and displays the master private key and the master public key.
|
|
@@ -1679,7 +1679,7 @@ Result:
|
|
|
1679
1679
|
Examples:
|
|
1680
1680
|
> neurai-cli getmasterkeyinfo
|
|
1681
1681
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmasterkeyinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1682
|
-
**/ getmasterkeyinfo:
|
|
1682
|
+
**/ getmasterkeyinfo: 'getmasterkeyinfo',
|
|
1683
1683
|
/** getmemoryinfo ("mode")
|
|
1684
1684
|
Returns an object containing information about memory usage.
|
|
1685
1685
|
Arguments:
|
|
@@ -1705,7 +1705,7 @@ Result (mode "mallocinfo"):
|
|
|
1705
1705
|
Examples:
|
|
1706
1706
|
> neurai-cli getmemoryinfo
|
|
1707
1707
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmemoryinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1708
|
-
**/ getmemoryinfo:
|
|
1708
|
+
**/ getmemoryinfo: 'getmemoryinfo',
|
|
1709
1709
|
/** getmempoolancestors txid (verbose)
|
|
1710
1710
|
|
|
1711
1711
|
If txid is in the mempool, returns all in-mempool ancestors.
|
|
@@ -1744,7 +1744,7 @@ Result (for verbose=true):
|
|
|
1744
1744
|
Examples:
|
|
1745
1745
|
> neurai-cli getmempoolancestors "mytxid"
|
|
1746
1746
|
> 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/
|
|
1747
|
-
**/ getmempoolancestors:
|
|
1747
|
+
**/ getmempoolancestors: 'getmempoolancestors',
|
|
1748
1748
|
/** getmempooldescendants txid (verbose)
|
|
1749
1749
|
|
|
1750
1750
|
If txid is in the mempool, returns all in-mempool descendants.
|
|
@@ -1783,7 +1783,7 @@ Result (for verbose=true):
|
|
|
1783
1783
|
Examples:
|
|
1784
1784
|
> neurai-cli getmempooldescendants "mytxid"
|
|
1785
1785
|
> 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/
|
|
1786
|
-
**/ getmempooldescendants:
|
|
1786
|
+
**/ getmempooldescendants: 'getmempooldescendants',
|
|
1787
1787
|
/** getmempoolentry txid
|
|
1788
1788
|
|
|
1789
1789
|
Returns mempool data for given transaction
|
|
@@ -1813,7 +1813,7 @@ Result:
|
|
|
1813
1813
|
Examples:
|
|
1814
1814
|
> neurai-cli getmempoolentry "mytxid"
|
|
1815
1815
|
> 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/
|
|
1816
|
-
**/ getmempoolentry:
|
|
1816
|
+
**/ getmempoolentry: 'getmempoolentry',
|
|
1817
1817
|
/** getmempoolinfo
|
|
1818
1818
|
|
|
1819
1819
|
Returns details on the active state of the TX memory pool.
|
|
@@ -1830,7 +1830,7 @@ Result:
|
|
|
1830
1830
|
Examples:
|
|
1831
1831
|
> neurai-cli getmempoolinfo
|
|
1832
1832
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempoolinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1833
|
-
**/ getmempoolinfo:
|
|
1833
|
+
**/ getmempoolinfo: 'getmempoolinfo',
|
|
1834
1834
|
/** getmininginfo
|
|
1835
1835
|
|
|
1836
1836
|
Returns a json object containing mining-related information.
|
|
@@ -1851,7 +1851,7 @@ Result:
|
|
|
1851
1851
|
Examples:
|
|
1852
1852
|
> neurai-cli getmininginfo
|
|
1853
1853
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmininginfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1854
|
-
**/ getmininginfo:
|
|
1854
|
+
**/ getmininginfo: 'getmininginfo',
|
|
1855
1855
|
/** getmywords ( "account" )
|
|
1856
1856
|
|
|
1857
1857
|
Returns the 12 words and passphrase used by BIP39 to generate the wallets private keys
|
|
@@ -1864,7 +1864,7 @@ Result:
|
|
|
1864
1864
|
Examples:
|
|
1865
1865
|
> neurai-cli getmywords
|
|
1866
1866
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmywords", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1867
|
-
**/ getmywords:
|
|
1867
|
+
**/ getmywords: 'getmywords',
|
|
1868
1868
|
/** getnettotals
|
|
1869
1869
|
|
|
1870
1870
|
Returns information about network traffic, including bytes in, bytes out,
|
|
@@ -1889,7 +1889,7 @@ Result:
|
|
|
1889
1889
|
Examples:
|
|
1890
1890
|
> neurai-cli getnettotals
|
|
1891
1891
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnettotals", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1892
|
-
**/ getnettotals:
|
|
1892
|
+
**/ getnettotals: 'getnettotals',
|
|
1893
1893
|
/** getnetworkhashps ( nblocks height )
|
|
1894
1894
|
|
|
1895
1895
|
Returns the estimated network hashes per second based on the last n blocks.
|
|
@@ -1906,7 +1906,7 @@ x (numeric) Hashes per second estimated
|
|
|
1906
1906
|
Examples:
|
|
1907
1907
|
> neurai-cli getnetworkhashps
|
|
1908
1908
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnetworkhashps", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1909
|
-
**/ getnetworkhashps:
|
|
1909
|
+
**/ getnetworkhashps: 'getnetworkhashps',
|
|
1910
1910
|
/** getnetworkinfo
|
|
1911
1911
|
Returns an object containing various state info regarding P2P networking.
|
|
1912
1912
|
|
|
@@ -1946,7 +1946,7 @@ Result:
|
|
|
1946
1946
|
Examples:
|
|
1947
1947
|
> neurai-cli getnetworkinfo
|
|
1948
1948
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnetworkinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1949
|
-
**/ getnetworkinfo:
|
|
1949
|
+
**/ getnetworkinfo: 'getnetworkinfo',
|
|
1950
1950
|
/** getnewaddress ( "account" )
|
|
1951
1951
|
|
|
1952
1952
|
Returns a new Neurai address for receiving payments.
|
|
@@ -1962,7 +1962,7 @@ Result:
|
|
|
1962
1962
|
Examples:
|
|
1963
1963
|
> neurai-cli getnewaddress
|
|
1964
1964
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnewaddress", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1965
|
-
**/ getnewaddress:
|
|
1965
|
+
**/ getnewaddress: 'getnewaddress',
|
|
1966
1966
|
/** getpeerinfo
|
|
1967
1967
|
|
|
1968
1968
|
Returns data about each connected network node as a json array of objects.
|
|
@@ -2013,7 +2013,27 @@ Result:
|
|
|
2013
2013
|
Examples:
|
|
2014
2014
|
> neurai-cli getpeerinfo
|
|
2015
2015
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getpeerinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2016
|
-
**/ getpeerinfo:
|
|
2016
|
+
**/ getpeerinfo: 'getpeerinfo',
|
|
2017
|
+
/** getpubkey "address"
|
|
2018
|
+
|
|
2019
|
+
Returns the public key for an address that has revealed it by spending (requires pubkeyindex to be enabled).
|
|
2020
|
+
|
|
2021
|
+
Arguments:
|
|
2022
|
+
1. "address" (string, required) The Neurai address
|
|
2023
|
+
|
|
2024
|
+
Result:
|
|
2025
|
+
{
|
|
2026
|
+
"address": "address", (string) The Neurai address
|
|
2027
|
+
"pubkey": "hex", (string) The public key in hex format
|
|
2028
|
+
"revealed": true|false, (boolean) Whether the public key has been revealed
|
|
2029
|
+
"height": n, (numeric) Block height where it was revealed
|
|
2030
|
+
"txid": "hash" (string) Transaction ID where it was revealed
|
|
2031
|
+
}
|
|
2032
|
+
|
|
2033
|
+
Examples:
|
|
2034
|
+
> neurai-cli getpubkey "NXa1b2c3d4e5f6..."
|
|
2035
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getpubkey", "params": ["NXa1b2c3d4e5f6..."] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2036
|
+
**/ getpubkey: 'getpubkey',
|
|
2017
2037
|
/** getrawchangeaddress
|
|
2018
2038
|
|
|
2019
2039
|
Returns a new Neurai address, for receiving change.
|
|
@@ -2025,7 +2045,7 @@ Result:
|
|
|
2025
2045
|
Examples:
|
|
2026
2046
|
> neurai-cli getrawchangeaddress
|
|
2027
2047
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrawchangeaddress", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2028
|
-
**/ getrawchangeaddress:
|
|
2048
|
+
**/ getrawchangeaddress: 'getrawchangeaddress',
|
|
2029
2049
|
/** getrawmempool ( verbose )
|
|
2030
2050
|
|
|
2031
2051
|
Returns all transaction ids in memory pool as a json array of string transaction ids.
|
|
@@ -2065,7 +2085,7 @@ Result: (for verbose = true):
|
|
|
2065
2085
|
Examples:
|
|
2066
2086
|
> neurai-cli getrawmempool true
|
|
2067
2087
|
> 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/
|
|
2068
|
-
**/ getrawmempool:
|
|
2088
|
+
**/ getrawmempool: 'getrawmempool',
|
|
2069
2089
|
/** getrawtransaction "txid" ( verbose )
|
|
2070
2090
|
|
|
2071
2091
|
NOTE: By default this function only works for mempool transactions. If the -txindex option is
|
|
@@ -2133,7 +2153,7 @@ Examples:
|
|
|
2133
2153
|
> neurai-cli getrawtransaction "mytxid"
|
|
2134
2154
|
> neurai-cli getrawtransaction "mytxid" true
|
|
2135
2155
|
> 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/
|
|
2136
|
-
**/ getrawtransaction:
|
|
2156
|
+
**/ getrawtransaction: 'getrawtransaction',
|
|
2137
2157
|
/** getreceivedbyaccount "account" ( minconf )
|
|
2138
2158
|
|
|
2139
2159
|
DEPRECATED. Returns the total amount received by addresses with <account> in transactions with at least [minconf] confirmations.
|
|
@@ -2158,7 +2178,7 @@ The amount with at least 6 confirmations
|
|
|
2158
2178
|
|
|
2159
2179
|
As a json rpc call
|
|
2160
2180
|
> 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/
|
|
2161
|
-
**/ getreceivedbyaccount:
|
|
2181
|
+
**/ getreceivedbyaccount: 'getreceivedbyaccount',
|
|
2162
2182
|
/** getreceivedbyaddress "address" ( minconf )
|
|
2163
2183
|
|
|
2164
2184
|
Returns the total amount received by the given address in transactions with at least minconf confirmations.
|
|
@@ -2183,7 +2203,7 @@ The amount with at least 6 confirmations
|
|
|
2183
2203
|
|
|
2184
2204
|
As a json rpc call
|
|
2185
2205
|
> 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/
|
|
2186
|
-
**/ getreceivedbyaddress:
|
|
2206
|
+
**/ getreceivedbyaddress: 'getreceivedbyaddress',
|
|
2187
2207
|
/** getrpcinfo
|
|
2188
2208
|
Returns details of the RPC server.
|
|
2189
2209
|
|
|
@@ -2199,7 +2219,7 @@ Result:
|
|
|
2199
2219
|
}
|
|
2200
2220
|
> neurai-cli getrpcinfo
|
|
2201
2221
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrpcinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2202
|
-
**/ getrpcinfo:
|
|
2222
|
+
**/ getrpcinfo: 'getrpcinfo',
|
|
2203
2223
|
/** getsnapshot "asset_name" block_height
|
|
2204
2224
|
|
|
2205
2225
|
Returns details for the asset snapshot, at the specified height
|
|
@@ -2221,7 +2241,7 @@ Result:
|
|
|
2221
2241
|
|
|
2222
2242
|
Examples:
|
|
2223
2243
|
> 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/
|
|
2224
|
-
**/ getsnapshot:
|
|
2244
|
+
**/ getsnapshot: 'getsnapshot',
|
|
2225
2245
|
/** getsnapshotrequest "asset_name" block_height
|
|
2226
2246
|
|
|
2227
2247
|
Retrieves the specified snapshot request details.
|
|
@@ -2239,7 +2259,7 @@ Result:
|
|
|
2239
2259
|
Examples:
|
|
2240
2260
|
> neurai-cli getsnapshotrequest "TRONCO" 12345
|
|
2241
2261
|
> 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/
|
|
2242
|
-
**/ getsnapshotrequest:
|
|
2262
|
+
**/ getsnapshotrequest: 'getsnapshotrequest',
|
|
2243
2263
|
/** getspentinfo
|
|
2244
2264
|
|
|
2245
2265
|
Returns the txid and index where an output is spent.
|
|
@@ -2260,7 +2280,7 @@ Result:
|
|
|
2260
2280
|
Examples:
|
|
2261
2281
|
> neurai-cli getspentinfo '{"txid": "0437cd7f8525ceed2324359c2d0ba26006d92d856a9c20fa0241106ee5a597c9", "index": 0}'
|
|
2262
2282
|
> 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/
|
|
2263
|
-
**/ getspentinfo:
|
|
2283
|
+
**/ getspentinfo: 'getspentinfo',
|
|
2264
2284
|
/** gettransaction "txid" ( include_watchonly )
|
|
2265
2285
|
|
|
2266
2286
|
Get detailed information about in-wallet transaction <txid>
|
|
@@ -2316,7 +2336,7 @@ Examples:
|
|
|
2316
2336
|
> neurai-cli gettransaction "1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"
|
|
2317
2337
|
> neurai-cli gettransaction "1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d" true
|
|
2318
2338
|
> 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/
|
|
2319
|
-
**/ gettransaction:
|
|
2339
|
+
**/ gettransaction: 'gettransaction',
|
|
2320
2340
|
/** gettxout "txid" n ( include_mempool )
|
|
2321
2341
|
|
|
2322
2342
|
Returns details about an unspent transaction output.
|
|
@@ -2354,7 +2374,7 @@ View the details
|
|
|
2354
2374
|
|
|
2355
2375
|
As a json rpc call
|
|
2356
2376
|
> 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/
|
|
2357
|
-
**/ gettxout:
|
|
2377
|
+
**/ gettxout: 'gettxout',
|
|
2358
2378
|
/** gettxoutproof ["txid",...] ( blockhash )
|
|
2359
2379
|
|
|
2360
2380
|
Returns a hex-encoded proof that "txid" was included in a block.
|
|
@@ -2374,7 +2394,7 @@ Arguments:
|
|
|
2374
2394
|
|
|
2375
2395
|
Result:
|
|
2376
2396
|
"data" (string) A string that is a serialized, hex-encoded data for the proof.
|
|
2377
|
-
**/ gettxoutproof:
|
|
2397
|
+
**/ gettxoutproof: 'gettxoutproof',
|
|
2378
2398
|
/** gettxoutsetinfo
|
|
2379
2399
|
|
|
2380
2400
|
Returns statistics about the unspent transaction output set.
|
|
@@ -2395,10 +2415,10 @@ Result:
|
|
|
2395
2415
|
Examples:
|
|
2396
2416
|
> neurai-cli gettxoutsetinfo
|
|
2397
2417
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettxoutsetinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2398
|
-
**/ gettxoutsetinfo:
|
|
2418
|
+
**/ gettxoutsetinfo: 'gettxoutsetinfo',
|
|
2399
2419
|
/** getunconfirmedbalance
|
|
2400
2420
|
Returns the server's total unconfirmed balance
|
|
2401
|
-
**/ getunconfirmedbalance:
|
|
2421
|
+
**/ getunconfirmedbalance: 'getunconfirmedbalance',
|
|
2402
2422
|
/** getverifierstring restricted_name
|
|
2403
2423
|
|
|
2404
2424
|
Retrieve the verifier string that belongs to the given restricted asset
|
|
@@ -2412,7 +2432,7 @@ Result:
|
|
|
2412
2432
|
Examples:
|
|
2413
2433
|
> neurai-cli getverifierstring "restricted_name"
|
|
2414
2434
|
> 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/
|
|
2415
|
-
**/ getverifierstring:
|
|
2435
|
+
**/ getverifierstring: 'getverifierstring',
|
|
2416
2436
|
/** getwalletinfo
|
|
2417
2437
|
Returns an object containing various wallet state info.
|
|
2418
2438
|
|
|
@@ -2436,7 +2456,7 @@ Result:
|
|
|
2436
2456
|
Examples:
|
|
2437
2457
|
> neurai-cli getwalletinfo
|
|
2438
2458
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getwalletinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2439
|
-
**/ getwalletinfo:
|
|
2459
|
+
**/ getwalletinfo: 'getwalletinfo',
|
|
2440
2460
|
/** help ( "command" )
|
|
2441
2461
|
|
|
2442
2462
|
List all commands, or get help for a specified command.
|
|
@@ -2446,7 +2466,7 @@ Arguments:
|
|
|
2446
2466
|
|
|
2447
2467
|
Result:
|
|
2448
2468
|
"text" (string) The help text
|
|
2449
|
-
**/ help:
|
|
2469
|
+
**/ help: 'help',
|
|
2450
2470
|
/** importaddress "address" ( "label" rescan p2sh )
|
|
2451
2471
|
|
|
2452
2472
|
Adds a script (in hex) or address that can be watched as if it were in your wallet but cannot be used to spend.
|
|
@@ -2473,7 +2493,7 @@ Import using a label without rescan
|
|
|
2473
2493
|
|
|
2474
2494
|
As a JSON-RPC call
|
|
2475
2495
|
> 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/
|
|
2476
|
-
**/ importaddress:
|
|
2496
|
+
**/ importaddress: 'importaddress',
|
|
2477
2497
|
/** importmulti "requests" ( "options" )
|
|
2478
2498
|
|
|
2479
2499
|
Import addresses/scripts (with private or public keys, redeem script (P2SH)), rescanning all addresses in one-shot-only (rescan can be disabled via options).
|
|
@@ -2509,7 +2529,7 @@ Examples:
|
|
|
2509
2529
|
|
|
2510
2530
|
Response is an array with the same size as the input that has the execution result :
|
|
2511
2531
|
[{ "success": true } , { "success": false, "error": { "code": -1, "message": "Internal Server Error"} }, ... ]
|
|
2512
|
-
**/ importmulti:
|
|
2532
|
+
**/ importmulti: 'importmulti',
|
|
2513
2533
|
/** importprivkey "privkey" ( "label" ) ( rescan )
|
|
2514
2534
|
|
|
2515
2535
|
Adds a private key (as returned by dumpprivkey) to your wallet.
|
|
@@ -2537,7 +2557,7 @@ Import using default blank label and without rescan
|
|
|
2537
2557
|
|
|
2538
2558
|
As a JSON-RPC call
|
|
2539
2559
|
> 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/
|
|
2540
|
-
**/ importprivkey:
|
|
2560
|
+
**/ importprivkey: 'importprivkey',
|
|
2541
2561
|
/** importprunedfunds
|
|
2542
2562
|
|
|
2543
2563
|
Imports funds without rescan. Corresponding address or script must previously be included in wallet. Aimed towards pruned wallets. The end-user is responsible to import additional transactions that subsequently spend the imported outputs or rescan after the point in the blockchain the transaction is included.
|
|
@@ -2545,7 +2565,7 @@ Imports funds without rescan. Corresponding address or script must previously be
|
|
|
2545
2565
|
Arguments:
|
|
2546
2566
|
1. "rawtransaction" (string, required) A raw transaction in hex funding an already-existing address in wallet
|
|
2547
2567
|
2. "txoutproof" (string, required) The hex output from gettxoutproof that contains the transaction
|
|
2548
|
-
**/ importprunedfunds:
|
|
2568
|
+
**/ importprunedfunds: 'importprunedfunds',
|
|
2549
2569
|
/** importpubkey "pubkey" ( "label" rescan )
|
|
2550
2570
|
|
|
2551
2571
|
Adds a public key (in hex) that can be watched as if it were in your wallet but cannot be used to spend.
|
|
@@ -2567,7 +2587,7 @@ Import using a label without rescan
|
|
|
2567
2587
|
|
|
2568
2588
|
As a JSON-RPC call
|
|
2569
2589
|
> 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/
|
|
2570
|
-
**/ importpubkey:
|
|
2590
|
+
**/ importpubkey: 'importpubkey',
|
|
2571
2591
|
/** importwallet "filename"
|
|
2572
2592
|
|
|
2573
2593
|
Imports keys from a wallet dump file (see dumpwallet).
|
|
@@ -2585,7 +2605,7 @@ Import the wallet
|
|
|
2585
2605
|
|
|
2586
2606
|
Import using the json rpc call
|
|
2587
2607
|
> 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/
|
|
2588
|
-
**/ importwallet:
|
|
2608
|
+
**/ importwallet: 'importwallet',
|
|
2589
2609
|
/** issue "asset_name" qty "( to_address )" "( change_address )" ( units ) ( reissuable ) ( has_ipfs ) "( ipfs_hash )"
|
|
2590
2610
|
|
|
2591
2611
|
Issue an asset, subasset or unique asset.
|
|
@@ -2615,7 +2635,7 @@ Examples:
|
|
|
2615
2635
|
> neurai-cli issue "ASSET_NAME" 1000 "myaddress" "changeaddress" 8 false true QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E
|
|
2616
2636
|
> neurai-cli issue "ASSET_NAME/SUB_ASSET" 1000 "myaddress" "changeaddress" 2 true
|
|
2617
2637
|
> neurai-cli issue "ASSET_NAME#uniquetag"
|
|
2618
|
-
**/ issue:
|
|
2638
|
+
**/ issue: 'issue',
|
|
2619
2639
|
/** issuequalifierasset "asset_name" qty "( to_address )" "( change_address )" ( has_ipfs ) "( ipfs_hash )"
|
|
2620
2640
|
|
|
2621
2641
|
Issue an qualifier or sub qualifier asset
|
|
@@ -2644,7 +2664,7 @@ Examples:
|
|
|
2644
2664
|
> neurai-cli issuequalifierasset "#ASSET_NAME" 1000 "myaddress" "changeaddress" true QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E
|
|
2645
2665
|
> neurai-cli issuequalifierasset "ASSET_NAME/SUB_QUALIFIER" 1000 "myaddress" "changeaddress"
|
|
2646
2666
|
> neurai-cli issuequalifierasset "#ASSET_NAME"
|
|
2647
|
-
**/ issuequalifierasset:
|
|
2667
|
+
**/ issuequalifierasset: 'issuequalifierasset',
|
|
2648
2668
|
/** issuerestrictedasset "asset_name" qty "verifier" "to_address" "( change_address )" (units) ( reissuable ) ( has_ipfs ) "( ipfs_hash )"
|
|
2649
2669
|
|
|
2650
2670
|
Issue a restricted asset.
|
|
@@ -2672,7 +2692,7 @@ Examples:
|
|
|
2672
2692
|
> neurai-cli issuerestrictedasset "$ASSET_NAME" 1000 "#KYC & !#AML" "myaddress" "changeaddress" 5
|
|
2673
2693
|
> neurai-cli issuerestrictedasset "$ASSET_NAME" 1000 "#KYC & !#AML" "myaddress" "changeaddress" 8 true
|
|
2674
2694
|
> neurai-cli issuerestrictedasset "$ASSET_NAME" 1000 "#KYC & !#AML" "myaddress" "changeaddress" 0 false true QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E
|
|
2675
|
-
**/ issuerestrictedasset:
|
|
2695
|
+
**/ issuerestrictedasset: 'issuerestrictedasset',
|
|
2676
2696
|
/** issueunique "root_name" [asset_tags] ( [ipfs_hashes] ) "( to_address )" "( change_address )"
|
|
2677
2697
|
|
|
2678
2698
|
Issue unique asset(s).
|
|
@@ -2694,7 +2714,7 @@ Result:
|
|
|
2694
2714
|
Examples:
|
|
2695
2715
|
> neurai-cli issueunique "MY_ASSET" '["primo","secundo"]'
|
|
2696
2716
|
> neurai-cli issueunique "MY_ASSET" '["primo","secundo"]' '["first_hash","second_hash"]'
|
|
2697
|
-
**/ issueunique:
|
|
2717
|
+
**/ issueunique: 'issueunique',
|
|
2698
2718
|
/** isvalidverifierstring verifier_string
|
|
2699
2719
|
|
|
2700
2720
|
Checks to see if the given verifier string is valid
|
|
@@ -2708,7 +2728,7 @@ Result:
|
|
|
2708
2728
|
Examples:
|
|
2709
2729
|
> neurai-cli isvalidverifierstring "verifier_string"
|
|
2710
2730
|
> 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/
|
|
2711
|
-
**/ isvalidverifierstring:
|
|
2731
|
+
**/ isvalidverifierstring: 'isvalidverifierstring',
|
|
2712
2732
|
/** keypoolrefill ( newsize )
|
|
2713
2733
|
|
|
2714
2734
|
Fills the keypool.
|
|
@@ -2719,7 +2739,7 @@ Arguments
|
|
|
2719
2739
|
Examples:
|
|
2720
2740
|
> neurai-cli keypoolrefill
|
|
2721
2741
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "keypoolrefill", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2722
|
-
**/ keypoolrefill:
|
|
2742
|
+
**/ keypoolrefill: 'keypoolrefill',
|
|
2723
2743
|
/** listaccounts ( minconf include_watchonly)
|
|
2724
2744
|
|
|
2725
2745
|
DEPRECATED. Returns Object that has account names as keys, account balances as values.
|
|
@@ -2747,7 +2767,7 @@ List account balances for 6 or more confirmations
|
|
|
2747
2767
|
|
|
2748
2768
|
As json rpc call
|
|
2749
2769
|
> 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/
|
|
2750
|
-
**/ listaccounts:
|
|
2770
|
+
**/ listaccounts: 'listaccounts',
|
|
2751
2771
|
/** listaddressesbyasset "asset_name" (onlytotal) (count) (start)
|
|
2752
2772
|
|
|
2753
2773
|
Returns a list of all address that own the given asset (with balances)
|
|
@@ -2767,7 +2787,7 @@ Examples:
|
|
|
2767
2787
|
> neurai-cli listaddressesbyasset "ASSET_NAME" false 2 0
|
|
2768
2788
|
> neurai-cli listaddressesbyasset "ASSET_NAME" true
|
|
2769
2789
|
> neurai-cli listaddressesbyasset "ASSET_NAME"
|
|
2770
|
-
**/ listaddressesbyasset:
|
|
2790
|
+
**/ listaddressesbyasset: 'listaddressesbyasset',
|
|
2771
2791
|
/** listaddressesfortag tag_name
|
|
2772
2792
|
|
|
2773
2793
|
List all addresses that have been assigned a given tag
|
|
@@ -2783,7 +2803,7 @@ Result:
|
|
|
2783
2803
|
Examples:
|
|
2784
2804
|
> neurai-cli listaddressesfortag "#TAG"
|
|
2785
2805
|
> 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/
|
|
2786
|
-
**/ listaddressesfortag:
|
|
2806
|
+
**/ listaddressesfortag: 'listaddressesfortag',
|
|
2787
2807
|
/** listaddressgroupings
|
|
2788
2808
|
|
|
2789
2809
|
Lists groups of addresses which have had their common ownership
|
|
@@ -2806,7 +2826,7 @@ Result:
|
|
|
2806
2826
|
Examples:
|
|
2807
2827
|
> neurai-cli listaddressgroupings
|
|
2808
2828
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressgroupings", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2809
|
-
**/ listaddressgroupings:
|
|
2829
|
+
**/ listaddressgroupings: 'listaddressgroupings',
|
|
2810
2830
|
/** listaddressrestrictions address
|
|
2811
2831
|
|
|
2812
2832
|
List all assets that have frozen this address
|
|
@@ -2822,7 +2842,7 @@ Result:
|
|
|
2822
2842
|
Examples:
|
|
2823
2843
|
> neurai-cli listaddressrestrictions "address"
|
|
2824
2844
|
> 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/
|
|
2825
|
-
**/ listaddressrestrictions:
|
|
2845
|
+
**/ listaddressrestrictions: 'listaddressrestrictions',
|
|
2826
2846
|
/** listassetbalancesbyaddress "address" (onlytotal) (count) (start)
|
|
2827
2847
|
|
|
2828
2848
|
Returns a list of all asset balances for an address.
|
|
@@ -2843,7 +2863,7 @@ Examples:
|
|
|
2843
2863
|
> neurai-cli listassetbalancesbyaddress "myaddress" false 2 0
|
|
2844
2864
|
> neurai-cli listassetbalancesbyaddress "myaddress" true
|
|
2845
2865
|
> neurai-cli listassetbalancesbyaddress "myaddress"
|
|
2846
|
-
**/ listassetbalancesbyaddress:
|
|
2866
|
+
**/ listassetbalancesbyaddress: 'listassetbalancesbyaddress',
|
|
2847
2867
|
/** listassets "( asset )" ( verbose ) ( count ) ( start )
|
|
2848
2868
|
|
|
2849
2869
|
Returns a list of all assets
|
|
@@ -2880,7 +2900,7 @@ Examples:
|
|
|
2880
2900
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listassets", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2881
2901
|
> neurai-cli listassets ASSET
|
|
2882
2902
|
> neurai-cli listassets "ASSET*" true 10 20
|
|
2883
|
-
**/ listassets:
|
|
2903
|
+
**/ listassets: 'listassets',
|
|
2884
2904
|
/** listbanned
|
|
2885
2905
|
|
|
2886
2906
|
List all banned IPs/Subnets.
|
|
@@ -2888,7 +2908,7 @@ List all banned IPs/Subnets.
|
|
|
2888
2908
|
Examples:
|
|
2889
2909
|
> neurai-cli listbanned
|
|
2890
2910
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listbanned", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2891
|
-
**/ listbanned:
|
|
2911
|
+
**/ listbanned: 'listbanned',
|
|
2892
2912
|
/** listglobalrestrictions
|
|
2893
2913
|
|
|
2894
2914
|
List all global restricted assets
|
|
@@ -2901,7 +2921,7 @@ Result:
|
|
|
2901
2921
|
Examples:
|
|
2902
2922
|
> neurai-cli listglobalrestrictions
|
|
2903
2923
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listglobalrestrictions", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2904
|
-
**/ listglobalrestrictions:
|
|
2924
|
+
**/ listglobalrestrictions: 'listglobalrestrictions',
|
|
2905
2925
|
/** listlockunspent
|
|
2906
2926
|
|
|
2907
2927
|
Returns list of temporarily unspendable outputs.
|
|
@@ -2932,7 +2952,7 @@ Unlock the transaction again
|
|
|
2932
2952
|
|
|
2933
2953
|
As a json rpc call
|
|
2934
2954
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listlockunspent", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2935
|
-
**/ listlockunspent:
|
|
2955
|
+
**/ listlockunspent: 'listlockunspent',
|
|
2936
2956
|
/** listmyassets "( asset )" ( verbose ) ( count ) ( start ) (confs)
|
|
2937
2957
|
|
|
2938
2958
|
Returns a list of all asset that are owned by this wallet
|
|
@@ -2973,7 +2993,7 @@ Examples:
|
|
|
2973
2993
|
> neurai-cli listmyassets ASSET
|
|
2974
2994
|
> neurai-cli listmyassets "ASSET*" true 10 20
|
|
2975
2995
|
> neurai-cli listmyassets "ASSET*" true 10 20 1
|
|
2976
|
-
**/ listmyassets:
|
|
2996
|
+
**/ listmyassets: 'listmyassets',
|
|
2977
2997
|
/** listreceivedbyaccount ( minconf include_empty include_watchonly)
|
|
2978
2998
|
|
|
2979
2999
|
DEPRECATED. List balances by account.
|
|
@@ -2999,7 +3019,7 @@ Examples:
|
|
|
2999
3019
|
> neurai-cli listreceivedbyaccount
|
|
3000
3020
|
> neurai-cli listreceivedbyaccount 6 true
|
|
3001
3021
|
> 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/
|
|
3002
|
-
**/ listreceivedbyaccount:
|
|
3022
|
+
**/ listreceivedbyaccount: 'listreceivedbyaccount',
|
|
3003
3023
|
/** listreceivedbyaddress ( minconf include_empty include_watchonly)
|
|
3004
3024
|
|
|
3005
3025
|
List balances by receiving address.
|
|
@@ -3030,7 +3050,7 @@ Examples:
|
|
|
3030
3050
|
> neurai-cli listreceivedbyaddress
|
|
3031
3051
|
> neurai-cli listreceivedbyaddress 6 true
|
|
3032
3052
|
> 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/
|
|
3033
|
-
**/ listreceivedbyaddress:
|
|
3053
|
+
**/ listreceivedbyaddress: 'listreceivedbyaddress',
|
|
3034
3054
|
/** listsinceblock ( "blockhash" target_confirmations include_watchonly include_removed )
|
|
3035
3055
|
|
|
3036
3056
|
Get all transactions in blocks since block [blockhash], or all transactions if omitted.
|
|
@@ -3080,7 +3100,7 @@ Examples:
|
|
|
3080
3100
|
> neurai-cli listsinceblock
|
|
3081
3101
|
> neurai-cli listsinceblock "000000000000000bacf66f7497b7dc45ef753ee9a7d38571037cdb1a57f663ad" 6
|
|
3082
3102
|
> 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/
|
|
3083
|
-
**/ listsinceblock:
|
|
3103
|
+
**/ listsinceblock: 'listsinceblock',
|
|
3084
3104
|
/** listsnapshotrequests ["asset_name" [block_height]]
|
|
3085
3105
|
|
|
3086
3106
|
List snapshot request details.
|
|
@@ -3100,7 +3120,7 @@ Result:
|
|
|
3100
3120
|
Examples:
|
|
3101
3121
|
> neurai-cli listsnapshotrequests
|
|
3102
3122
|
> 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/
|
|
3103
|
-
**/ listsnapshotrequests:
|
|
3123
|
+
**/ listsnapshotrequests: 'listsnapshotrequests',
|
|
3104
3124
|
/** listtagsforaddress address
|
|
3105
3125
|
|
|
3106
3126
|
List all tags assigned to an address
|
|
@@ -3116,7 +3136,7 @@ Result:
|
|
|
3116
3136
|
Examples:
|
|
3117
3137
|
> neurai-cli listtagsforaddress "address"
|
|
3118
3138
|
> 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/
|
|
3119
|
-
**/ listtagsforaddress:
|
|
3139
|
+
**/ listtagsforaddress: 'listtagsforaddress',
|
|
3120
3140
|
/** listtransactions ( "account" count skip include_watchonly)
|
|
3121
3141
|
|
|
3122
3142
|
Returns up to 'count' most recent transactions skipping the first 'from' transactions for account 'account'.
|
|
@@ -3179,7 +3199,7 @@ List transactions 100 to 120
|
|
|
3179
3199
|
|
|
3180
3200
|
As a json rpc call
|
|
3181
3201
|
> 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/
|
|
3182
|
-
**/ listtransactions:
|
|
3202
|
+
**/ listtransactions: 'listtransactions',
|
|
3183
3203
|
/** listunspent ( minconf maxconf ["addresses",...] [include_unsafe] [query_options])
|
|
3184
3204
|
|
|
3185
3205
|
Returns array of unspent transaction outputs
|
|
@@ -3230,7 +3250,7 @@ Examples
|
|
|
3230
3250
|
> 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/
|
|
3231
3251
|
> neurai-cli listunspent 6 9999999 '[]' true '{ "minimumAmount": 0.005 }'
|
|
3232
3252
|
> 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/
|
|
3233
|
-
**/ listunspent:
|
|
3253
|
+
**/ listunspent: 'listunspent',
|
|
3234
3254
|
/** listwallets
|
|
3235
3255
|
Returns a list of currently loaded wallets.
|
|
3236
3256
|
For full information on the wallet, use "getwalletinfo"
|
|
@@ -3244,7 +3264,7 @@ Result:
|
|
|
3244
3264
|
Examples:
|
|
3245
3265
|
> neurai-cli listwallets
|
|
3246
3266
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listwallets", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3247
|
-
**/ listwallets:
|
|
3267
|
+
**/ listwallets: 'listwallets',
|
|
3248
3268
|
/** lockunspent unlock ([{"txid":"txid","vout":n},...])
|
|
3249
3269
|
|
|
3250
3270
|
Updates list of temporarily unspendable outputs.
|
|
@@ -3285,7 +3305,7 @@ Unlock the transaction again
|
|
|
3285
3305
|
|
|
3286
3306
|
As a json rpc call
|
|
3287
3307
|
> 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/
|
|
3288
|
-
**/ lockunspent:
|
|
3308
|
+
**/ lockunspent: 'lockunspent',
|
|
3289
3309
|
/** move "fromaccount" "toaccount" amount ( minconf "comment" )
|
|
3290
3310
|
|
|
3291
3311
|
DEPRECATED. Move a specified amount from one account in your wallet to another.
|
|
@@ -3310,7 +3330,7 @@ Move 0.01 XNA timotei to akiko with a comment and funds have 6 confirmations
|
|
|
3310
3330
|
|
|
3311
3331
|
As a json rpc call
|
|
3312
3332
|
> 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/
|
|
3313
|
-
**/ move:
|
|
3333
|
+
**/ move: 'move',
|
|
3314
3334
|
/** ping
|
|
3315
3335
|
|
|
3316
3336
|
Requests that a ping be sent to all other nodes, to measure ping time.
|
|
@@ -3320,7 +3340,7 @@ Ping command is handled in queue with all other commands, so it measures process
|
|
|
3320
3340
|
Examples:
|
|
3321
3341
|
> neurai-cli ping
|
|
3322
3342
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "ping", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3323
|
-
**/ ping:
|
|
3343
|
+
**/ ping: 'ping',
|
|
3324
3344
|
/** pprpcsb "header_hash" "mix_hash" "nonce"
|
|
3325
3345
|
|
|
3326
3346
|
Attempts to submit new block to network mined by kawpow gpu miner via rpc.
|
|
@@ -3335,7 +3355,7 @@ Result:
|
|
|
3335
3355
|
Examples:
|
|
3336
3356
|
> neurai-cli pprpcsb "header_hash" "mix_hash" 100000
|
|
3337
3357
|
> 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/
|
|
3338
|
-
**/ pprpcsb:
|
|
3358
|
+
**/ pprpcsb: 'pprpcsb',
|
|
3339
3359
|
/** preciousblock "blockhash"
|
|
3340
3360
|
|
|
3341
3361
|
Treats a block as if it were received before others with the same work.
|
|
@@ -3352,7 +3372,7 @@ Result:
|
|
|
3352
3372
|
Examples:
|
|
3353
3373
|
> neurai-cli preciousblock "blockhash"
|
|
3354
3374
|
> 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/
|
|
3355
|
-
**/ preciousblock:
|
|
3375
|
+
**/ preciousblock: 'preciousblock',
|
|
3356
3376
|
/** prioritisetransaction <txid> <dummy value> <fee delta>
|
|
3357
3377
|
Accepts the transaction into mined blocks at a higher (or lower) priority
|
|
3358
3378
|
|
|
@@ -3370,7 +3390,7 @@ true (boolean) Returns true
|
|
|
3370
3390
|
Examples:
|
|
3371
3391
|
> neurai-cli prioritisetransaction "txid" 0.0 10000
|
|
3372
3392
|
> 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/
|
|
3373
|
-
**/ prioritisetransaction:
|
|
3393
|
+
**/ prioritisetransaction: 'prioritisetransaction',
|
|
3374
3394
|
/** pruneblockchain
|
|
3375
3395
|
|
|
3376
3396
|
Arguments:
|
|
@@ -3383,7 +3403,7 @@ n (numeric) Height of the last block pruned.
|
|
|
3383
3403
|
Examples:
|
|
3384
3404
|
> neurai-cli pruneblockchain 1000
|
|
3385
3405
|
> 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/
|
|
3386
|
-
**/ pruneblockchain:
|
|
3406
|
+
**/ pruneblockchain: 'pruneblockchain',
|
|
3387
3407
|
/** purgesnapshot "asset_name" block_height
|
|
3388
3408
|
|
|
3389
3409
|
Removes details for the asset snapshot, at the specified height
|
|
@@ -3401,7 +3421,7 @@ Result:
|
|
|
3401
3421
|
Examples:
|
|
3402
3422
|
> neurai-cli purgesnapshot "ASSET_NAME" 28546
|
|
3403
3423
|
> 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/
|
|
3404
|
-
**/ purgesnapshot:
|
|
3424
|
+
**/ purgesnapshot: 'purgesnapshot',
|
|
3405
3425
|
/** reissue "asset_name" qty "to_address" "change_address" ( reissuable ) ( new_units) "( new_ipfs )"
|
|
3406
3426
|
|
|
3407
3427
|
Reissues a quantity of an asset to an owned address if you own the Owner Token
|
|
@@ -3422,7 +3442,7 @@ Result:
|
|
|
3422
3442
|
Examples:
|
|
3423
3443
|
> neurai-cli reissue "ASSET_NAME" 20 "address"
|
|
3424
3444
|
> 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/
|
|
3425
|
-
**/ reissue:
|
|
3445
|
+
**/ reissue: 'reissue',
|
|
3426
3446
|
/** reissuerestrictedasset "asset_name" qty to_address ( change_verifier ) ( "new_verifier" ) "( change_address )" ( new_units ) ( reissuable ) "( new_ipfs )"
|
|
3427
3447
|
|
|
3428
3448
|
Reissue an already created restricted asset
|
|
@@ -3448,7 +3468,7 @@ Examples:
|
|
|
3448
3468
|
> neurai-cli reissuerestrictedasset "$ASSET_NAME" 1000 "myaddress" true "KYC & !AML" "changeaddress"
|
|
3449
3469
|
> neurai-cli reissuerestrictedasset "$ASSET_NAME" 1000 "myaddress" true "KYC & !AML" "changeaddress" -1 true
|
|
3450
3470
|
> neurai-cli reissuerestrictedasset "$ASSET_NAME" 1000 "myaddress" false "" "changeaddress" -1 false QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E
|
|
3451
|
-
**/ reissuerestrictedasset:
|
|
3471
|
+
**/ reissuerestrictedasset: 'reissuerestrictedasset',
|
|
3452
3472
|
/** removeprunedfunds "txid"
|
|
3453
3473
|
|
|
3454
3474
|
Deletes the specified transaction from the wallet. Meant for use with pruned wallets and as a companion to importprunedfunds. This will affect wallet balances.
|
|
@@ -3461,7 +3481,7 @@ Examples:
|
|
|
3461
3481
|
|
|
3462
3482
|
As a JSON-RPC call
|
|
3463
3483
|
> 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/
|
|
3464
|
-
**/ removeprunedfunds:
|
|
3484
|
+
**/ removeprunedfunds: 'removeprunedfunds',
|
|
3465
3485
|
/** removetagfromaddress tag_name to_address (change_address) (asset_data)
|
|
3466
3486
|
|
|
3467
3487
|
Remove a tag from a address
|
|
@@ -3480,7 +3500,7 @@ Examples:
|
|
|
3480
3500
|
> 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/
|
|
3481
3501
|
> neurai-cli removetagfromaddress "#TAG" "to_address" "change_address"
|
|
3482
3502
|
> 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/
|
|
3483
|
-
**/ removetagfromaddress:
|
|
3503
|
+
**/ removetagfromaddress: 'removetagfromaddress',
|
|
3484
3504
|
/** requestsnapshot "asset_name" block_height
|
|
3485
3505
|
|
|
3486
3506
|
Schedules a snapshot of the specified asset at the specified block height.
|
|
@@ -3497,7 +3517,7 @@ Result:
|
|
|
3497
3517
|
Examples:
|
|
3498
3518
|
> neurai-cli requestsnapshot "TRONCO" 12345
|
|
3499
3519
|
> 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/
|
|
3500
|
-
**/ requestsnapshot:
|
|
3520
|
+
**/ requestsnapshot: 'requestsnapshot',
|
|
3501
3521
|
/** rescanblockchain ("start_height") ("stop_height")
|
|
3502
3522
|
|
|
3503
3523
|
Rescan the local blockchain for wallet related transactions.
|
|
@@ -3515,7 +3535,7 @@ Result:
|
|
|
3515
3535
|
Examples:
|
|
3516
3536
|
> neurai-cli rescanblockchain 100000 120000
|
|
3517
3537
|
> 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/
|
|
3518
|
-
**/ rescanblockchain:
|
|
3538
|
+
**/ rescanblockchain: 'rescanblockchain',
|
|
3519
3539
|
/** savemempool
|
|
3520
3540
|
|
|
3521
3541
|
Dumps the mempool to disk.
|
|
@@ -3523,7 +3543,7 @@ Dumps the mempool to disk.
|
|
|
3523
3543
|
Examples:
|
|
3524
3544
|
> neurai-cli savemempool
|
|
3525
3545
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "savemempool", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3526
|
-
**/ savemempool:
|
|
3546
|
+
**/ savemempool: 'savemempool',
|
|
3527
3547
|
/** sendfrom "fromaccount" "toaddress" amount ( minconf "comment" "comment_to" )
|
|
3528
3548
|
|
|
3529
3549
|
DEPRECATED (use sendtoaddress). Sent an amount from an account to a neurai address.
|
|
@@ -3555,7 +3575,7 @@ Send 0.01 from the tabby account to the given address, funds must have at least
|
|
|
3555
3575
|
|
|
3556
3576
|
As a json rpc call
|
|
3557
3577
|
> 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/
|
|
3558
|
-
**/ sendfrom:
|
|
3578
|
+
**/ sendfrom: 'sendfrom',
|
|
3559
3579
|
/** sendfromaddress "from_address" "to_address" amount ( "comment" "comment_to" subtractfeefromamount replaceable conf_target "estimate_mode")
|
|
3560
3580
|
|
|
3561
3581
|
Send an amount from a specific address to a given address. All xna change will get sent back to the from_address
|
|
@@ -3585,7 +3605,7 @@ Examples:
|
|
|
3585
3605
|
> neurai-cli sendfromaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1 "donation" "seans outpost"
|
|
3586
3606
|
> neurai-cli sendfromaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1 "" "" true
|
|
3587
3607
|
> 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/
|
|
3588
|
-
**/ sendfromaddress:
|
|
3608
|
+
**/ sendfromaddress: 'sendfromaddress',
|
|
3589
3609
|
/** sendmany "fromaccount" {"address":amount,...} ( minconf "comment" ["address",...] replaceable conf_target "estimate_mode")
|
|
3590
3610
|
|
|
3591
3611
|
Send multiple times. Amounts are double-precision floating point numbers.
|
|
@@ -3630,7 +3650,7 @@ Send two amounts to two different addresses, subtract fee from amount:
|
|
|
3630
3650
|
|
|
3631
3651
|
As a json rpc call
|
|
3632
3652
|
> 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/
|
|
3633
|
-
**/ sendmany:
|
|
3653
|
+
**/ sendmany: 'sendmany',
|
|
3634
3654
|
/** sendmessage "channel_name" "ipfs_hash" (expire_time)
|
|
3635
3655
|
|
|
3636
3656
|
Creates and broadcasts a message transaction to the network for a channel this wallet owns
|
|
@@ -3646,7 +3666,7 @@ txid
|
|
|
3646
3666
|
Examples:
|
|
3647
3667
|
> neurai-cli sendmessage "ASSET_NAME!" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
3648
3668
|
> neurai-cli sendmessage "ASSET_NAME!" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
3649
|
-
**/ sendmessage:
|
|
3669
|
+
**/ sendmessage: 'sendmessage',
|
|
3650
3670
|
/** sendrawtransaction "hexstring" ( allowhighfees )
|
|
3651
3671
|
|
|
3652
3672
|
Submits raw transaction (serialized, hex-encoded) to local node and network.
|
|
@@ -3672,7 +3692,7 @@ Send the transaction (signed hex)
|
|
|
3672
3692
|
|
|
3673
3693
|
As a json rpc call
|
|
3674
3694
|
> 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/
|
|
3675
|
-
**/ sendrawtransaction:
|
|
3695
|
+
**/ sendrawtransaction: 'sendrawtransaction',
|
|
3676
3696
|
/** sendtoaddress "address" amount ( "comment" "comment_to" subtractfeefromamount replaceable conf_target "estimate_mode")
|
|
3677
3697
|
|
|
3678
3698
|
Send an amount to a given address.
|
|
@@ -3701,7 +3721,7 @@ Examples:
|
|
|
3701
3721
|
> neurai-cli sendtoaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1 "donation" "seans outpost"
|
|
3702
3722
|
> neurai-cli sendtoaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1 "" "" true
|
|
3703
3723
|
> 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/
|
|
3704
|
-
**/ sendtoaddress:
|
|
3724
|
+
**/ sendtoaddress: 'sendtoaddress',
|
|
3705
3725
|
/** setaccount "address" "account"
|
|
3706
3726
|
|
|
3707
3727
|
DEPRECATED. Sets the account associated with the given address.
|
|
@@ -3713,7 +3733,7 @@ Arguments:
|
|
|
3713
3733
|
Examples:
|
|
3714
3734
|
> neurai-cli setaccount "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX" "tabby"
|
|
3715
3735
|
> 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/
|
|
3716
|
-
**/ setaccount:
|
|
3736
|
+
**/ setaccount: 'setaccount',
|
|
3717
3737
|
/** setban "subnet" "add|remove" (bantime) (absolute)
|
|
3718
3738
|
|
|
3719
3739
|
Attempts to add or remove an IP/Subnet from the banned list.
|
|
@@ -3728,7 +3748,7 @@ Examples:
|
|
|
3728
3748
|
> neurai-cli setban "192.168.0.6" "add" 86400
|
|
3729
3749
|
> neurai-cli setban "192.168.0.0/24" "add"
|
|
3730
3750
|
> 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/
|
|
3731
|
-
**/ setban:
|
|
3751
|
+
**/ setban: 'setban',
|
|
3732
3752
|
/** setgenerate generate ( genproclimit )
|
|
3733
3753
|
|
|
3734
3754
|
Set 'generate' true or false to turn generation on or off.
|
|
@@ -3752,14 +3772,14 @@ Turn off generation
|
|
|
3752
3772
|
|
|
3753
3773
|
Using json rpc
|
|
3754
3774
|
> 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/
|
|
3755
|
-
**/ setgenerate:
|
|
3775
|
+
**/ setgenerate: 'setgenerate',
|
|
3756
3776
|
/** setnetworkactive true|false
|
|
3757
3777
|
|
|
3758
3778
|
Disable/enable all p2p network activity.
|
|
3759
3779
|
|
|
3760
3780
|
Arguments:
|
|
3761
3781
|
1. "state" (boolean, required) true to enable networking, false to disable
|
|
3762
|
-
**/ setnetworkactive:
|
|
3782
|
+
**/ setnetworkactive: 'setnetworkactive',
|
|
3763
3783
|
/** settxfee amount
|
|
3764
3784
|
|
|
3765
3785
|
Set the transaction fee per kB. Overwrites the paytxfee parameter.
|
|
@@ -3773,7 +3793,7 @@ true|false (boolean) Returns true if successful
|
|
|
3773
3793
|
Examples:
|
|
3774
3794
|
> neurai-cli settxfee 0.00001
|
|
3775
3795
|
> 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/
|
|
3776
|
-
**/ settxfee:
|
|
3796
|
+
**/ settxfee: 'settxfee',
|
|
3777
3797
|
/** signmessage "address" "message"
|
|
3778
3798
|
|
|
3779
3799
|
Sign a message with the private key of an address
|
|
@@ -3798,7 +3818,7 @@ Verify the signature
|
|
|
3798
3818
|
|
|
3799
3819
|
As json rpc
|
|
3800
3820
|
> 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/
|
|
3801
|
-
**/ signmessage:
|
|
3821
|
+
**/ signmessage: 'signmessage',
|
|
3802
3822
|
/** signmessagewithprivkey "privkey" "message"
|
|
3803
3823
|
|
|
3804
3824
|
Sign a message with the private key of an address
|
|
@@ -3820,7 +3840,7 @@ Verify the signature
|
|
|
3820
3840
|
|
|
3821
3841
|
As json rpc
|
|
3822
3842
|
> 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/
|
|
3823
|
-
**/ signmessagewithprivkey:
|
|
3843
|
+
**/ signmessagewithprivkey: 'signmessagewithprivkey',
|
|
3824
3844
|
/** signrawtransaction "hexstring" ( [{"txid":"id","vout":n,"scriptPubKey":"hex","redeemScript":"hex"},...] ["privatekey1",...] sighashtype )
|
|
3825
3845
|
|
|
3826
3846
|
Sign inputs for raw transaction (serialized, hex-encoded).
|
|
@@ -3875,10 +3895,10 @@ Result:
|
|
|
3875
3895
|
Examples:
|
|
3876
3896
|
> neurai-cli signrawtransaction "myhex"
|
|
3877
3897
|
> 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/
|
|
3878
|
-
**/ signrawtransaction:
|
|
3898
|
+
**/ signrawtransaction: 'signrawtransaction',
|
|
3879
3899
|
/** stop
|
|
3880
3900
|
|
|
3881
|
-
Stop Neurai server.**/ stop:
|
|
3901
|
+
Stop Neurai server.**/ stop: 'stop',
|
|
3882
3902
|
/** submitblock "hexdata" ( "dummy" )
|
|
3883
3903
|
|
|
3884
3904
|
Attempts to submit new block to network.
|
|
@@ -3893,7 +3913,7 @@ Result:
|
|
|
3893
3913
|
Examples:
|
|
3894
3914
|
> neurai-cli submitblock "mydata"
|
|
3895
3915
|
> 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/
|
|
3896
|
-
**/ submitblock:
|
|
3916
|
+
**/ submitblock: 'submitblock',
|
|
3897
3917
|
/** subscribetochannel
|
|
3898
3918
|
|
|
3899
3919
|
Subscribe to a certain message channel
|
|
@@ -3908,7 +3928,7 @@ Result:[
|
|
|
3908
3928
|
Examples:
|
|
3909
3929
|
> neurai-cli subscribetochannel "ASSET_NAME!"
|
|
3910
3930
|
> 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/
|
|
3911
|
-
**/ subscribetochannel:
|
|
3931
|
+
**/ subscribetochannel: 'subscribetochannel',
|
|
3912
3932
|
/** testmempoolaccept ["rawtxs"] ( allowhighfees )
|
|
3913
3933
|
|
|
3914
3934
|
Returns if raw transaction (serialized, hex-encoded) would be accepted by mempool.
|
|
@@ -3944,7 +3964,7 @@ Test acceptance of the transaction (signed hex)
|
|
|
3944
3964
|
|
|
3945
3965
|
As a json rpc call
|
|
3946
3966
|
> 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/
|
|
3947
|
-
**/ testmempoolaccept:
|
|
3967
|
+
**/ testmempoolaccept: 'testmempoolaccept',
|
|
3948
3968
|
/** transfer "asset_name" qty "to_address" "message" expire_time "change_address" "asset_change_address"
|
|
3949
3969
|
|
|
3950
3970
|
Transfers a quantity of an owned asset to a given address
|
|
@@ -3965,7 +3985,7 @@ txid
|
|
|
3965
3985
|
Examples:
|
|
3966
3986
|
> neurai-cli transfer "ASSET_NAME" 20 "address" "" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
3967
3987
|
> neurai-cli transfer "ASSET_NAME" 20 "address" "" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
3968
|
-
**/ transfer:
|
|
3988
|
+
**/ transfer: 'transfer',
|
|
3969
3989
|
/** transferfromaddress "asset_name" "from_address" qty "to_address" "message" expire_time "xna_change_address" "asset_change_address"
|
|
3970
3990
|
|
|
3971
3991
|
Transfer a quantity of an owned asset in a specific address to a given address
|
|
@@ -3987,7 +4007,7 @@ txid
|
|
|
3987
4007
|
Examples:
|
|
3988
4008
|
> neurai-cli transferfromaddress "ASSET_NAME" "fromaddress" 20 "address" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E", 156545652
|
|
3989
4009
|
> 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/
|
|
3990
|
-
**/ transferfromaddress:
|
|
4010
|
+
**/ transferfromaddress: 'transferfromaddress',
|
|
3991
4011
|
/** transferfromaddresses "asset_name" ["from_addresses"] qty "to_address" "message" expire_time "xna_change_address" "asset_change_address"
|
|
3992
4012
|
|
|
3993
4013
|
Transfer a quantity of an owned asset in specific address(es) to a given address
|
|
@@ -4009,7 +4029,7 @@ txid
|
|
|
4009
4029
|
Examples:
|
|
4010
4030
|
> neurai-cli transferfromaddresses "ASSET_NAME" '["fromaddress1", "fromaddress2"]' 20 "to_address" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 154652365
|
|
4011
4031
|
> 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/
|
|
4012
|
-
**/ transferfromaddresses:
|
|
4032
|
+
**/ transferfromaddresses: 'transferfromaddresses',
|
|
4013
4033
|
/** transferqualifier "qualifier_name" qty "to_address" ("change_address") ("message") (expire_time)
|
|
4014
4034
|
|
|
4015
4035
|
Transfer a qualifier asset owned by this wallet to the given address
|
|
@@ -4029,7 +4049,7 @@ txid
|
|
|
4029
4049
|
Examples:
|
|
4030
4050
|
> neurai-cli transferqualifier "#QUALIFIER" 20 "to_address" "" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
4031
4051
|
> neurai-cli transferqualifier "#QUALIFIER" 20 "to_address" "change_address" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
4032
|
-
**/ transferqualifier:
|
|
4052
|
+
**/ transferqualifier: 'transferqualifier',
|
|
4033
4053
|
/** unfreezeaddress asset_name address (change_address) (asset_data)
|
|
4034
4054
|
|
|
4035
4055
|
Unfreeze an address from transferring a restricted asset
|
|
@@ -4048,7 +4068,7 @@ Examples:
|
|
|
4048
4068
|
> 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/
|
|
4049
4069
|
> neurai-cli unfreezeaddress "$RESTRICTED_ASSET" "address" "change_address"
|
|
4050
4070
|
> 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/
|
|
4051
|
-
**/ unfreezeaddress:
|
|
4071
|
+
**/ unfreezeaddress: 'unfreezeaddress',
|
|
4052
4072
|
/** unfreezerestrictedasset asset_name (change_address) (asset_data)
|
|
4053
4073
|
|
|
4054
4074
|
Unfreeze all trading for a specific restricted asset
|
|
@@ -4066,7 +4086,7 @@ Examples:
|
|
|
4066
4086
|
> 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/
|
|
4067
4087
|
> neurai-cli unfreezerestrictedasset "$RESTRICTED_ASSET" "change_address"
|
|
4068
4088
|
> 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/
|
|
4069
|
-
**/ unfreezerestrictedasset:
|
|
4089
|
+
**/ unfreezerestrictedasset: 'unfreezerestrictedasset',
|
|
4070
4090
|
/** unsubscribefromchannel
|
|
4071
4091
|
|
|
4072
4092
|
Unsubscribe from a certain message channel
|
|
@@ -4081,7 +4101,7 @@ Result:[
|
|
|
4081
4101
|
Examples:
|
|
4082
4102
|
> neurai-cli unsubscribefromchannel "ASSET_NAME!"
|
|
4083
4103
|
> 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/
|
|
4084
|
-
**/ unsubscribefromchannel:
|
|
4104
|
+
**/ unsubscribefromchannel: 'unsubscribefromchannel',
|
|
4085
4105
|
/** uptime
|
|
4086
4106
|
|
|
4087
4107
|
Returns the total uptime of the server.
|
|
@@ -4092,7 +4112,7 @@ ttt (numeric) The number of seconds that the server has been running
|
|
|
4092
4112
|
Examples:
|
|
4093
4113
|
> neurai-cli uptime
|
|
4094
4114
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "uptime", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4095
|
-
**/ uptime:
|
|
4115
|
+
**/ uptime: 'uptime',
|
|
4096
4116
|
/** validateaddress "address"
|
|
4097
4117
|
|
|
4098
4118
|
Return information about the given neurai address.
|
|
@@ -4127,7 +4147,7 @@ Result:
|
|
|
4127
4147
|
Examples:
|
|
4128
4148
|
> neurai-cli validateaddress "1PSSGeFHDnKNxiEyFrD1wcEaHr9hrQDDWc"
|
|
4129
4149
|
> 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/
|
|
4130
|
-
**/ validateaddress:
|
|
4150
|
+
**/ validateaddress: 'validateaddress',
|
|
4131
4151
|
/** verifychain ( checklevel nblocks )
|
|
4132
4152
|
|
|
4133
4153
|
Verifies blockchain database.
|
|
@@ -4142,7 +4162,7 @@ true|false (boolean) Verified or not
|
|
|
4142
4162
|
Examples:
|
|
4143
4163
|
> neurai-cli verifychain
|
|
4144
4164
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "verifychain", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4145
|
-
**/ verifychain:
|
|
4165
|
+
**/ verifychain: 'verifychain',
|
|
4146
4166
|
/** verifymessage "address" "signature" "message"
|
|
4147
4167
|
|
|
4148
4168
|
Verify a signed message
|
|
@@ -4168,7 +4188,7 @@ Verify the signature
|
|
|
4168
4188
|
|
|
4169
4189
|
As json rpc
|
|
4170
4190
|
> 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/
|
|
4171
|
-
**/ verifymessage:
|
|
4191
|
+
**/ verifymessage: 'verifymessage',
|
|
4172
4192
|
/** verifytxoutproof "proof"
|
|
4173
4193
|
|
|
4174
4194
|
Verifies that a proof points to a transaction in a block, returning the transaction it commits to
|
|
@@ -4179,7 +4199,7 @@ Arguments:
|
|
|
4179
4199
|
|
|
4180
4200
|
Result:
|
|
4181
4201
|
["txid"] (array, strings) The txid(s) which the proof commits to, or empty array if the proof is invalid
|
|
4182
|
-
**/ verifytxoutproof:
|
|
4202
|
+
**/ verifytxoutproof: 'verifytxoutproof',
|
|
4183
4203
|
/** viewallmessagechannels
|
|
4184
4204
|
|
|
4185
4205
|
View all message channels the wallet is subscribed to
|
|
@@ -4192,7 +4212,7 @@ Result:[
|
|
|
4192
4212
|
Examples:
|
|
4193
4213
|
> neurai-cli viewallmessagechannels
|
|
4194
4214
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewallmessagechannels", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4195
|
-
**/ viewallmessagechannels:
|
|
4215
|
+
**/ viewallmessagechannels: 'viewallmessagechannels',
|
|
4196
4216
|
/** viewallmessages
|
|
4197
4217
|
|
|
4198
4218
|
View all messages that the wallet contains
|
|
@@ -4209,7 +4229,7 @@ Result:
|
|
|
4209
4229
|
Examples:
|
|
4210
4230
|
> neurai-cli viewallmessages
|
|
4211
4231
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewallmessages", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4212
|
-
**/ viewallmessages:
|
|
4232
|
+
**/ viewallmessages: 'viewallmessages',
|
|
4213
4233
|
/** viewmyrestrictedaddresses
|
|
4214
4234
|
|
|
4215
4235
|
View all addresses this wallet owns that have been restricted
|
|
@@ -4225,7 +4245,7 @@ Result:
|
|
|
4225
4245
|
Examples:
|
|
4226
4246
|
> neurai-cli viewmyrestrictedaddresses
|
|
4227
4247
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewmyrestrictedaddresses", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4228
|
-
**/ viewmyrestrictedaddresses:
|
|
4248
|
+
**/ viewmyrestrictedaddresses: 'viewmyrestrictedaddresses',
|
|
4229
4249
|
/** viewmytaggedaddresses
|
|
4230
4250
|
|
|
4231
4251
|
View all addresses this wallet owns that have been tagged
|
|
@@ -4241,7 +4261,7 @@ Result:
|
|
|
4241
4261
|
Examples:
|
|
4242
4262
|
> neurai-cli viewmytaggedaddresses
|
|
4243
4263
|
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewmytaggedaddresses", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4244
|
-
**/ viewmytaggedaddresses:
|
|
4264
|
+
**/ viewmytaggedaddresses: 'viewmytaggedaddresses'
|
|
4245
4265
|
};
|
|
4246
4266
|
|
|
4247
4267
|
|
|
@@ -4293,7 +4313,7 @@ function $80bd448eb6ea085b$export$eb94c228b080d168(username, password, URL) {
|
|
|
4293
4313
|
originalError: e,
|
|
4294
4314
|
type: "ServerUnreachable",
|
|
4295
4315
|
error: "Could not communicate with Neurai core node",
|
|
4296
|
-
description: "Are you sure that the URL is correct? The URL is usually mainnet = http://127.0.0.1:
|
|
4316
|
+
description: "Are you sure that the URL is correct? The URL is usually mainnet = http://127.0.0.1:19001 and testnet = http://127.0.0.1:19101"
|
|
4297
4317
|
});
|
|
4298
4318
|
});
|
|
4299
4319
|
} catch (e) {
|