@neuraiproject/neurai-rpc 0.4.1 → 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/LICENSE +1 -1
- package/README.md +6 -5
- package/createDocs.mjs +2 -2
- package/dist/index.cjs +4525 -0
- package/dist/index.cjs.map +1 -0
- package/{neurai_methods.md → dist/index.mjs} +784 -845
- package/dist/index.mjs.map +1 -0
- package/dist/types.d.ts +178 -0
- package/dist/types.d.ts.map +1 -0
- package/docs.json +164 -163
- package/docs.ts +1729 -1015
- package/index.ts +2 -2
- package/package.json +3 -3
- package/test-getpubkey.js +149 -0
- package/test.js +56 -0
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
<br> <br/>
|
|
4
|
-
## abandontransaction
|
|
5
|
-
<br/> abandontransaction "txid"
|
|
1
|
+
const $ebb7c8e52e3397d2$export$e13b82b2b0368a6a = {
|
|
2
|
+
/** abandontransaction "txid"
|
|
6
3
|
|
|
7
4
|
Mark in-wallet transaction <txid> as abandoned
|
|
8
5
|
This will mark this transaction and all its in-wallet descendants as abandoned which will allow
|
|
@@ -17,11 +14,9 @@ Result:
|
|
|
17
14
|
|
|
18
15
|
Examples:
|
|
19
16
|
> neurai-cli abandontransaction "1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"
|
|
20
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "abandontransaction", "params": ["1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
## abortrescan
|
|
24
|
-
<br/> abortrescan
|
|
17
|
+
> 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/
|
|
18
|
+
**/ abandontransaction: 'abandontransaction',
|
|
19
|
+
/** abortrescan
|
|
25
20
|
|
|
26
21
|
Stops current wallet rescan triggered e.g. by an importprivkey call.
|
|
27
22
|
|
|
@@ -34,11 +29,9 @@ Abort the running wallet rescan
|
|
|
34
29
|
> neurai-cli abortrescan
|
|
35
30
|
|
|
36
31
|
As a JSON-RPC call
|
|
37
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "abortrescan", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
## addmultisigaddress
|
|
41
|
-
<br/> addmultisigaddress nrequired ["key",...] ( "account" )
|
|
32
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "abortrescan", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
33
|
+
**/ abortrescan: 'abortrescan',
|
|
34
|
+
/** addmultisigaddress nrequired ["key",...] ( "account" )
|
|
42
35
|
|
|
43
36
|
Add a nrequired-to-sign multisignature address to the wallet.
|
|
44
37
|
Each key is a Neurai address or hex-encoded public key.
|
|
@@ -62,11 +55,9 @@ Add a multisig address from 2 addresses
|
|
|
62
55
|
> neurai-cli addmultisigaddress 2 "[\"16sSauSf5pF2UkUwvKGq4qjNRzBZYqgEL5\",\"171sgjn4YtPu27adkKGrdDwzRTxnRkBfKV\"]"
|
|
63
56
|
|
|
64
57
|
As json rpc call
|
|
65
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "addmultisigaddress", "params": [2, "[\"16sSauSf5pF2UkUwvKGq4qjNRzBZYqgEL5\",\"171sgjn4YtPu27adkKGrdDwzRTxnRkBfKV\"]"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
## addnode
|
|
69
|
-
<br/> addnode "node" "add|remove|onetry"
|
|
58
|
+
> 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/
|
|
59
|
+
**/ addmultisigaddress: 'addmultisigaddress',
|
|
60
|
+
/** addnode "node" "add|remove|onetry"
|
|
70
61
|
|
|
71
62
|
Attempts to add or remove a node from the addnode list.
|
|
72
63
|
Or try a connection to a node once.
|
|
@@ -79,11 +70,9 @@ Arguments:
|
|
|
79
70
|
|
|
80
71
|
Examples:
|
|
81
72
|
> neurai-cli addnode "192.168.0.6:8767" "onetry"
|
|
82
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "addnode", "params": ["192.168.0.6:8767", "onetry"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
## addtagtoaddress
|
|
86
|
-
<br/> addtagtoaddress tag_name to_address (change_address) (asset_data)
|
|
73
|
+
> 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/
|
|
74
|
+
**/ addnode: 'addnode',
|
|
75
|
+
/** addtagtoaddress tag_name to_address (change_address) (asset_data)
|
|
87
76
|
|
|
88
77
|
Assign a tag to a address
|
|
89
78
|
|
|
@@ -98,13 +87,11 @@ Result:
|
|
|
98
87
|
|
|
99
88
|
Examples:
|
|
100
89
|
> neurai-cli addtagtoaddress "#TAG" "to_address"
|
|
101
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "addtagtoaddress", "params": ["#TAG" "to_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
90
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "addtagtoaddress", "params": ["#TAG" "to_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
102
91
|
> neurai-cli addtagtoaddress "#TAG" "to_address" "change_address"
|
|
103
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "addtagtoaddress", "params": ["#TAG" "to_address" "change_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
## addwitnessaddress
|
|
107
|
-
<br/> addwitnessaddress "address"
|
|
92
|
+
> 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/
|
|
93
|
+
**/ addtagtoaddress: 'addtagtoaddress',
|
|
94
|
+
/** addwitnessaddress "address"
|
|
108
95
|
|
|
109
96
|
Add a witness address for a script (with pubkey or redeemscript known).
|
|
110
97
|
It returns the witness script.
|
|
@@ -115,10 +102,8 @@ Arguments:
|
|
|
115
102
|
Result:
|
|
116
103
|
"witnessaddress", (string) The value of the new address (P2SH of witness script).
|
|
117
104
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
## backupwallet
|
|
121
|
-
<br/> backupwallet "destination"
|
|
105
|
+
**/ addwitnessaddress: 'addwitnessaddress',
|
|
106
|
+
/** backupwallet "destination"
|
|
122
107
|
|
|
123
108
|
Safely copies current wallet file to destination, which can be a directory or a path with filename.
|
|
124
109
|
|
|
@@ -127,14 +112,10 @@ Arguments:
|
|
|
127
112
|
|
|
128
113
|
Examples:
|
|
129
114
|
> neurai-cli backupwallet "backup.dat"
|
|
130
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "backupwallet", "params": ["backup.dat"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
<br/> bumpfee has been deprecated on the XNA Wallet.
|
|
135
|
-
<br> <br/>
|
|
136
|
-
## cancelsnapshotrequest
|
|
137
|
-
<br/> cancelsnapshotrequest "asset_name" block_height
|
|
115
|
+
> 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/
|
|
116
|
+
**/ backupwallet: 'backupwallet',
|
|
117
|
+
/** bumpfee has been deprecated on the XNA Wallet.**/ bumpfee: 'bumpfee',
|
|
118
|
+
/** cancelsnapshotrequest "asset_name" block_height
|
|
138
119
|
|
|
139
120
|
Cancels the specified snapshot request.
|
|
140
121
|
|
|
@@ -149,11 +130,9 @@ Result:
|
|
|
149
130
|
|
|
150
131
|
Examples:
|
|
151
132
|
> neurai-cli cancelsnapshotrequest "TRONCO" 12345
|
|
152
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "cancelsnapshotrequest", "params": ["PHATSTACKS" 34987] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
## checkaddressrestriction
|
|
156
|
-
<br/> checkaddressrestriction address restricted_name
|
|
133
|
+
> 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/
|
|
134
|
+
**/ cancelsnapshotrequest: 'cancelsnapshotrequest',
|
|
135
|
+
/** checkaddressrestriction address restricted_name
|
|
157
136
|
|
|
158
137
|
Checks to see if an address has been frozen by the given restricted asset
|
|
159
138
|
|
|
@@ -166,11 +145,9 @@ Result:
|
|
|
166
145
|
|
|
167
146
|
Examples:
|
|
168
147
|
> neurai-cli checkaddressrestriction "address" "restricted_name"
|
|
169
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "checkaddressrestriction", "params": ["address" "restricted_name"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
## checkaddresstag
|
|
173
|
-
<br/> checkaddresstag address tag_name
|
|
148
|
+
> 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/
|
|
149
|
+
**/ checkaddressrestriction: 'checkaddressrestriction',
|
|
150
|
+
/** checkaddresstag address tag_name
|
|
174
151
|
|
|
175
152
|
Checks to see if an address has the given tag
|
|
176
153
|
|
|
@@ -183,11 +160,9 @@ Result:
|
|
|
183
160
|
|
|
184
161
|
Examples:
|
|
185
162
|
> neurai-cli checkaddresstag "address" "tag_name"
|
|
186
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "checkaddresstag", "params": ["address" "tag_name"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
## checkglobalrestriction
|
|
190
|
-
<br/> checkglobalrestriction restricted_name
|
|
163
|
+
> 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/
|
|
164
|
+
**/ checkaddresstag: 'checkaddresstag',
|
|
165
|
+
/** checkglobalrestriction restricted_name
|
|
191
166
|
|
|
192
167
|
Checks to see if a restricted asset is globally frozen
|
|
193
168
|
|
|
@@ -199,31 +174,25 @@ Result:
|
|
|
199
174
|
|
|
200
175
|
Examples:
|
|
201
176
|
> neurai-cli checkglobalrestriction "restricted_name"
|
|
202
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "checkglobalrestriction", "params": ["restricted_name"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
## clearbanned
|
|
206
|
-
<br/> clearbanned
|
|
177
|
+
> 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/
|
|
178
|
+
**/ checkglobalrestriction: 'checkglobalrestriction',
|
|
179
|
+
/** clearbanned
|
|
207
180
|
|
|
208
181
|
Clear all banned IPs.
|
|
209
182
|
|
|
210
183
|
Examples:
|
|
211
184
|
> neurai-cli clearbanned
|
|
212
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearbanned", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
## clearmempool
|
|
216
|
-
<br/> clearmempool
|
|
185
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearbanned", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
186
|
+
**/ clearbanned: 'clearbanned',
|
|
187
|
+
/** clearmempool
|
|
217
188
|
|
|
218
189
|
Removes all transaction from the mempool
|
|
219
190
|
|
|
220
191
|
Examples:
|
|
221
192
|
> neurai-cli clearmempool
|
|
222
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearmempool", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
## clearmessages
|
|
226
|
-
<br/> clearmessages
|
|
193
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearmempool", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
194
|
+
**/ clearmempool: 'clearmempool',
|
|
195
|
+
/** clearmessages
|
|
227
196
|
|
|
228
197
|
Delete current database of messages
|
|
229
198
|
|
|
@@ -233,11 +202,9 @@ Result:[
|
|
|
233
202
|
|
|
234
203
|
Examples:
|
|
235
204
|
> neurai-cli clearmessages
|
|
236
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearmessages", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
## combinerawtransaction
|
|
240
|
-
<br/> combinerawtransaction ["hexstring",...]
|
|
205
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearmessages", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
206
|
+
**/ clearmessages: 'clearmessages',
|
|
207
|
+
/** combinerawtransaction ["hexstring",...]
|
|
241
208
|
|
|
242
209
|
Combine multiple partially signed transactions into one transaction.
|
|
243
210
|
The combined transaction may be another partially signed transaction or a
|
|
@@ -254,10 +221,8 @@ Result:
|
|
|
254
221
|
|
|
255
222
|
Examples:
|
|
256
223
|
> neurai-cli combinerawtransaction ["myhex1", "myhex2", "myhex3"]
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
## createmultisig
|
|
260
|
-
<br/> createmultisig nrequired ["key",...]
|
|
224
|
+
**/ combinerawtransaction: 'combinerawtransaction',
|
|
225
|
+
/** createmultisig nrequired ["key",...]
|
|
261
226
|
|
|
262
227
|
Creates a multi-signature address with n signature of m keys required.
|
|
263
228
|
It returns a json object with the address and redeemScript.
|
|
@@ -282,11 +247,9 @@ Create a multisig address from 2 addresses
|
|
|
282
247
|
> neurai-cli createmultisig 2 "[\"16sSauSf5pF2UkUwvKGq4qjNRzBZYqgEL5\",\"171sgjn4YtPu27adkKGrdDwzRTxnRkBfKV\"]"
|
|
283
248
|
|
|
284
249
|
As a json rpc call
|
|
285
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "createmultisig", "params": [2, "[\"16sSauSf5pF2UkUwvKGq4qjNRzBZYqgEL5\",\"171sgjn4YtPu27adkKGrdDwzRTxnRkBfKV\"]"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
## createrawtransaction
|
|
289
|
-
<br/> createrawtransaction [{"txid":"id","vout":n},...] {"address":(amount or object),"data":"hex",...}
|
|
250
|
+
> 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/
|
|
251
|
+
**/ createmultisig: 'createmultisig',
|
|
252
|
+
/** createrawtransaction [{"txid":"id","vout":n},...] {"address":(amount or object),"data":"hex",...}
|
|
290
253
|
( locktime ) ( replaceable )
|
|
291
254
|
|
|
292
255
|
Create a transaction spending the given inputs and creating new outputs.
|
|
@@ -529,11 +492,9 @@ Examples:
|
|
|
529
492
|
> neurai-cli createrawtransaction "[{\"txid\":\"mycoin\",\"vout\":0},{\"txid\":\"myasset\",\"vout\":0}]" "{\"address\":{\"transfer\":{\"MYASSET\":50}}}"
|
|
530
493
|
> neurai-cli createrawtransaction "[{\"txid\":\"mycoin\",\"vout\":0},{\"txid\":\"myasset\",\"vout\":0}]" "{\"address\":{\"transferwithmessage\":{\"MYASSET\":50,\"message\":\"hash\",\"expire_time\": utc_time}}}"
|
|
531
494
|
> neurai-cli createrawtransaction "[{\"txid\":\"mycoin\",\"vout\":0},{\"txid\":\"myownership\",\"vout\":0}]" "{\"issuer_address\":{\"reissue\":{\"asset_name\":\"MYASSET\",\"asset_quantity\":2000000}}}"
|
|
532
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "createrawtransaction", "params": ["[{\"txid\":\"mycoin\",\"vout\":0}]", "{\"data\":\"00010203\"}"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
## decodeblock
|
|
536
|
-
<br/> decodeblock "blockhex"
|
|
495
|
+
> 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/
|
|
496
|
+
**/ createrawtransaction: 'createrawtransaction',
|
|
497
|
+
/** decodeblock "blockhex"
|
|
537
498
|
|
|
538
499
|
Arguments:
|
|
539
500
|
1. "blockhex" (string, required) The block hex
|
|
@@ -559,11 +520,9 @@ Result:
|
|
|
559
520
|
|
|
560
521
|
Examples:
|
|
561
522
|
> neurai-cli decodeblock "xxxx"
|
|
562
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "decodeblock", "params": ["xxxx"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
## decoderawtransaction
|
|
566
|
-
<br/> decoderawtransaction "hexstring"
|
|
523
|
+
> 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/
|
|
524
|
+
**/ decodeblock: 'decodeblock',
|
|
525
|
+
/** decoderawtransaction "hexstring"
|
|
567
526
|
|
|
568
527
|
Return a JSON object representing the serialized, hex-encoded transaction.
|
|
569
528
|
|
|
@@ -617,11 +576,9 @@ Result:
|
|
|
617
576
|
|
|
618
577
|
Examples:
|
|
619
578
|
> neurai-cli decoderawtransaction "hexstring"
|
|
620
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "decoderawtransaction", "params": ["hexstring"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
## decodescript
|
|
624
|
-
<br/> decodescript "hexstring"
|
|
579
|
+
> 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/
|
|
580
|
+
**/ decoderawtransaction: 'decoderawtransaction',
|
|
581
|
+
/** decodescript "hexstring"
|
|
625
582
|
|
|
626
583
|
Decode a hex-encoded script.
|
|
627
584
|
|
|
@@ -656,11 +613,9 @@ Result:
|
|
|
656
613
|
|
|
657
614
|
Examples:
|
|
658
615
|
> neurai-cli decodescript "hexstring"
|
|
659
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "decodescript", "params": ["hexstring"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
## disconnectnode
|
|
663
|
-
<br/> disconnectnode "[address]" [nodeid]
|
|
616
|
+
> 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/
|
|
617
|
+
**/ decodescript: 'decodescript',
|
|
618
|
+
/** disconnectnode "[address]" [nodeid]
|
|
664
619
|
|
|
665
620
|
Immediately disconnects from the specified peer node.
|
|
666
621
|
|
|
@@ -675,12 +630,10 @@ Arguments:
|
|
|
675
630
|
Examples:
|
|
676
631
|
> neurai-cli disconnectnode "192.168.0.6:8767"
|
|
677
632
|
> neurai-cli disconnectnode "" 1
|
|
678
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "disconnectnode", "params": ["192.168.0.6:8767"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
679
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "disconnectnode", "params": ["", 1] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
## distributereward
|
|
683
|
-
<br/> distributereward "asset_name" snapshot_height "distribution_asset_name" gross_distribution_amount ( "exception_addresses" ) ("change_address") ("dry_run")
|
|
633
|
+
> 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/
|
|
634
|
+
> 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/
|
|
635
|
+
**/ disconnectnode: 'disconnectnode',
|
|
636
|
+
/** distributereward "asset_name" snapshot_height "distribution_asset_name" gross_distribution_amount ( "exception_addresses" ) ("change_address") ("dry_run")
|
|
684
637
|
|
|
685
638
|
Splits the specified amount of the distribution asset to all owners of asset_name that are not in the optional exclusion_addresses
|
|
686
639
|
|
|
@@ -713,12 +666,10 @@ Result:
|
|
|
713
666
|
Examples:
|
|
714
667
|
> neurai-cli distributereward "TRONCO" 12345 "XNA" 1000
|
|
715
668
|
> neurai-cli distributereward "PHATSTACKS" 12345 "DIVIDENDS" 1000 "mwN7xC3yomYdvJuVXkVC7ymY9wNBjWNduD,n4Rf18edydDaRBh7t6gHUbuByLbWEoWUTg"
|
|
716
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "distributereward", "params": ["TRONCO" 34987 "DIVIDENDS" 100000] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
717
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "distributereward", "params": ["PHATSTACKS" 34987 "XNA" 100000 "mwN7xC3yomYdvJuVXkVC7ymY9wNBjWNduD,n4Rf18edydDaRBh7t6gHUbuByLbWEoWUTg"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
## dumpprivkey
|
|
721
|
-
<br/> dumpprivkey "address"
|
|
669
|
+
> 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/
|
|
670
|
+
> 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/
|
|
671
|
+
**/ distributereward: 'distributereward',
|
|
672
|
+
/** dumpprivkey "address"
|
|
722
673
|
|
|
723
674
|
Reveals the private key corresponding to 'address'.
|
|
724
675
|
Then the importprivkey can be used with this output
|
|
@@ -732,11 +683,9 @@ Result:
|
|
|
732
683
|
Examples:
|
|
733
684
|
> neurai-cli dumpprivkey "myaddress"
|
|
734
685
|
> neurai-cli importprivkey "mykey"
|
|
735
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "dumpprivkey", "params": ["myaddress"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
## dumpwallet
|
|
739
|
-
<br/> dumpwallet "filename"
|
|
686
|
+
> 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/
|
|
687
|
+
**/ dumpprivkey: 'dumpprivkey',
|
|
688
|
+
/** dumpwallet "filename"
|
|
740
689
|
|
|
741
690
|
Dumps all wallet keys in a human-readable format to a server-side file. This does not allow overwriting existing files.
|
|
742
691
|
|
|
@@ -750,11 +699,9 @@ Result:
|
|
|
750
699
|
|
|
751
700
|
Examples:
|
|
752
701
|
> neurai-cli dumpwallet "test"
|
|
753
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "dumpwallet", "params": ["test"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
## encryptwallet
|
|
757
|
-
<br/> encryptwallet "passphrase"
|
|
702
|
+
> 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/
|
|
703
|
+
**/ dumpwallet: 'dumpwallet',
|
|
704
|
+
/** encryptwallet "passphrase"
|
|
758
705
|
|
|
759
706
|
Encrypts the wallet with 'passphrase'. This is for first time encryption.
|
|
760
707
|
After this, any calls that interact with private keys such as sending or signing
|
|
@@ -781,11 +728,9 @@ Now lock the wallet again by removing the passphrase
|
|
|
781
728
|
> neurai-cli walletlock
|
|
782
729
|
|
|
783
730
|
As a json rpc call
|
|
784
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "encryptwallet", "params": ["my pass phrase"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
## estimatefee
|
|
788
|
-
<br/> estimatefee nblocks
|
|
731
|
+
> 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/
|
|
732
|
+
**/ encryptwallet: 'encryptwallet',
|
|
733
|
+
/** estimatefee nblocks
|
|
789
734
|
|
|
790
735
|
DEPRECATED. Please use estimatesmartfee for more intelligent estimates.
|
|
791
736
|
Estimates the approximate fee per kilobyte needed for a transaction to begin
|
|
@@ -805,10 +750,8 @@ a fee that is high enough to get reliably included in the next block.
|
|
|
805
750
|
|
|
806
751
|
Example:
|
|
807
752
|
> neurai-cli estimatefee 6
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
## estimatesmartfee
|
|
811
|
-
<br/> estimatesmartfee conf_target ("estimate_mode")
|
|
753
|
+
**/ estimatefee: 'estimatefee',
|
|
754
|
+
/** estimatesmartfee conf_target ("estimate_mode")
|
|
812
755
|
|
|
813
756
|
Estimates the approximate fee per kilobyte needed for a transaction to begin
|
|
814
757
|
confirmation within conf_target blocks if possible and return the number of blocks
|
|
@@ -841,10 +784,8 @@ have been observed to make an estimate for any number of blocks.
|
|
|
841
784
|
|
|
842
785
|
Example:
|
|
843
786
|
> neurai-cli estimatesmartfee 6
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
## freezeaddress
|
|
847
|
-
<br/> freezeaddress asset_name address (change_address) (asset_data)
|
|
787
|
+
**/ estimatesmartfee: 'estimatesmartfee',
|
|
788
|
+
/** freezeaddress asset_name address (change_address) (asset_data)
|
|
848
789
|
|
|
849
790
|
Freeze an address from transferring a restricted asset
|
|
850
791
|
|
|
@@ -859,13 +800,11 @@ Result:
|
|
|
859
800
|
|
|
860
801
|
Examples:
|
|
861
802
|
> neurai-cli freezeaddress "$RESTRICTED_ASSET" "address"
|
|
862
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "freezeaddress", "params": ["$RESTRICTED_ASSET" "address"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
803
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "freezeaddress", "params": ["$RESTRICTED_ASSET" "address"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
863
804
|
> neurai-cli freezeaddress "$RESTRICTED_ASSET" "address" "change_address"
|
|
864
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "freezeaddress", "params": ["$RESTRICTED_ASSET" "address" "change_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
## freezerestrictedasset
|
|
868
|
-
<br/> freezerestrictedasset asset_name (change_address) (asset_data)
|
|
805
|
+
> 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/
|
|
806
|
+
**/ freezeaddress: 'freezeaddress',
|
|
807
|
+
/** freezerestrictedasset asset_name (change_address) (asset_data)
|
|
869
808
|
|
|
870
809
|
Freeze all trading for a specific restricted asset
|
|
871
810
|
|
|
@@ -879,13 +818,11 @@ Result:
|
|
|
879
818
|
|
|
880
819
|
Examples:
|
|
881
820
|
> neurai-cli freezerestrictedasset "$RESTRICTED_ASSET"
|
|
882
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "freezerestrictedasset", "params": ["$RESTRICTED_ASSET"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
821
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "freezerestrictedasset", "params": ["$RESTRICTED_ASSET"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
883
822
|
> neurai-cli freezerestrictedasset "$RESTRICTED_ASSET" "change_address"
|
|
884
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "freezerestrictedasset", "params": ["$RESTRICTED_ASSET" "change_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
## fundrawtransaction
|
|
888
|
-
<br/> fundrawtransaction "hexstring" ( options )
|
|
823
|
+
> 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/
|
|
824
|
+
**/ freezerestrictedasset: 'freezerestrictedasset',
|
|
825
|
+
/** fundrawtransaction "hexstring" ( options )
|
|
889
826
|
|
|
890
827
|
Add inputs to a transaction until it has enough in value to meet its out value.
|
|
891
828
|
This will not modify existing inputs, and will add at most one change output to the outputs.
|
|
@@ -942,10 +879,8 @@ Sign the transaction
|
|
|
942
879
|
|
|
943
880
|
Send the transaction
|
|
944
881
|
> neurai-cli sendrawtransaction "signedtransactionhex"
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
## generate
|
|
948
|
-
<br/> generate nblocks ( maxtries )
|
|
882
|
+
**/ fundrawtransaction: 'fundrawtransaction',
|
|
883
|
+
/** generate nblocks ( maxtries )
|
|
949
884
|
|
|
950
885
|
Mine up to nblocks blocks immediately (before the RPC call returns) to an address in the wallet.
|
|
951
886
|
|
|
@@ -960,10 +895,8 @@ Examples:
|
|
|
960
895
|
|
|
961
896
|
Generate 11 blocks
|
|
962
897
|
> neurai-cli generate 11
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
## generatetoaddress
|
|
966
|
-
<br/> generatetoaddress nblocks address (maxtries)
|
|
898
|
+
**/ generate: 'generate',
|
|
899
|
+
/** generatetoaddress nblocks address (maxtries)
|
|
967
900
|
|
|
968
901
|
Mine blocks immediately to a specified address (before the RPC call returns)
|
|
969
902
|
|
|
@@ -979,10 +912,8 @@ Examples:
|
|
|
979
912
|
|
|
980
913
|
Generate 11 blocks to myaddress
|
|
981
914
|
> neurai-cli generatetoaddress 11 "myaddress"
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
## getaccount
|
|
985
|
-
<br/> getaccount "address"
|
|
915
|
+
**/ generatetoaddress: 'generatetoaddress',
|
|
916
|
+
/** getaccount "address"
|
|
986
917
|
|
|
987
918
|
DEPRECATED. Returns the account associated with the given address.
|
|
988
919
|
|
|
@@ -994,11 +925,9 @@ Result:
|
|
|
994
925
|
|
|
995
926
|
Examples:
|
|
996
927
|
> neurai-cli getaccount "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX"
|
|
997
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaccount", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
## getaccountaddress
|
|
1001
|
-
<br/> getaccountaddress "account"
|
|
928
|
+
> 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/
|
|
929
|
+
**/ getaccount: 'getaccount',
|
|
930
|
+
/** getaccountaddress "account"
|
|
1002
931
|
|
|
1003
932
|
DEPRECATED. Returns the current Neurai address for receiving payments to this account.
|
|
1004
933
|
|
|
@@ -1012,11 +941,9 @@ Examples:
|
|
|
1012
941
|
> neurai-cli getaccountaddress
|
|
1013
942
|
> neurai-cli getaccountaddress ""
|
|
1014
943
|
> neurai-cli getaccountaddress "myaccount"
|
|
1015
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaccountaddress", "params": ["myaccount"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
## getaddednodeinfo
|
|
1019
|
-
<br/> getaddednodeinfo ( "node" )
|
|
944
|
+
> 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/
|
|
945
|
+
**/ getaccountaddress: 'getaccountaddress',
|
|
946
|
+
/** getaddednodeinfo ( "node" )
|
|
1020
947
|
|
|
1021
948
|
Returns information about the given added node, or all added nodes
|
|
1022
949
|
(note that onetry addnodes are not listed here)
|
|
@@ -1041,11 +968,9 @@ Result:
|
|
|
1041
968
|
|
|
1042
969
|
Examples:
|
|
1043
970
|
> neurai-cli getaddednodeinfo "192.168.0.201"
|
|
1044
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddednodeinfo", "params": ["192.168.0.201"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
## getaddressbalance
|
|
1048
|
-
<br/> getaddressbalance
|
|
971
|
+
> 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/
|
|
972
|
+
**/ getaddednodeinfo: 'getaddednodeinfo',
|
|
973
|
+
/** getaddressbalance
|
|
1049
974
|
|
|
1050
975
|
Returns the balance for an address(es) (requires addressindex to be enabled).
|
|
1051
976
|
|
|
@@ -1077,12 +1002,10 @@ OR
|
|
|
1077
1002
|
Examples:
|
|
1078
1003
|
> neurai-cli getaddressbalance '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}'
|
|
1079
1004
|
> neurai-cli getaddressbalance '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}', true
|
|
1080
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressbalance", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1081
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressbalance", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}, true] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
## getaddressdeltas
|
|
1085
|
-
<br/> getaddressdeltas
|
|
1005
|
+
> 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/
|
|
1006
|
+
> 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/
|
|
1007
|
+
**/ getaddressbalance: 'getaddressbalance',
|
|
1008
|
+
/** getaddressdeltas
|
|
1086
1009
|
|
|
1087
1010
|
Returns all changes for an address (requires addressindex to be enabled).
|
|
1088
1011
|
|
|
@@ -1113,13 +1036,11 @@ Result:
|
|
|
1113
1036
|
|
|
1114
1037
|
Examples:
|
|
1115
1038
|
> neurai-cli getaddressdeltas '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}'
|
|
1116
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressdeltas", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1039
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressdeltas", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1117
1040
|
> neurai-cli getaddressdeltas '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"],"assetName":"MY_ASSET"}'
|
|
1118
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressdeltas", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"],"assetName":"MY_ASSET"}] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
## getaddressesbyaccount
|
|
1122
|
-
<br/> getaddressesbyaccount "account"
|
|
1041
|
+
> 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/
|
|
1042
|
+
**/ getaddressdeltas: 'getaddressdeltas',
|
|
1043
|
+
/** getaddressesbyaccount "account"
|
|
1123
1044
|
|
|
1124
1045
|
DEPRECATED. Returns the list of addresses for the given account.
|
|
1125
1046
|
|
|
@@ -1134,11 +1055,9 @@ Result:
|
|
|
1134
1055
|
|
|
1135
1056
|
Examples:
|
|
1136
1057
|
> neurai-cli getaddressesbyaccount "tabby"
|
|
1137
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressesbyaccount", "params": ["tabby"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
## getaddressmempool
|
|
1141
|
-
<br/> getaddressmempool
|
|
1058
|
+
> 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/
|
|
1059
|
+
**/ getaddressesbyaccount: 'getaddressesbyaccount',
|
|
1060
|
+
/** getaddressmempool
|
|
1142
1061
|
|
|
1143
1062
|
Returns all mempool deltas for an address (requires addressindex to be enabled).
|
|
1144
1063
|
|
|
@@ -1168,13 +1087,11 @@ Result:
|
|
|
1168
1087
|
|
|
1169
1088
|
Examples:
|
|
1170
1089
|
> neurai-cli getaddressmempool '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}'
|
|
1171
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressmempool", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1090
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressmempool", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1172
1091
|
> neurai-cli getaddressmempool '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}', true
|
|
1173
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressmempool", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}, true] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
## getaddresstxids
|
|
1177
|
-
<br/> getaddresstxids
|
|
1092
|
+
> 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/
|
|
1093
|
+
**/ getaddressmempool: 'getaddressmempool',
|
|
1094
|
+
/** getaddresstxids
|
|
1178
1095
|
|
|
1179
1096
|
Returns the txids for an address(es) (requires addressindex to be enabled).
|
|
1180
1097
|
|
|
@@ -1198,13 +1115,11 @@ Result:
|
|
|
1198
1115
|
|
|
1199
1116
|
Examples:
|
|
1200
1117
|
> neurai-cli getaddresstxids '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}'
|
|
1201
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddresstxids", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1118
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddresstxids", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1202
1119
|
> neurai-cli getaddresstxids '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}', true
|
|
1203
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddresstxids", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}, true] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
## getaddressutxos
|
|
1207
|
-
<br/> getaddressutxos
|
|
1120
|
+
> 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/
|
|
1121
|
+
**/ getaddresstxids: 'getaddresstxids',
|
|
1122
|
+
/** getaddressutxos
|
|
1208
1123
|
|
|
1209
1124
|
Returns all unspent outputs for an address (requires addressindex to be enabled).
|
|
1210
1125
|
|
|
@@ -1234,13 +1149,11 @@ Result
|
|
|
1234
1149
|
|
|
1235
1150
|
Examples:
|
|
1236
1151
|
> neurai-cli getaddressutxos '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}'
|
|
1237
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressutxos", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1152
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressutxos", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1238
1153
|
> neurai-cli getaddressutxos '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"],"assetName":"MY_ASSET"}'
|
|
1239
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressutxos", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"],"assetName":"MY_ASSET"}] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
## getassetdata
|
|
1243
|
-
<br/> getassetdata "asset_name"
|
|
1154
|
+
> 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/
|
|
1155
|
+
**/ getaddressutxos: 'getaddressutxos',
|
|
1156
|
+
/** getassetdata "asset_name"
|
|
1244
1157
|
|
|
1245
1158
|
Returns assets metadata if that asset exists
|
|
1246
1159
|
|
|
@@ -1261,11 +1174,9 @@ Result:
|
|
|
1261
1174
|
|
|
1262
1175
|
Examples:
|
|
1263
1176
|
> neurai-cli getassetdata "ASSET_NAME"
|
|
1264
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getassetdata", "params": ["ASSET_NAME"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
## getbalance
|
|
1268
|
-
<br/> getbalance ( "account" minconf include_watchonly )
|
|
1177
|
+
> 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/
|
|
1178
|
+
**/ getassetdata: 'getassetdata',
|
|
1179
|
+
/** getbalance ( "account" minconf include_watchonly )
|
|
1269
1180
|
|
|
1270
1181
|
If account is not specified, returns the server's total available balance.
|
|
1271
1182
|
If account is specified (DEPRECATED), returns the balance in the account.
|
|
@@ -1300,11 +1211,9 @@ The total amount in the wallet at least 6 blocks confirmed
|
|
|
1300
1211
|
> neurai-cli getbalance "*" 6
|
|
1301
1212
|
|
|
1302
1213
|
As a json rpc call
|
|
1303
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getbalance", "params": ["*", 6] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
## getbestblockhash
|
|
1307
|
-
<br/> getbestblockhash
|
|
1214
|
+
> 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/
|
|
1215
|
+
**/ getbalance: 'getbalance',
|
|
1216
|
+
/** getbestblockhash
|
|
1308
1217
|
|
|
1309
1218
|
Returns the hash of the best (tip) block in the longest blockchain.
|
|
1310
1219
|
|
|
@@ -1313,11 +1222,9 @@ Result:
|
|
|
1313
1222
|
|
|
1314
1223
|
Examples:
|
|
1315
1224
|
> neurai-cli getbestblockhash
|
|
1316
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getbestblockhash", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
## getblock
|
|
1320
|
-
<br/> getblock "blockhash" ( verbosity )
|
|
1225
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getbestblockhash", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1226
|
+
**/ getbestblockhash: 'getbestblockhash',
|
|
1227
|
+
/** getblock "blockhash" ( verbosity )
|
|
1321
1228
|
|
|
1322
1229
|
If verbosity is 0, returns a string that is serialized, hex-encoded data for block 'hash'.
|
|
1323
1230
|
If verbosity is 1, returns an Object with information about block <hash>.
|
|
@@ -1366,11 +1273,9 @@ Result (for verbosity = 2):
|
|
|
1366
1273
|
|
|
1367
1274
|
Examples:
|
|
1368
1275
|
> neurai-cli getblock "00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"
|
|
1369
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblock", "params": ["00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
## getblockchaininfo
|
|
1373
|
-
<br/> getblockchaininfo
|
|
1276
|
+
> 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/
|
|
1277
|
+
**/ getblock: 'getblock',
|
|
1278
|
+
/** getblockchaininfo
|
|
1374
1279
|
Returns an object containing various state info regarding blockchain processing.
|
|
1375
1280
|
|
|
1376
1281
|
Result:
|
|
@@ -1418,11 +1323,9 @@ Result:
|
|
|
1418
1323
|
|
|
1419
1324
|
Examples:
|
|
1420
1325
|
> neurai-cli getblockchaininfo
|
|
1421
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockchaininfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
## getblockcount
|
|
1425
|
-
<br/> getblockcount
|
|
1326
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockchaininfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1327
|
+
**/ getblockchaininfo: 'getblockchaininfo',
|
|
1328
|
+
/** getblockcount
|
|
1426
1329
|
|
|
1427
1330
|
Returns the number of blocks in the longest blockchain.
|
|
1428
1331
|
|
|
@@ -1431,11 +1334,9 @@ n (numeric) The current block count
|
|
|
1431
1334
|
|
|
1432
1335
|
Examples:
|
|
1433
1336
|
> neurai-cli getblockcount
|
|
1434
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockcount", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
## getblockhash
|
|
1438
|
-
<br/> getblockhash height
|
|
1337
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockcount", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1338
|
+
**/ getblockcount: 'getblockcount',
|
|
1339
|
+
/** getblockhash height
|
|
1439
1340
|
|
|
1440
1341
|
Returns hash of block in best-block-chain at height provided.
|
|
1441
1342
|
|
|
@@ -1447,11 +1348,9 @@ Result:
|
|
|
1447
1348
|
|
|
1448
1349
|
Examples:
|
|
1449
1350
|
> neurai-cli getblockhash 1000
|
|
1450
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockhash", "params": [1000] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
## getblockhashes
|
|
1454
|
-
<br/> getblockhashes timestamp
|
|
1351
|
+
> 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/
|
|
1352
|
+
**/ getblockhash: 'getblockhash',
|
|
1353
|
+
/** getblockhashes timestamp
|
|
1455
1354
|
|
|
1456
1355
|
Returns array of hashes of blocks within the timestamp range provided.
|
|
1457
1356
|
|
|
@@ -1477,12 +1376,10 @@ Result:
|
|
|
1477
1376
|
|
|
1478
1377
|
Examples:
|
|
1479
1378
|
> neurai-cli getblockhashes 1231614698 1231024505
|
|
1480
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockhashes", "params": [1231614698, 1231024505] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1379
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockhashes", "params": [1231614698, 1231024505] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1481
1380
|
> neurai-cli getblockhashes 1231614698 1231024505 '{"noOrphans":false, "logicalTimes":true}'
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
## getblockheader
|
|
1485
|
-
<br/> getblockheader "hash" ( verbose )
|
|
1381
|
+
**/ getblockhashes: 'getblockhashes',
|
|
1382
|
+
/** getblockheader "hash" ( verbose )
|
|
1486
1383
|
|
|
1487
1384
|
If verbose is false, returns a string that is serialized, hex-encoded data for blockheader 'hash'.
|
|
1488
1385
|
If verbose is true, returns an Object with information about blockheader <hash>.
|
|
@@ -1514,11 +1411,9 @@ Result (for verbose=false):
|
|
|
1514
1411
|
|
|
1515
1412
|
Examples:
|
|
1516
1413
|
> neurai-cli getblockheader "00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"
|
|
1517
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockheader", "params": ["00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
## getblocktemplate
|
|
1521
|
-
<br/> getblocktemplate ( TemplateRequest )
|
|
1414
|
+
> 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/
|
|
1415
|
+
**/ getblockheader: 'getblockheader',
|
|
1416
|
+
/** getblocktemplate ( TemplateRequest )
|
|
1522
1417
|
|
|
1523
1418
|
If the request parameters include a 'mode' key, that is used to explicitly select between the default 'template' request or a 'proposal'.
|
|
1524
1419
|
It returns data needed to construct a block to work on.
|
|
@@ -1591,11 +1486,9 @@ Result:
|
|
|
1591
1486
|
|
|
1592
1487
|
Examples:
|
|
1593
1488
|
> neurai-cli getblocktemplate
|
|
1594
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblocktemplate", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
## getcacheinfo
|
|
1598
|
-
<br/> getcacheinfo
|
|
1489
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblocktemplate", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1490
|
+
**/ getblocktemplate: 'getblocktemplate',
|
|
1491
|
+
/** getcacheinfo
|
|
1599
1492
|
|
|
1600
1493
|
Result:
|
|
1601
1494
|
[
|
|
@@ -1611,12 +1504,10 @@ Result:
|
|
|
1611
1504
|
]
|
|
1612
1505
|
|
|
1613
1506
|
Examples:
|
|
1614
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getcacheinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1507
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getcacheinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1615
1508
|
> neurai-cli getcacheinfo
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
## getchaintips
|
|
1619
|
-
<br/> getchaintips
|
|
1509
|
+
**/ getcacheinfo: 'getcacheinfo',
|
|
1510
|
+
/** getchaintips
|
|
1620
1511
|
Return information about all known tips in the block tree, including the main chain as well as orphaned branches.
|
|
1621
1512
|
|
|
1622
1513
|
Result:
|
|
@@ -1643,11 +1534,9 @@ Possible values for status:
|
|
|
1643
1534
|
|
|
1644
1535
|
Examples:
|
|
1645
1536
|
> neurai-cli getchaintips
|
|
1646
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getchaintips", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
## getchaintxstats
|
|
1650
|
-
<br/> getchaintxstats ( nblocks blockhash )
|
|
1537
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getchaintips", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1538
|
+
**/ getchaintips: 'getchaintips',
|
|
1539
|
+
/** getchaintxstats ( nblocks blockhash )
|
|
1651
1540
|
|
|
1652
1541
|
Compute statistics about the total number and rate of transactions in the chain.
|
|
1653
1542
|
|
|
@@ -1667,11 +1556,9 @@ Result:
|
|
|
1667
1556
|
|
|
1668
1557
|
Examples:
|
|
1669
1558
|
> neurai-cli getchaintxstats
|
|
1670
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getchaintxstats", "params": [2016] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
## getconnectioncount
|
|
1674
|
-
<br/> getconnectioncount
|
|
1559
|
+
> 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/
|
|
1560
|
+
**/ getchaintxstats: 'getchaintxstats',
|
|
1561
|
+
/** getconnectioncount
|
|
1675
1562
|
|
|
1676
1563
|
Returns the number of connections to other nodes.
|
|
1677
1564
|
|
|
@@ -1680,11 +1567,9 @@ n (numeric) The connection count
|
|
|
1680
1567
|
|
|
1681
1568
|
Examples:
|
|
1682
1569
|
> neurai-cli getconnectioncount
|
|
1683
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getconnectioncount", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
## getdifficulty
|
|
1687
|
-
<br/> getdifficulty
|
|
1570
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getconnectioncount", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1571
|
+
**/ getconnectioncount: 'getconnectioncount',
|
|
1572
|
+
/** getdifficulty
|
|
1688
1573
|
|
|
1689
1574
|
Returns the proof-of-work difficulty as a multiple of the minimum difficulty.
|
|
1690
1575
|
|
|
@@ -1693,11 +1578,9 @@ n.nnn (numeric) the proof-of-work difficulty as a multiple of the minimum
|
|
|
1693
1578
|
|
|
1694
1579
|
Examples:
|
|
1695
1580
|
> neurai-cli getdifficulty
|
|
1696
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getdifficulty", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
## getdistributestatus
|
|
1700
|
-
<br/> getdistributestatus "asset_name" snapshot_height "distribution_asset_name" gross_distribution_amount ( "exception_addresses" )
|
|
1581
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getdifficulty", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1582
|
+
**/ getdifficulty: 'getdifficulty',
|
|
1583
|
+
/** getdistributestatus "asset_name" snapshot_height "distribution_asset_name" gross_distribution_amount ( "exception_addresses" )
|
|
1701
1584
|
|
|
1702
1585
|
Give information about the status of the distribution
|
|
1703
1586
|
|
|
@@ -1711,12 +1594,10 @@ Arguments:
|
|
|
1711
1594
|
Examples:
|
|
1712
1595
|
> neurai-cli getdistributestatus "TRONCO" 12345 "XNA" 1000
|
|
1713
1596
|
> neurai-cli getdistributestatus "PHATSTACKS" 12345 "DIVIDENDS" 1000 "mwN7xC3yomYdvJuVXkVC7ymY9wNBjWNduD,n4Rf18edydDaRBh7t6gHUbuByLbWEoWUTg"
|
|
1714
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getdistributestatus", "params": ["TRONCO" 34987 "DIVIDENDS" 100000] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1715
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getdistributestatus", "params": ["PHATSTACKS" 34987 "XNA" 100000 "mwN7xC3yomYdvJuVXkVC7ymY9wNBjWNduD,n4Rf18edydDaRBh7t6gHUbuByLbWEoWUTg"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
## getgenerate
|
|
1719
|
-
<br/> getgenerate
|
|
1597
|
+
> 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/
|
|
1598
|
+
> 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/
|
|
1599
|
+
**/ getdistributestatus: 'getdistributestatus',
|
|
1600
|
+
/** getgenerate
|
|
1720
1601
|
|
|
1721
1602
|
Return if the server is set to generate coins or not. The default is false.
|
|
1722
1603
|
It is set with the command line argument -gen (or neurai.conf setting gen)
|
|
@@ -1727,11 +1608,9 @@ true|false (boolean) If the server is set to generate coins or not
|
|
|
1727
1608
|
|
|
1728
1609
|
Examples:
|
|
1729
1610
|
> neurai-cli getgenerate
|
|
1730
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getgenerate", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
## getinfo
|
|
1734
|
-
<br/> getinfo
|
|
1611
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getgenerate", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1612
|
+
**/ getgenerate: 'getgenerate',
|
|
1613
|
+
/** getinfo
|
|
1735
1614
|
|
|
1736
1615
|
DEPRECATED. Returns an object containing various state info.
|
|
1737
1616
|
|
|
@@ -1758,11 +1637,9 @@ Result:
|
|
|
1758
1637
|
|
|
1759
1638
|
Examples:
|
|
1760
1639
|
> neurai-cli getinfo
|
|
1761
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
## getkawpowhash
|
|
1765
|
-
<br/> getkawpowhash "header_hash" "mix_hash" nonce, height, "target"
|
|
1640
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1641
|
+
**/ getinfo: 'getinfo',
|
|
1642
|
+
/** getkawpowhash "header_hash" "mix_hash" nonce, height, "target"
|
|
1766
1643
|
|
|
1767
1644
|
Get the kawpow hash for a block given its block data
|
|
1768
1645
|
|
|
@@ -1777,11 +1654,9 @@ Result:
|
|
|
1777
1654
|
|
|
1778
1655
|
Examples:
|
|
1779
1656
|
> neurai-cli getkawpowhash "header_hash" "mix_hash" "0x100000" 2456
|
|
1780
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getkawpowhash", "params": ["header_hash" "mix_hash" "0x100000" 2456] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
## getmasterkeyinfo
|
|
1784
|
-
<br/> getmasterkeyinfo
|
|
1657
|
+
> 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/
|
|
1658
|
+
**/ getkawpowhash: 'getkawpowhash',
|
|
1659
|
+
/** getmasterkeyinfo
|
|
1785
1660
|
|
|
1786
1661
|
Fetches and displays the master private key and the master public key.
|
|
1787
1662
|
|
|
@@ -1796,11 +1671,9 @@ Result:
|
|
|
1796
1671
|
|
|
1797
1672
|
Examples:
|
|
1798
1673
|
> neurai-cli getmasterkeyinfo
|
|
1799
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmasterkeyinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
## getmemoryinfo
|
|
1803
|
-
<br/> getmemoryinfo ("mode")
|
|
1674
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmasterkeyinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1675
|
+
**/ getmasterkeyinfo: 'getmasterkeyinfo',
|
|
1676
|
+
/** getmemoryinfo ("mode")
|
|
1804
1677
|
Returns an object containing information about memory usage.
|
|
1805
1678
|
Arguments:
|
|
1806
1679
|
1. "mode" determines what kind of information is returned. This argument is optional, the default mode is "stats".
|
|
@@ -1824,11 +1697,9 @@ Result (mode "mallocinfo"):
|
|
|
1824
1697
|
|
|
1825
1698
|
Examples:
|
|
1826
1699
|
> neurai-cli getmemoryinfo
|
|
1827
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmemoryinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
## getmempoolancestors
|
|
1831
|
-
<br/> getmempoolancestors txid (verbose)
|
|
1700
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmemoryinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1701
|
+
**/ getmemoryinfo: 'getmemoryinfo',
|
|
1702
|
+
/** getmempoolancestors txid (verbose)
|
|
1832
1703
|
|
|
1833
1704
|
If txid is in the mempool, returns all in-mempool ancestors.
|
|
1834
1705
|
|
|
@@ -1865,11 +1736,9 @@ Result (for verbose=true):
|
|
|
1865
1736
|
|
|
1866
1737
|
Examples:
|
|
1867
1738
|
> neurai-cli getmempoolancestors "mytxid"
|
|
1868
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempoolancestors", "params": ["mytxid"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
## getmempooldescendants
|
|
1872
|
-
<br/> getmempooldescendants txid (verbose)
|
|
1739
|
+
> 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/
|
|
1740
|
+
**/ getmempoolancestors: 'getmempoolancestors',
|
|
1741
|
+
/** getmempooldescendants txid (verbose)
|
|
1873
1742
|
|
|
1874
1743
|
If txid is in the mempool, returns all in-mempool descendants.
|
|
1875
1744
|
|
|
@@ -1906,11 +1775,9 @@ Result (for verbose=true):
|
|
|
1906
1775
|
|
|
1907
1776
|
Examples:
|
|
1908
1777
|
> neurai-cli getmempooldescendants "mytxid"
|
|
1909
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempooldescendants", "params": ["mytxid"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
## getmempoolentry
|
|
1913
|
-
<br/> getmempoolentry txid
|
|
1778
|
+
> 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/
|
|
1779
|
+
**/ getmempooldescendants: 'getmempooldescendants',
|
|
1780
|
+
/** getmempoolentry txid
|
|
1914
1781
|
|
|
1915
1782
|
Returns mempool data for given transaction
|
|
1916
1783
|
|
|
@@ -1938,11 +1805,9 @@ Result:
|
|
|
1938
1805
|
|
|
1939
1806
|
Examples:
|
|
1940
1807
|
> neurai-cli getmempoolentry "mytxid"
|
|
1941
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempoolentry", "params": ["mytxid"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
## getmempoolinfo
|
|
1945
|
-
<br/> getmempoolinfo
|
|
1808
|
+
> 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/
|
|
1809
|
+
**/ getmempoolentry: 'getmempoolentry',
|
|
1810
|
+
/** getmempoolinfo
|
|
1946
1811
|
|
|
1947
1812
|
Returns details on the active state of the TX memory pool.
|
|
1948
1813
|
|
|
@@ -1957,11 +1822,9 @@ Result:
|
|
|
1957
1822
|
|
|
1958
1823
|
Examples:
|
|
1959
1824
|
> neurai-cli getmempoolinfo
|
|
1960
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempoolinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
## getmininginfo
|
|
1964
|
-
<br/> getmininginfo
|
|
1825
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempoolinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1826
|
+
**/ getmempoolinfo: 'getmempoolinfo',
|
|
1827
|
+
/** getmininginfo
|
|
1965
1828
|
|
|
1966
1829
|
Returns a json object containing mining-related information.
|
|
1967
1830
|
Result:
|
|
@@ -1980,11 +1843,9 @@ Result:
|
|
|
1980
1843
|
|
|
1981
1844
|
Examples:
|
|
1982
1845
|
> neurai-cli getmininginfo
|
|
1983
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmininginfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
## getmywords
|
|
1987
|
-
<br/> getmywords ( "account" )
|
|
1846
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmininginfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1847
|
+
**/ getmininginfo: 'getmininginfo',
|
|
1848
|
+
/** getmywords ( "account" )
|
|
1988
1849
|
|
|
1989
1850
|
Returns the 12 words and passphrase used by BIP39 to generate the wallets private keys
|
|
1990
1851
|
Only returns value if wallet was created by the 12 words import/generation
|
|
@@ -1995,11 +1856,9 @@ Result:
|
|
|
1995
1856
|
|
|
1996
1857
|
Examples:
|
|
1997
1858
|
> neurai-cli getmywords
|
|
1998
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmywords", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
## getnettotals
|
|
2002
|
-
<br/> getnettotals
|
|
1859
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmywords", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1860
|
+
**/ getmywords: 'getmywords',
|
|
1861
|
+
/** getnettotals
|
|
2003
1862
|
|
|
2004
1863
|
Returns information about network traffic, including bytes in, bytes out,
|
|
2005
1864
|
and current time.
|
|
@@ -2022,11 +1881,9 @@ Result:
|
|
|
2022
1881
|
|
|
2023
1882
|
Examples:
|
|
2024
1883
|
> neurai-cli getnettotals
|
|
2025
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnettotals", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
## getnetworkhashps
|
|
2029
|
-
<br/> getnetworkhashps ( nblocks height )
|
|
1884
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnettotals", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1885
|
+
**/ getnettotals: 'getnettotals',
|
|
1886
|
+
/** getnetworkhashps ( nblocks height )
|
|
2030
1887
|
|
|
2031
1888
|
Returns the estimated network hashes per second based on the last n blocks.
|
|
2032
1889
|
Pass in [blocks] to override # of blocks, -1 specifies since last difficulty change.
|
|
@@ -2041,11 +1898,9 @@ x (numeric) Hashes per second estimated
|
|
|
2041
1898
|
|
|
2042
1899
|
Examples:
|
|
2043
1900
|
> neurai-cli getnetworkhashps
|
|
2044
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnetworkhashps", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
## getnetworkinfo
|
|
2048
|
-
<br/> getnetworkinfo
|
|
1901
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnetworkhashps", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1902
|
+
**/ getnetworkhashps: 'getnetworkhashps',
|
|
1903
|
+
/** getnetworkinfo
|
|
2049
1904
|
Returns an object containing various state info regarding P2P networking.
|
|
2050
1905
|
|
|
2051
1906
|
Result:
|
|
@@ -2083,11 +1938,9 @@ Result:
|
|
|
2083
1938
|
|
|
2084
1939
|
Examples:
|
|
2085
1940
|
> neurai-cli getnetworkinfo
|
|
2086
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnetworkinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
## getnewaddress
|
|
2090
|
-
<br/> getnewaddress ( "account" )
|
|
1941
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnetworkinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1942
|
+
**/ getnetworkinfo: 'getnetworkinfo',
|
|
1943
|
+
/** getnewaddress ( "account" )
|
|
2091
1944
|
|
|
2092
1945
|
Returns a new Neurai address for receiving payments.
|
|
2093
1946
|
If 'account' is specified (DEPRECATED), it is added to the address book
|
|
@@ -2101,11 +1954,9 @@ Result:
|
|
|
2101
1954
|
|
|
2102
1955
|
Examples:
|
|
2103
1956
|
> neurai-cli getnewaddress
|
|
2104
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnewaddress", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
## getpeerinfo
|
|
2108
|
-
<br/> getpeerinfo
|
|
1957
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnewaddress", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
1958
|
+
**/ getnewaddress: 'getnewaddress',
|
|
1959
|
+
/** getpeerinfo
|
|
2109
1960
|
|
|
2110
1961
|
Returns data about each connected network node as a json array of objects.
|
|
2111
1962
|
|
|
@@ -2154,11 +2005,29 @@ Result:
|
|
|
2154
2005
|
|
|
2155
2006
|
Examples:
|
|
2156
2007
|
> neurai-cli getpeerinfo
|
|
2157
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getpeerinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2008
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getpeerinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2009
|
+
**/ getpeerinfo: 'getpeerinfo',
|
|
2010
|
+
/** getpubkey "address"
|
|
2011
|
+
|
|
2012
|
+
Returns the public key for an address that has revealed it by spending (requires pubkeyindex to be enabled).
|
|
2013
|
+
|
|
2014
|
+
Arguments:
|
|
2015
|
+
1. "address" (string, required) The Neurai address
|
|
2016
|
+
|
|
2017
|
+
Result:
|
|
2018
|
+
{
|
|
2019
|
+
"address": "address", (string) The Neurai address
|
|
2020
|
+
"pubkey": "hex", (string) The public key in hex format
|
|
2021
|
+
"revealed": true|false, (boolean) Whether the public key has been revealed
|
|
2022
|
+
"height": n, (numeric) Block height where it was revealed
|
|
2023
|
+
"txid": "hash" (string) Transaction ID where it was revealed
|
|
2024
|
+
}
|
|
2025
|
+
|
|
2026
|
+
Examples:
|
|
2027
|
+
> neurai-cli getpubkey "NXa1b2c3d4e5f6..."
|
|
2028
|
+
> 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/
|
|
2029
|
+
**/ getpubkey: 'getpubkey',
|
|
2030
|
+
/** getrawchangeaddress
|
|
2162
2031
|
|
|
2163
2032
|
Returns a new Neurai address, for receiving change.
|
|
2164
2033
|
This is for use with raw transactions, NOT normal use.
|
|
@@ -2168,11 +2037,9 @@ Result:
|
|
|
2168
2037
|
|
|
2169
2038
|
Examples:
|
|
2170
2039
|
> neurai-cli getrawchangeaddress
|
|
2171
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrawchangeaddress", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
## getrawmempool
|
|
2175
|
-
<br/> getrawmempool ( verbose )
|
|
2040
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrawchangeaddress", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2041
|
+
**/ getrawchangeaddress: 'getrawchangeaddress',
|
|
2042
|
+
/** getrawmempool ( verbose )
|
|
2176
2043
|
|
|
2177
2044
|
Returns all transaction ids in memory pool as a json array of string transaction ids.
|
|
2178
2045
|
|
|
@@ -2210,11 +2077,9 @@ Result: (for verbose = true):
|
|
|
2210
2077
|
|
|
2211
2078
|
Examples:
|
|
2212
2079
|
> neurai-cli getrawmempool true
|
|
2213
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrawmempool", "params": [true] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
## getrawtransaction
|
|
2217
|
-
<br/> getrawtransaction "txid" ( verbose )
|
|
2080
|
+
> 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/
|
|
2081
|
+
**/ getrawmempool: 'getrawmempool',
|
|
2082
|
+
/** getrawtransaction "txid" ( verbose )
|
|
2218
2083
|
|
|
2219
2084
|
NOTE: By default this function only works for mempool transactions. If the -txindex option is
|
|
2220
2085
|
enabled, it also works for blockchain transactions.
|
|
@@ -2280,11 +2145,9 @@ Result (if verbose is set to true):
|
|
|
2280
2145
|
Examples:
|
|
2281
2146
|
> neurai-cli getrawtransaction "mytxid"
|
|
2282
2147
|
> neurai-cli getrawtransaction "mytxid" true
|
|
2283
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrawtransaction", "params": ["mytxid", true] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
## getreceivedbyaccount
|
|
2287
|
-
<br/> getreceivedbyaccount "account" ( minconf )
|
|
2148
|
+
> 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/
|
|
2149
|
+
**/ getrawtransaction: 'getrawtransaction',
|
|
2150
|
+
/** getreceivedbyaccount "account" ( minconf )
|
|
2288
2151
|
|
|
2289
2152
|
DEPRECATED. Returns the total amount received by addresses with <account> in transactions with at least [minconf] confirmations.
|
|
2290
2153
|
|
|
@@ -2307,11 +2170,9 @@ The amount with at least 6 confirmations
|
|
|
2307
2170
|
> neurai-cli getreceivedbyaccount "tabby" 6
|
|
2308
2171
|
|
|
2309
2172
|
As a json rpc call
|
|
2310
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getreceivedbyaccount", "params": ["tabby", 6] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
## getreceivedbyaddress
|
|
2314
|
-
<br/> getreceivedbyaddress "address" ( minconf )
|
|
2173
|
+
> 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/
|
|
2174
|
+
**/ getreceivedbyaccount: 'getreceivedbyaccount',
|
|
2175
|
+
/** getreceivedbyaddress "address" ( minconf )
|
|
2315
2176
|
|
|
2316
2177
|
Returns the total amount received by the given address in transactions with at least minconf confirmations.
|
|
2317
2178
|
|
|
@@ -2334,11 +2195,9 @@ The amount with at least 6 confirmations
|
|
|
2334
2195
|
> neurai-cli getreceivedbyaddress "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX" 6
|
|
2335
2196
|
|
|
2336
2197
|
As a json rpc call
|
|
2337
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getreceivedbyaddress", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX", 6] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
## getrpcinfo
|
|
2341
|
-
<br/> getrpcinfo
|
|
2198
|
+
> 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/
|
|
2199
|
+
**/ getreceivedbyaddress: 'getreceivedbyaddress',
|
|
2200
|
+
/** getrpcinfo
|
|
2342
2201
|
Returns details of the RPC server.
|
|
2343
2202
|
|
|
2344
2203
|
Result:
|
|
@@ -2352,11 +2211,9 @@ Result:
|
|
|
2352
2211
|
],
|
|
2353
2212
|
}
|
|
2354
2213
|
> neurai-cli getrpcinfo
|
|
2355
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrpcinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
## getsnapshot
|
|
2359
|
-
<br/> getsnapshot "asset_name" block_height
|
|
2214
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrpcinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2215
|
+
**/ getrpcinfo: 'getrpcinfo',
|
|
2216
|
+
/** getsnapshot "asset_name" block_height
|
|
2360
2217
|
|
|
2361
2218
|
Returns details for the asset snapshot, at the specified height
|
|
2362
2219
|
|
|
@@ -2376,11 +2233,9 @@ Result:
|
|
|
2376
2233
|
}
|
|
2377
2234
|
|
|
2378
2235
|
Examples:
|
|
2379
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getsnapshot", "params": ["ASSET_NAME" 28546] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
## getsnapshotrequest
|
|
2383
|
-
<br/> getsnapshotrequest "asset_name" block_height
|
|
2236
|
+
> 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/
|
|
2237
|
+
**/ getsnapshot: 'getsnapshot',
|
|
2238
|
+
/** getsnapshotrequest "asset_name" block_height
|
|
2384
2239
|
|
|
2385
2240
|
Retrieves the specified snapshot request details.
|
|
2386
2241
|
|
|
@@ -2396,11 +2251,9 @@ Result:
|
|
|
2396
2251
|
|
|
2397
2252
|
Examples:
|
|
2398
2253
|
> neurai-cli getsnapshotrequest "TRONCO" 12345
|
|
2399
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getsnapshotrequest", "params": ["PHATSTACKS" 34987] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
## getspentinfo
|
|
2403
|
-
<br/> getspentinfo
|
|
2254
|
+
> 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/
|
|
2255
|
+
**/ getsnapshotrequest: 'getsnapshotrequest',
|
|
2256
|
+
/** getspentinfo
|
|
2404
2257
|
|
|
2405
2258
|
Returns the txid and index where an output is spent.
|
|
2406
2259
|
|
|
@@ -2419,11 +2272,9 @@ Result:
|
|
|
2419
2272
|
|
|
2420
2273
|
Examples:
|
|
2421
2274
|
> neurai-cli getspentinfo '{"txid": "0437cd7f8525ceed2324359c2d0ba26006d92d856a9c20fa0241106ee5a597c9", "index": 0}'
|
|
2422
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getspentinfo", "params": [{"txid": "0437cd7f8525ceed2324359c2d0ba26006d92d856a9c20fa0241106ee5a597c9", "index": 0}] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
## gettransaction
|
|
2426
|
-
<br/> gettransaction "txid" ( include_watchonly )
|
|
2275
|
+
> 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/
|
|
2276
|
+
**/ getspentinfo: 'getspentinfo',
|
|
2277
|
+
/** gettransaction "txid" ( include_watchonly )
|
|
2427
2278
|
|
|
2428
2279
|
Get detailed information about in-wallet transaction <txid>
|
|
2429
2280
|
|
|
@@ -2477,11 +2328,9 @@ Result:
|
|
|
2477
2328
|
Examples:
|
|
2478
2329
|
> neurai-cli gettransaction "1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"
|
|
2479
2330
|
> neurai-cli gettransaction "1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d" true
|
|
2480
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettransaction", "params": ["1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
## gettxout
|
|
2484
|
-
<br/> gettxout "txid" n ( include_mempool )
|
|
2331
|
+
> 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/
|
|
2332
|
+
**/ gettransaction: 'gettransaction',
|
|
2333
|
+
/** gettxout "txid" n ( include_mempool )
|
|
2485
2334
|
|
|
2486
2335
|
Returns details about an unspent transaction output.
|
|
2487
2336
|
|
|
@@ -2517,11 +2366,9 @@ View the details
|
|
|
2517
2366
|
> neurai-cli gettxout "txid" 1
|
|
2518
2367
|
|
|
2519
2368
|
As a json rpc call
|
|
2520
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettxout", "params": ["txid", 1] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
## gettxoutproof
|
|
2524
|
-
<br/> gettxoutproof ["txid",...] ( blockhash )
|
|
2369
|
+
> 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/
|
|
2370
|
+
**/ gettxout: 'gettxout',
|
|
2371
|
+
/** gettxoutproof ["txid",...] ( blockhash )
|
|
2525
2372
|
|
|
2526
2373
|
Returns a hex-encoded proof that "txid" was included in a block.
|
|
2527
2374
|
|
|
@@ -2540,10 +2387,8 @@ Arguments:
|
|
|
2540
2387
|
|
|
2541
2388
|
Result:
|
|
2542
2389
|
"data" (string) A string that is a serialized, hex-encoded data for the proof.
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
## gettxoutsetinfo
|
|
2546
|
-
<br/> gettxoutsetinfo
|
|
2390
|
+
**/ gettxoutproof: 'gettxoutproof',
|
|
2391
|
+
/** gettxoutsetinfo
|
|
2547
2392
|
|
|
2548
2393
|
Returns statistics about the unspent transaction output set.
|
|
2549
2394
|
Note this call may take some time.
|
|
@@ -2562,16 +2407,12 @@ Result:
|
|
|
2562
2407
|
|
|
2563
2408
|
Examples:
|
|
2564
2409
|
> neurai-cli gettxoutsetinfo
|
|
2565
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettxoutsetinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
## getunconfirmedbalance
|
|
2569
|
-
<br/> getunconfirmedbalance
|
|
2410
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettxoutsetinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2411
|
+
**/ gettxoutsetinfo: 'gettxoutsetinfo',
|
|
2412
|
+
/** getunconfirmedbalance
|
|
2570
2413
|
Returns the server's total unconfirmed balance
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
## getverifierstring
|
|
2574
|
-
<br/> getverifierstring restricted_name
|
|
2414
|
+
**/ getunconfirmedbalance: 'getunconfirmedbalance',
|
|
2415
|
+
/** getverifierstring restricted_name
|
|
2575
2416
|
|
|
2576
2417
|
Retrieve the verifier string that belongs to the given restricted asset
|
|
2577
2418
|
|
|
@@ -2583,11 +2424,9 @@ Result:
|
|
|
2583
2424
|
|
|
2584
2425
|
Examples:
|
|
2585
2426
|
> neurai-cli getverifierstring "restricted_name"
|
|
2586
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getverifierstring", "params": ["restricted_name"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
## getwalletinfo
|
|
2590
|
-
<br/> getwalletinfo
|
|
2427
|
+
> 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/
|
|
2428
|
+
**/ getverifierstring: 'getverifierstring',
|
|
2429
|
+
/** getwalletinfo
|
|
2591
2430
|
Returns an object containing various wallet state info.
|
|
2592
2431
|
|
|
2593
2432
|
Result:
|
|
@@ -2609,11 +2448,9 @@ Result:
|
|
|
2609
2448
|
|
|
2610
2449
|
Examples:
|
|
2611
2450
|
> neurai-cli getwalletinfo
|
|
2612
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getwalletinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
## help
|
|
2616
|
-
<br/> help ( "command" )
|
|
2451
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getwalletinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2452
|
+
**/ getwalletinfo: 'getwalletinfo',
|
|
2453
|
+
/** help ( "command" )
|
|
2617
2454
|
|
|
2618
2455
|
List all commands, or get help for a specified command.
|
|
2619
2456
|
|
|
@@ -2622,10 +2459,8 @@ Arguments:
|
|
|
2622
2459
|
|
|
2623
2460
|
Result:
|
|
2624
2461
|
"text" (string) The help text
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
## importaddress
|
|
2628
|
-
<br/> importaddress "address" ( "label" rescan p2sh )
|
|
2462
|
+
**/ help: 'help',
|
|
2463
|
+
/** importaddress "address" ( "label" rescan p2sh )
|
|
2629
2464
|
|
|
2630
2465
|
Adds a script (in hex) or address that can be watched as if it were in your wallet but cannot be used to spend.
|
|
2631
2466
|
|
|
@@ -2650,11 +2485,9 @@ Import using a label without rescan
|
|
|
2650
2485
|
> neurai-cli importaddress "myscript" "testing" false
|
|
2651
2486
|
|
|
2652
2487
|
As a JSON-RPC call
|
|
2653
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importaddress", "params": ["myscript", "testing", false] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
## importmulti
|
|
2657
|
-
<br/> importmulti "requests" ( "options" )
|
|
2488
|
+
> 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/
|
|
2489
|
+
**/ importaddress: 'importaddress',
|
|
2490
|
+
/** importmulti "requests" ( "options" )
|
|
2658
2491
|
|
|
2659
2492
|
Import addresses/scripts (with private or public keys, redeem script (P2SH)), rescanning all addresses in one-shot-only (rescan can be disabled via options).
|
|
2660
2493
|
|
|
@@ -2689,10 +2522,8 @@ Examples:
|
|
|
2689
2522
|
|
|
2690
2523
|
Response is an array with the same size as the input that has the execution result :
|
|
2691
2524
|
[{ "success": true } , { "success": false, "error": { "code": -1, "message": "Internal Server Error"} }, ... ]
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
## importprivkey
|
|
2695
|
-
<br/> importprivkey "privkey" ( "label" ) ( rescan )
|
|
2525
|
+
**/ importmulti: 'importmulti',
|
|
2526
|
+
/** importprivkey "privkey" ( "label" ) ( rescan )
|
|
2696
2527
|
|
|
2697
2528
|
Adds a private key (as returned by dumpprivkey) to your wallet.
|
|
2698
2529
|
|
|
@@ -2718,21 +2549,17 @@ Import using default blank label and without rescan
|
|
|
2718
2549
|
> neurai-cli importprivkey "mykey" "" false
|
|
2719
2550
|
|
|
2720
2551
|
As a JSON-RPC call
|
|
2721
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importprivkey", "params": ["mykey", "testing", false] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
## importprunedfunds
|
|
2725
|
-
<br/> importprunedfunds
|
|
2552
|
+
> 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/
|
|
2553
|
+
**/ importprivkey: 'importprivkey',
|
|
2554
|
+
/** importprunedfunds
|
|
2726
2555
|
|
|
2727
2556
|
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.
|
|
2728
2557
|
|
|
2729
2558
|
Arguments:
|
|
2730
2559
|
1. "rawtransaction" (string, required) A raw transaction in hex funding an already-existing address in wallet
|
|
2731
2560
|
2. "txoutproof" (string, required) The hex output from gettxoutproof that contains the transaction
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
## importpubkey
|
|
2735
|
-
<br/> importpubkey "pubkey" ( "label" rescan )
|
|
2561
|
+
**/ importprunedfunds: 'importprunedfunds',
|
|
2562
|
+
/** importpubkey "pubkey" ( "label" rescan )
|
|
2736
2563
|
|
|
2737
2564
|
Adds a public key (in hex) that can be watched as if it were in your wallet but cannot be used to spend.
|
|
2738
2565
|
|
|
@@ -2752,11 +2579,9 @@ Import using a label without rescan
|
|
|
2752
2579
|
> neurai-cli importpubkey "mypubkey" "testing" false
|
|
2753
2580
|
|
|
2754
2581
|
As a JSON-RPC call
|
|
2755
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importpubkey", "params": ["mypubkey", "testing", false] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
## importwallet
|
|
2759
|
-
<br/> importwallet "filename"
|
|
2582
|
+
> 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/
|
|
2583
|
+
**/ importpubkey: 'importpubkey',
|
|
2584
|
+
/** importwallet "filename"
|
|
2760
2585
|
|
|
2761
2586
|
Imports keys from a wallet dump file (see dumpwallet).
|
|
2762
2587
|
|
|
@@ -2772,11 +2597,9 @@ Import the wallet
|
|
|
2772
2597
|
> neurai-cli importwallet "test"
|
|
2773
2598
|
|
|
2774
2599
|
Import using the json rpc call
|
|
2775
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importwallet", "params": ["test"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
## issue
|
|
2779
|
-
<br/> issue "asset_name" qty "( to_address )" "( change_address )" ( units ) ( reissuable ) ( has_ipfs ) "( ipfs_hash )"
|
|
2600
|
+
> 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/
|
|
2601
|
+
**/ importwallet: 'importwallet',
|
|
2602
|
+
/** issue "asset_name" qty "( to_address )" "( change_address )" ( units ) ( reissuable ) ( has_ipfs ) "( ipfs_hash )"
|
|
2780
2603
|
|
|
2781
2604
|
Issue an asset, subasset or unique asset.
|
|
2782
2605
|
Asset name must not conflict with any existing asset.
|
|
@@ -2805,10 +2628,8 @@ Examples:
|
|
|
2805
2628
|
> neurai-cli issue "ASSET_NAME" 1000 "myaddress" "changeaddress" 8 false true QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E
|
|
2806
2629
|
> neurai-cli issue "ASSET_NAME/SUB_ASSET" 1000 "myaddress" "changeaddress" 2 true
|
|
2807
2630
|
> neurai-cli issue "ASSET_NAME#uniquetag"
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
## issuequalifierasset
|
|
2811
|
-
<br/> issuequalifierasset "asset_name" qty "( to_address )" "( change_address )" ( has_ipfs ) "( ipfs_hash )"
|
|
2631
|
+
**/ issue: 'issue',
|
|
2632
|
+
/** issuequalifierasset "asset_name" qty "( to_address )" "( change_address )" ( has_ipfs ) "( ipfs_hash )"
|
|
2812
2633
|
|
|
2813
2634
|
Issue an qualifier or sub qualifier asset
|
|
2814
2635
|
If the '#' character isn't added, it will be added automatically
|
|
@@ -2836,10 +2657,8 @@ Examples:
|
|
|
2836
2657
|
> neurai-cli issuequalifierasset "#ASSET_NAME" 1000 "myaddress" "changeaddress" true QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E
|
|
2837
2658
|
> neurai-cli issuequalifierasset "ASSET_NAME/SUB_QUALIFIER" 1000 "myaddress" "changeaddress"
|
|
2838
2659
|
> neurai-cli issuequalifierasset "#ASSET_NAME"
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
## issuerestrictedasset
|
|
2842
|
-
<br/> issuerestrictedasset "asset_name" qty "verifier" "to_address" "( change_address )" (units) ( reissuable ) ( has_ipfs ) "( ipfs_hash )"
|
|
2660
|
+
**/ issuequalifierasset: 'issuequalifierasset',
|
|
2661
|
+
/** issuerestrictedasset "asset_name" qty "verifier" "to_address" "( change_address )" (units) ( reissuable ) ( has_ipfs ) "( ipfs_hash )"
|
|
2843
2662
|
|
|
2844
2663
|
Issue a restricted asset.
|
|
2845
2664
|
Restricted asset names must not conflict with any existing restricted asset.
|
|
@@ -2866,10 +2685,8 @@ Examples:
|
|
|
2866
2685
|
> neurai-cli issuerestrictedasset "$ASSET_NAME" 1000 "#KYC & !#AML" "myaddress" "changeaddress" 5
|
|
2867
2686
|
> neurai-cli issuerestrictedasset "$ASSET_NAME" 1000 "#KYC & !#AML" "myaddress" "changeaddress" 8 true
|
|
2868
2687
|
> neurai-cli issuerestrictedasset "$ASSET_NAME" 1000 "#KYC & !#AML" "myaddress" "changeaddress" 0 false true QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
## issueunique
|
|
2872
|
-
<br/> issueunique "root_name" [asset_tags] ( [ipfs_hashes] ) "( to_address )" "( change_address )"
|
|
2688
|
+
**/ issuerestrictedasset: 'issuerestrictedasset',
|
|
2689
|
+
/** issueunique "root_name" [asset_tags] ( [ipfs_hashes] ) "( to_address )" "( change_address )"
|
|
2873
2690
|
|
|
2874
2691
|
Issue unique asset(s).
|
|
2875
2692
|
root_name must be an asset you own.
|
|
@@ -2890,10 +2707,8 @@ Result:
|
|
|
2890
2707
|
Examples:
|
|
2891
2708
|
> neurai-cli issueunique "MY_ASSET" '["primo","secundo"]'
|
|
2892
2709
|
> neurai-cli issueunique "MY_ASSET" '["primo","secundo"]' '["first_hash","second_hash"]'
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
## isvalidverifierstring
|
|
2896
|
-
<br/> isvalidverifierstring verifier_string
|
|
2710
|
+
**/ issueunique: 'issueunique',
|
|
2711
|
+
/** isvalidverifierstring verifier_string
|
|
2897
2712
|
|
|
2898
2713
|
Checks to see if the given verifier string is valid
|
|
2899
2714
|
|
|
@@ -2905,11 +2720,9 @@ Result:
|
|
|
2905
2720
|
|
|
2906
2721
|
Examples:
|
|
2907
2722
|
> neurai-cli isvalidverifierstring "verifier_string"
|
|
2908
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "isvalidverifierstring", "params": ["verifier_string"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
## keypoolrefill
|
|
2912
|
-
<br/> keypoolrefill ( newsize )
|
|
2723
|
+
> 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/
|
|
2724
|
+
**/ isvalidverifierstring: 'isvalidverifierstring',
|
|
2725
|
+
/** keypoolrefill ( newsize )
|
|
2913
2726
|
|
|
2914
2727
|
Fills the keypool.
|
|
2915
2728
|
|
|
@@ -2918,11 +2731,9 @@ Arguments
|
|
|
2918
2731
|
|
|
2919
2732
|
Examples:
|
|
2920
2733
|
> neurai-cli keypoolrefill
|
|
2921
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "keypoolrefill", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
## listaccounts
|
|
2925
|
-
<br/> listaccounts ( minconf include_watchonly)
|
|
2734
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "keypoolrefill", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2735
|
+
**/ keypoolrefill: 'keypoolrefill',
|
|
2736
|
+
/** listaccounts ( minconf include_watchonly)
|
|
2926
2737
|
|
|
2927
2738
|
DEPRECATED. Returns Object that has account names as keys, account balances as values.
|
|
2928
2739
|
|
|
@@ -2948,11 +2759,9 @@ List account balances for 6 or more confirmations
|
|
|
2948
2759
|
> neurai-cli listaccounts 6
|
|
2949
2760
|
|
|
2950
2761
|
As json rpc call
|
|
2951
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaccounts", "params": [6] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
## listaddressesbyasset
|
|
2955
|
-
<br/> listaddressesbyasset "asset_name" (onlytotal) (count) (start)
|
|
2762
|
+
> 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/
|
|
2763
|
+
**/ listaccounts: 'listaccounts',
|
|
2764
|
+
/** listaddressesbyasset "asset_name" (onlytotal) (count) (start)
|
|
2956
2765
|
|
|
2957
2766
|
Returns a list of all address that own the given asset (with balances)
|
|
2958
2767
|
Or returns the total size of how many address own the given asset
|
|
@@ -2971,10 +2780,8 @@ Examples:
|
|
|
2971
2780
|
> neurai-cli listaddressesbyasset "ASSET_NAME" false 2 0
|
|
2972
2781
|
> neurai-cli listaddressesbyasset "ASSET_NAME" true
|
|
2973
2782
|
> neurai-cli listaddressesbyasset "ASSET_NAME"
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
## listaddressesfortag
|
|
2977
|
-
<br/> listaddressesfortag tag_name
|
|
2783
|
+
**/ listaddressesbyasset: 'listaddressesbyasset',
|
|
2784
|
+
/** listaddressesfortag tag_name
|
|
2978
2785
|
|
|
2979
2786
|
List all addresses that have been assigned a given tag
|
|
2980
2787
|
|
|
@@ -2988,11 +2795,9 @@ Result:
|
|
|
2988
2795
|
|
|
2989
2796
|
Examples:
|
|
2990
2797
|
> neurai-cli listaddressesfortag "#TAG"
|
|
2991
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressesfortag", "params": ["#TAG"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
## listaddressgroupings
|
|
2995
|
-
<br/> listaddressgroupings
|
|
2798
|
+
> 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/
|
|
2799
|
+
**/ listaddressesfortag: 'listaddressesfortag',
|
|
2800
|
+
/** listaddressgroupings
|
|
2996
2801
|
|
|
2997
2802
|
Lists groups of addresses which have had their common ownership
|
|
2998
2803
|
made public by common use as inputs or as the resulting change
|
|
@@ -3013,11 +2818,9 @@ Result:
|
|
|
3013
2818
|
|
|
3014
2819
|
Examples:
|
|
3015
2820
|
> neurai-cli listaddressgroupings
|
|
3016
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressgroupings", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
## listaddressrestrictions
|
|
3020
|
-
<br/> listaddressrestrictions address
|
|
2821
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressgroupings", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2822
|
+
**/ listaddressgroupings: 'listaddressgroupings',
|
|
2823
|
+
/** listaddressrestrictions address
|
|
3021
2824
|
|
|
3022
2825
|
List all assets that have frozen this address
|
|
3023
2826
|
|
|
@@ -3031,11 +2834,9 @@ Result:
|
|
|
3031
2834
|
|
|
3032
2835
|
Examples:
|
|
3033
2836
|
> neurai-cli listaddressrestrictions "address"
|
|
3034
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressrestrictions", "params": ["address"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
## listassetbalancesbyaddress
|
|
3038
|
-
<br/> listassetbalancesbyaddress "address" (onlytotal) (count) (start)
|
|
2837
|
+
> 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/
|
|
2838
|
+
**/ listaddressrestrictions: 'listaddressrestrictions',
|
|
2839
|
+
/** listassetbalancesbyaddress "address" (onlytotal) (count) (start)
|
|
3039
2840
|
|
|
3040
2841
|
Returns a list of all asset balances for an address.
|
|
3041
2842
|
|
|
@@ -3055,10 +2856,8 @@ Examples:
|
|
|
3055
2856
|
> neurai-cli listassetbalancesbyaddress "myaddress" false 2 0
|
|
3056
2857
|
> neurai-cli listassetbalancesbyaddress "myaddress" true
|
|
3057
2858
|
> neurai-cli listassetbalancesbyaddress "myaddress"
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
## listassets
|
|
3061
|
-
<br/> listassets "( asset )" ( verbose ) ( count ) ( start )
|
|
2859
|
+
**/ listassetbalancesbyaddress: 'listassetbalancesbyaddress',
|
|
2860
|
+
/** listassets "( asset )" ( verbose ) ( count ) ( start )
|
|
3062
2861
|
|
|
3063
2862
|
Returns a list of all assets
|
|
3064
2863
|
|
|
@@ -3091,23 +2890,19 @@ Result (verbose=true):
|
|
|
3091
2890
|
}
|
|
3092
2891
|
|
|
3093
2892
|
Examples:
|
|
3094
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listassets", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2893
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listassets", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3095
2894
|
> neurai-cli listassets ASSET
|
|
3096
2895
|
> neurai-cli listassets "ASSET*" true 10 20
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
## listbanned
|
|
3100
|
-
<br/> listbanned
|
|
2896
|
+
**/ listassets: 'listassets',
|
|
2897
|
+
/** listbanned
|
|
3101
2898
|
|
|
3102
2899
|
List all banned IPs/Subnets.
|
|
3103
2900
|
|
|
3104
2901
|
Examples:
|
|
3105
2902
|
> neurai-cli listbanned
|
|
3106
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listbanned", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
## listglobalrestrictions
|
|
3110
|
-
<br/> listglobalrestrictions
|
|
2903
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listbanned", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2904
|
+
**/ listbanned: 'listbanned',
|
|
2905
|
+
/** listglobalrestrictions
|
|
3111
2906
|
|
|
3112
2907
|
List all global restricted assets
|
|
3113
2908
|
|
|
@@ -3118,11 +2913,9 @@ Result:
|
|
|
3118
2913
|
|
|
3119
2914
|
Examples:
|
|
3120
2915
|
> neurai-cli listglobalrestrictions
|
|
3121
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listglobalrestrictions", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
## listlockunspent
|
|
3125
|
-
<br/> listlockunspent
|
|
2916
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listglobalrestrictions", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2917
|
+
**/ listglobalrestrictions: 'listglobalrestrictions',
|
|
2918
|
+
/** listlockunspent
|
|
3126
2919
|
|
|
3127
2920
|
Returns list of temporarily unspendable outputs.
|
|
3128
2921
|
See the lockunspent call to lock and unlock transactions for spending.
|
|
@@ -3151,11 +2944,9 @@ Unlock the transaction again
|
|
|
3151
2944
|
> neurai-cli lockunspent true "[{\"txid\":\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\",\"vout\":1}]"
|
|
3152
2945
|
|
|
3153
2946
|
As a json rpc call
|
|
3154
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listlockunspent", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
## listmyassets
|
|
3158
|
-
<br/> listmyassets "( asset )" ( verbose ) ( count ) ( start ) (confs)
|
|
2947
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listlockunspent", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
2948
|
+
**/ listlockunspent: 'listlockunspent',
|
|
2949
|
+
/** listmyassets "( asset )" ( verbose ) ( count ) ( start ) (confs)
|
|
3159
2950
|
|
|
3160
2951
|
Returns a list of all asset that are owned by this wallet
|
|
3161
2952
|
|
|
@@ -3191,14 +2982,12 @@ Result (verbose=true):
|
|
|
3191
2982
|
{...}, {...}
|
|
3192
2983
|
|
|
3193
2984
|
Examples:
|
|
3194
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listmyassets", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2985
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listmyassets", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3195
2986
|
> neurai-cli listmyassets ASSET
|
|
3196
2987
|
> neurai-cli listmyassets "ASSET*" true 10 20
|
|
3197
2988
|
> neurai-cli listmyassets "ASSET*" true 10 20 1
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
## listreceivedbyaccount
|
|
3201
|
-
<br/> listreceivedbyaccount ( minconf include_empty include_watchonly)
|
|
2989
|
+
**/ listmyassets: 'listmyassets',
|
|
2990
|
+
/** listreceivedbyaccount ( minconf include_empty include_watchonly)
|
|
3202
2991
|
|
|
3203
2992
|
DEPRECATED. List balances by account.
|
|
3204
2993
|
|
|
@@ -3222,11 +3011,9 @@ Result:
|
|
|
3222
3011
|
Examples:
|
|
3223
3012
|
> neurai-cli listreceivedbyaccount
|
|
3224
3013
|
> neurai-cli listreceivedbyaccount 6 true
|
|
3225
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listreceivedbyaccount", "params": [6, true, true] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
## listreceivedbyaddress
|
|
3229
|
-
<br/> listreceivedbyaddress ( minconf include_empty include_watchonly)
|
|
3014
|
+
> 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/
|
|
3015
|
+
**/ listreceivedbyaccount: 'listreceivedbyaccount',
|
|
3016
|
+
/** listreceivedbyaddress ( minconf include_empty include_watchonly)
|
|
3230
3017
|
|
|
3231
3018
|
List balances by receiving address.
|
|
3232
3019
|
|
|
@@ -3255,11 +3042,9 @@ Result:
|
|
|
3255
3042
|
Examples:
|
|
3256
3043
|
> neurai-cli listreceivedbyaddress
|
|
3257
3044
|
> neurai-cli listreceivedbyaddress 6 true
|
|
3258
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listreceivedbyaddress", "params": [6, true, true] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
## listsinceblock
|
|
3262
|
-
<br/> listsinceblock ( "blockhash" target_confirmations include_watchonly include_removed )
|
|
3045
|
+
> 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/
|
|
3046
|
+
**/ listreceivedbyaddress: 'listreceivedbyaddress',
|
|
3047
|
+
/** listsinceblock ( "blockhash" target_confirmations include_watchonly include_removed )
|
|
3263
3048
|
|
|
3264
3049
|
Get all transactions in blocks since block [blockhash], or all transactions if omitted.
|
|
3265
3050
|
If "blockhash" is no longer a part of the main chain, transactions from the fork point onward are included.
|
|
@@ -3307,11 +3092,9 @@ Result:
|
|
|
3307
3092
|
Examples:
|
|
3308
3093
|
> neurai-cli listsinceblock
|
|
3309
3094
|
> neurai-cli listsinceblock "000000000000000bacf66f7497b7dc45ef753ee9a7d38571037cdb1a57f663ad" 6
|
|
3310
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listsinceblock", "params": ["000000000000000bacf66f7497b7dc45ef753ee9a7d38571037cdb1a57f663ad", 6] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
## listsnapshotrequests
|
|
3314
|
-
<br/> listsnapshotrequests ["asset_name" [block_height]]
|
|
3095
|
+
> 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/
|
|
3096
|
+
**/ listsinceblock: 'listsinceblock',
|
|
3097
|
+
/** listsnapshotrequests ["asset_name" [block_height]]
|
|
3315
3098
|
|
|
3316
3099
|
List snapshot request details.
|
|
3317
3100
|
|
|
@@ -3329,11 +3112,9 @@ Result:
|
|
|
3329
3112
|
|
|
3330
3113
|
Examples:
|
|
3331
3114
|
> neurai-cli listsnapshotrequests
|
|
3332
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listsnapshotrequests", "params": ["TRONCO" 345333] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
## listtagsforaddress
|
|
3336
|
-
<br/> listtagsforaddress address
|
|
3115
|
+
> 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/
|
|
3116
|
+
**/ listsnapshotrequests: 'listsnapshotrequests',
|
|
3117
|
+
/** listtagsforaddress address
|
|
3337
3118
|
|
|
3338
3119
|
List all tags assigned to an address
|
|
3339
3120
|
|
|
@@ -3347,11 +3128,9 @@ Result:
|
|
|
3347
3128
|
|
|
3348
3129
|
Examples:
|
|
3349
3130
|
> neurai-cli listtagsforaddress "address"
|
|
3350
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listtagsforaddress", "params": ["address"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
## listtransactions
|
|
3354
|
-
<br/> listtransactions ( "account" count skip include_watchonly)
|
|
3131
|
+
> 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/
|
|
3132
|
+
**/ listtagsforaddress: 'listtagsforaddress',
|
|
3133
|
+
/** listtransactions ( "account" count skip include_watchonly)
|
|
3355
3134
|
|
|
3356
3135
|
Returns up to 'count' most recent transactions skipping the first 'from' transactions for account 'account'.
|
|
3357
3136
|
|
|
@@ -3412,11 +3191,9 @@ List transactions 100 to 120
|
|
|
3412
3191
|
> neurai-cli listtransactions "*" 20 100
|
|
3413
3192
|
|
|
3414
3193
|
As a json rpc call
|
|
3415
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listtransactions", "params": ["*", 20, 100] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
## listunspent
|
|
3419
|
-
<br/> listunspent ( minconf maxconf ["addresses",...] [include_unsafe] [query_options])
|
|
3194
|
+
> 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/
|
|
3195
|
+
**/ listtransactions: 'listtransactions',
|
|
3196
|
+
/** listunspent ( minconf maxconf ["addresses",...] [include_unsafe] [query_options])
|
|
3420
3197
|
|
|
3421
3198
|
Returns array of unspent transaction outputs
|
|
3422
3199
|
with between minconf and maxconf (inclusive) confirmations.
|
|
@@ -3463,13 +3240,11 @@ Result
|
|
|
3463
3240
|
Examples
|
|
3464
3241
|
> neurai-cli listunspent
|
|
3465
3242
|
> neurai-cli listunspent 6 9999999 "[\"1PGFqEzfmQch1gKD3ra4k18PNj3tTUUSqg\",\"1LtvqCaApEdUGFkpKMM4MstjcaL4dKg8SP\"]"
|
|
3466
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listunspent", "params": [6, 9999999 "[\"1PGFqEzfmQch1gKD3ra4k18PNj3tTUUSqg\",\"1LtvqCaApEdUGFkpKMM4MstjcaL4dKg8SP\"]"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3243
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listunspent", "params": [6, 9999999 "[\"1PGFqEzfmQch1gKD3ra4k18PNj3tTUUSqg\",\"1LtvqCaApEdUGFkpKMM4MstjcaL4dKg8SP\"]"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3467
3244
|
> neurai-cli listunspent 6 9999999 '[]' true '{ "minimumAmount": 0.005 }'
|
|
3468
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listunspent", "params": [6, 9999999, [] , true, { "minimumAmount": 0.005 } ] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
## listwallets
|
|
3472
|
-
<br/> listwallets
|
|
3245
|
+
> 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/
|
|
3246
|
+
**/ listunspent: 'listunspent',
|
|
3247
|
+
/** listwallets
|
|
3473
3248
|
Returns a list of currently loaded wallets.
|
|
3474
3249
|
For full information on the wallet, use "getwalletinfo"
|
|
3475
3250
|
|
|
@@ -3481,11 +3256,9 @@ Result:
|
|
|
3481
3256
|
|
|
3482
3257
|
Examples:
|
|
3483
3258
|
> neurai-cli listwallets
|
|
3484
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listwallets", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
## lockunspent
|
|
3488
|
-
<br/> lockunspent unlock ([{"txid":"txid","vout":n},...])
|
|
3259
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listwallets", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3260
|
+
**/ listwallets: 'listwallets',
|
|
3261
|
+
/** lockunspent unlock ([{"txid":"txid","vout":n},...])
|
|
3489
3262
|
|
|
3490
3263
|
Updates list of temporarily unspendable outputs.
|
|
3491
3264
|
Temporarily lock (unlock=false) or unlock (unlock=true) specified transaction outputs.
|
|
@@ -3524,11 +3297,9 @@ Unlock the transaction again
|
|
|
3524
3297
|
> neurai-cli lockunspent true "[{\"txid\":\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\",\"vout\":1}]"
|
|
3525
3298
|
|
|
3526
3299
|
As a json rpc call
|
|
3527
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "lockunspent", "params": [false, "[{\"txid\":\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\",\"vout\":1}]"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
## move
|
|
3531
|
-
<br/> move "fromaccount" "toaccount" amount ( minconf "comment" )
|
|
3300
|
+
> 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/
|
|
3301
|
+
**/ lockunspent: 'lockunspent',
|
|
3302
|
+
/** move "fromaccount" "toaccount" amount ( minconf "comment" )
|
|
3532
3303
|
|
|
3533
3304
|
DEPRECATED. Move a specified amount from one account in your wallet to another.
|
|
3534
3305
|
|
|
@@ -3551,11 +3322,9 @@ Move 0.01 XNA timotei to akiko with a comment and funds have 6 confirmations
|
|
|
3551
3322
|
> neurai-cli move "timotei" "akiko" 0.01 6 "happy birthday!"
|
|
3552
3323
|
|
|
3553
3324
|
As a json rpc call
|
|
3554
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "move", "params": ["timotei", "akiko", 0.01, 6, "happy birthday!"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
## ping
|
|
3558
|
-
<br/> ping
|
|
3325
|
+
> 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/
|
|
3326
|
+
**/ move: 'move',
|
|
3327
|
+
/** ping
|
|
3559
3328
|
|
|
3560
3329
|
Requests that a ping be sent to all other nodes, to measure ping time.
|
|
3561
3330
|
Results provided in getpeerinfo, pingtime and pingwait fields are decimal seconds.
|
|
@@ -3563,11 +3332,9 @@ Ping command is handled in queue with all other commands, so it measures process
|
|
|
3563
3332
|
|
|
3564
3333
|
Examples:
|
|
3565
3334
|
> neurai-cli ping
|
|
3566
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "ping", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
## pprpcsb
|
|
3570
|
-
<br/> pprpcsb "header_hash" "mix_hash" "nonce"
|
|
3335
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "ping", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3336
|
+
**/ ping: 'ping',
|
|
3337
|
+
/** pprpcsb "header_hash" "mix_hash" "nonce"
|
|
3571
3338
|
|
|
3572
3339
|
Attempts to submit new block to network mined by kawpow gpu miner via rpc.
|
|
3573
3340
|
|
|
@@ -3580,11 +3347,9 @@ Result:
|
|
|
3580
3347
|
|
|
3581
3348
|
Examples:
|
|
3582
3349
|
> neurai-cli pprpcsb "header_hash" "mix_hash" 100000
|
|
3583
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "pprpcsb", "params": ["header_hash" "mix_hash" 100000] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
## preciousblock
|
|
3587
|
-
<br/> preciousblock "blockhash"
|
|
3350
|
+
> 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/
|
|
3351
|
+
**/ pprpcsb: 'pprpcsb',
|
|
3352
|
+
/** preciousblock "blockhash"
|
|
3588
3353
|
|
|
3589
3354
|
Treats a block as if it were received before others with the same work.
|
|
3590
3355
|
|
|
@@ -3599,11 +3364,9 @@ Result:
|
|
|
3599
3364
|
|
|
3600
3365
|
Examples:
|
|
3601
3366
|
> neurai-cli preciousblock "blockhash"
|
|
3602
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "preciousblock", "params": ["blockhash"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
## prioritisetransaction
|
|
3606
|
-
<br/> prioritisetransaction <txid> <dummy value> <fee delta>
|
|
3367
|
+
> 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/
|
|
3368
|
+
**/ preciousblock: 'preciousblock',
|
|
3369
|
+
/** prioritisetransaction <txid> <dummy value> <fee delta>
|
|
3607
3370
|
Accepts the transaction into mined blocks at a higher (or lower) priority
|
|
3608
3371
|
|
|
3609
3372
|
Arguments:
|
|
@@ -3619,11 +3382,9 @@ true (boolean) Returns true
|
|
|
3619
3382
|
|
|
3620
3383
|
Examples:
|
|
3621
3384
|
> neurai-cli prioritisetransaction "txid" 0.0 10000
|
|
3622
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "prioritisetransaction", "params": ["txid", 0.0, 10000] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
## pruneblockchain
|
|
3626
|
-
<br/> pruneblockchain
|
|
3385
|
+
> 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/
|
|
3386
|
+
**/ prioritisetransaction: 'prioritisetransaction',
|
|
3387
|
+
/** pruneblockchain
|
|
3627
3388
|
|
|
3628
3389
|
Arguments:
|
|
3629
3390
|
1. "height" (numeric, required) The block height to prune up to. May be set to a discrete height, or a unix timestamp
|
|
@@ -3634,11 +3395,9 @@ n (numeric) Height of the last block pruned.
|
|
|
3634
3395
|
|
|
3635
3396
|
Examples:
|
|
3636
3397
|
> neurai-cli pruneblockchain 1000
|
|
3637
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "pruneblockchain", "params": [1000] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
## purgesnapshot
|
|
3641
|
-
<br/> purgesnapshot "asset_name" block_height
|
|
3398
|
+
> 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/
|
|
3399
|
+
**/ pruneblockchain: 'pruneblockchain',
|
|
3400
|
+
/** purgesnapshot "asset_name" block_height
|
|
3642
3401
|
|
|
3643
3402
|
Removes details for the asset snapshot, at the specified height
|
|
3644
3403
|
|
|
@@ -3654,11 +3413,9 @@ Result:
|
|
|
3654
3413
|
|
|
3655
3414
|
Examples:
|
|
3656
3415
|
> neurai-cli purgesnapshot "ASSET_NAME" 28546
|
|
3657
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "purgesnapshot", "params": ["ASSET_NAME" 28546] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
## reissue
|
|
3661
|
-
<br/> reissue "asset_name" qty "to_address" "change_address" ( reissuable ) ( new_units) "( new_ipfs )"
|
|
3416
|
+
> 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/
|
|
3417
|
+
**/ purgesnapshot: 'purgesnapshot',
|
|
3418
|
+
/** reissue "asset_name" qty "to_address" "change_address" ( reissuable ) ( new_units) "( new_ipfs )"
|
|
3662
3419
|
|
|
3663
3420
|
Reissues a quantity of an asset to an owned address if you own the Owner Token
|
|
3664
3421
|
Can change the reissuable flag during reissuance
|
|
@@ -3677,11 +3434,9 @@ Result:
|
|
|
3677
3434
|
|
|
3678
3435
|
Examples:
|
|
3679
3436
|
> neurai-cli reissue "ASSET_NAME" 20 "address"
|
|
3680
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "reissue", "params": ["ASSET_NAME" 20 "address" "change_address" "true" 8 "Qmd286K6pohQcTKYqnS1YhWrCiS4gz7Xi34sdwMe9USZ7u"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
## reissuerestrictedasset
|
|
3684
|
-
<br/> reissuerestrictedasset "asset_name" qty to_address ( change_verifier ) ( "new_verifier" ) "( change_address )" ( new_units ) ( reissuable ) "( new_ipfs )"
|
|
3437
|
+
> 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/
|
|
3438
|
+
**/ reissue: 'reissue',
|
|
3439
|
+
/** reissuerestrictedasset "asset_name" qty to_address ( change_verifier ) ( "new_verifier" ) "( change_address )" ( new_units ) ( reissuable ) "( new_ipfs )"
|
|
3685
3440
|
|
|
3686
3441
|
Reissue an already created restricted asset
|
|
3687
3442
|
Reissuable is true/false for whether additional asset quantity can be created and if the verifier string can be changed
|
|
@@ -3706,10 +3461,8 @@ Examples:
|
|
|
3706
3461
|
> neurai-cli reissuerestrictedasset "$ASSET_NAME" 1000 "myaddress" true "KYC & !AML" "changeaddress"
|
|
3707
3462
|
> neurai-cli reissuerestrictedasset "$ASSET_NAME" 1000 "myaddress" true "KYC & !AML" "changeaddress" -1 true
|
|
3708
3463
|
> neurai-cli reissuerestrictedasset "$ASSET_NAME" 1000 "myaddress" false "" "changeaddress" -1 false QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
## removeprunedfunds
|
|
3712
|
-
<br/> removeprunedfunds "txid"
|
|
3464
|
+
**/ reissuerestrictedasset: 'reissuerestrictedasset',
|
|
3465
|
+
/** removeprunedfunds "txid"
|
|
3713
3466
|
|
|
3714
3467
|
Deletes the specified transaction from the wallet. Meant for use with pruned wallets and as a companion to importprunedfunds. This will affect wallet balances.
|
|
3715
3468
|
|
|
@@ -3720,11 +3473,9 @@ Examples:
|
|
|
3720
3473
|
> neurai-cli removeprunedfunds "a8d0c0184dde994a09ec054286f1ce581bebf46446a512166eae7628734ea0a5"
|
|
3721
3474
|
|
|
3722
3475
|
As a JSON-RPC call
|
|
3723
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "removeprunedfunds", "params": ["a8d0c0184dde994a09ec054286f1ce581bebf46446a512166eae7628734ea0a5"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
## removetagfromaddress
|
|
3727
|
-
<br/> removetagfromaddress tag_name to_address (change_address) (asset_data)
|
|
3476
|
+
> 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/
|
|
3477
|
+
**/ removeprunedfunds: 'removeprunedfunds',
|
|
3478
|
+
/** removetagfromaddress tag_name to_address (change_address) (asset_data)
|
|
3728
3479
|
|
|
3729
3480
|
Remove a tag from a address
|
|
3730
3481
|
|
|
@@ -3739,13 +3490,11 @@ Result:
|
|
|
3739
3490
|
|
|
3740
3491
|
Examples:
|
|
3741
3492
|
> neurai-cli removetagfromaddress "#TAG" "to_address"
|
|
3742
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "removetagfromaddress", "params": ["#TAG" "to_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3493
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "removetagfromaddress", "params": ["#TAG" "to_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3743
3494
|
> neurai-cli removetagfromaddress "#TAG" "to_address" "change_address"
|
|
3744
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "removetagfromaddress", "params": ["#TAG" "to_address" "change_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
## requestsnapshot
|
|
3748
|
-
<br/> requestsnapshot "asset_name" block_height
|
|
3495
|
+
> 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/
|
|
3496
|
+
**/ removetagfromaddress: 'removetagfromaddress',
|
|
3497
|
+
/** requestsnapshot "asset_name" block_height
|
|
3749
3498
|
|
|
3750
3499
|
Schedules a snapshot of the specified asset at the specified block height.
|
|
3751
3500
|
|
|
@@ -3760,11 +3509,9 @@ Result:
|
|
|
3760
3509
|
|
|
3761
3510
|
Examples:
|
|
3762
3511
|
> neurai-cli requestsnapshot "TRONCO" 12345
|
|
3763
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "requestsnapshot", "params": ["PHATSTACKS" 34987] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
## rescanblockchain
|
|
3767
|
-
<br/> rescanblockchain ("start_height") ("stop_height")
|
|
3512
|
+
> 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/
|
|
3513
|
+
**/ requestsnapshot: 'requestsnapshot',
|
|
3514
|
+
/** rescanblockchain ("start_height") ("stop_height")
|
|
3768
3515
|
|
|
3769
3516
|
Rescan the local blockchain for wallet related transactions.
|
|
3770
3517
|
|
|
@@ -3780,21 +3527,17 @@ Result:
|
|
|
3780
3527
|
|
|
3781
3528
|
Examples:
|
|
3782
3529
|
> neurai-cli rescanblockchain 100000 120000
|
|
3783
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "rescanblockchain", "params": [100000, 120000] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
## savemempool
|
|
3787
|
-
<br/> savemempool
|
|
3530
|
+
> 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/
|
|
3531
|
+
**/ rescanblockchain: 'rescanblockchain',
|
|
3532
|
+
/** savemempool
|
|
3788
3533
|
|
|
3789
3534
|
Dumps the mempool to disk.
|
|
3790
3535
|
|
|
3791
3536
|
Examples:
|
|
3792
3537
|
> neurai-cli savemempool
|
|
3793
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "savemempool", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
## sendfrom
|
|
3797
|
-
<br/> sendfrom "fromaccount" "toaddress" amount ( minconf "comment" "comment_to" )
|
|
3538
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "savemempool", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
3539
|
+
**/ savemempool: 'savemempool',
|
|
3540
|
+
/** sendfrom "fromaccount" "toaddress" amount ( minconf "comment" "comment_to" )
|
|
3798
3541
|
|
|
3799
3542
|
DEPRECATED (use sendtoaddress). Sent an amount from an account to a neurai address.
|
|
3800
3543
|
|
|
@@ -3824,11 +3567,9 @@ Send 0.01 from the tabby account to the given address, funds must have at least
|
|
|
3824
3567
|
> neurai-cli sendfrom "tabby" "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.01 6 "donation" "seans outpost"
|
|
3825
3568
|
|
|
3826
3569
|
As a json rpc call
|
|
3827
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendfrom", "params": ["tabby", "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd", 0.01, 6, "donation", "seans outpost"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
## sendfromaddress
|
|
3831
|
-
<br/> sendfromaddress "from_address" "to_address" amount ( "comment" "comment_to" subtractfeefromamount replaceable conf_target "estimate_mode")
|
|
3570
|
+
> 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/
|
|
3571
|
+
**/ sendfrom: 'sendfrom',
|
|
3572
|
+
/** sendfromaddress "from_address" "to_address" amount ( "comment" "comment_to" subtractfeefromamount replaceable conf_target "estimate_mode")
|
|
3832
3573
|
|
|
3833
3574
|
Send an amount from a specific address to a given address. All xna change will get sent back to the from_address
|
|
3834
3575
|
|
|
@@ -3856,11 +3597,9 @@ Examples:
|
|
|
3856
3597
|
> neurai-cli sendfromaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1
|
|
3857
3598
|
> neurai-cli sendfromaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1 "donation" "seans outpost"
|
|
3858
3599
|
> neurai-cli sendfromaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1 "" "" true
|
|
3859
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendfromaddress", "params": ["1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd", 0.1, "donation", "seans outpost"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
## sendmany
|
|
3863
|
-
<br/> sendmany "fromaccount" {"address":amount,...} ( minconf "comment" ["address",...] replaceable conf_target "estimate_mode")
|
|
3600
|
+
> 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/
|
|
3601
|
+
**/ sendfromaddress: 'sendfromaddress',
|
|
3602
|
+
/** sendmany "fromaccount" {"address":amount,...} ( minconf "comment" ["address",...] replaceable conf_target "estimate_mode")
|
|
3864
3603
|
|
|
3865
3604
|
Send multiple times. Amounts are double-precision floating point numbers.
|
|
3866
3605
|
|
|
@@ -3903,11 +3642,9 @@ Send two amounts to two different addresses, subtract fee from amount:
|
|
|
3903
3642
|
> neurai-cli sendmany "" "{\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\":0.01,\"1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz\":0.02}" 1 "" "[\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\",\"1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz\"]"
|
|
3904
3643
|
|
|
3905
3644
|
As a json rpc call
|
|
3906
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendmany", "params": ["", "{\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\":0.01,\"1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz\":0.02}", 6, "testing"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
## sendmessage
|
|
3910
|
-
<br/> sendmessage "channel_name" "ipfs_hash" (expire_time)
|
|
3645
|
+
> 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/
|
|
3646
|
+
**/ sendmany: 'sendmany',
|
|
3647
|
+
/** sendmessage "channel_name" "ipfs_hash" (expire_time)
|
|
3911
3648
|
|
|
3912
3649
|
Creates and broadcasts a message transaction to the network for a channel this wallet owns
|
|
3913
3650
|
Arguments:
|
|
@@ -3922,10 +3659,8 @@ txid
|
|
|
3922
3659
|
Examples:
|
|
3923
3660
|
> neurai-cli sendmessage "ASSET_NAME!" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
3924
3661
|
> neurai-cli sendmessage "ASSET_NAME!" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
## sendrawtransaction
|
|
3928
|
-
<br/> sendrawtransaction "hexstring" ( allowhighfees )
|
|
3662
|
+
**/ sendmessage: 'sendmessage',
|
|
3663
|
+
/** sendrawtransaction "hexstring" ( allowhighfees )
|
|
3929
3664
|
|
|
3930
3665
|
Submits raw transaction (serialized, hex-encoded) to local node and network.
|
|
3931
3666
|
|
|
@@ -3949,11 +3684,9 @@ Send the transaction (signed hex)
|
|
|
3949
3684
|
> neurai-cli sendrawtransaction "signedhex"
|
|
3950
3685
|
|
|
3951
3686
|
As a json rpc call
|
|
3952
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendrawtransaction", "params": ["signedhex"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
## sendtoaddress
|
|
3956
|
-
<br/> sendtoaddress "address" amount ( "comment" "comment_to" subtractfeefromamount replaceable conf_target "estimate_mode")
|
|
3687
|
+
> 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/
|
|
3688
|
+
**/ sendrawtransaction: 'sendrawtransaction',
|
|
3689
|
+
/** sendtoaddress "address" amount ( "comment" "comment_to" subtractfeefromamount replaceable conf_target "estimate_mode")
|
|
3957
3690
|
|
|
3958
3691
|
Send an amount to a given address.
|
|
3959
3692
|
|
|
@@ -3980,11 +3713,9 @@ Examples:
|
|
|
3980
3713
|
> neurai-cli sendtoaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1
|
|
3981
3714
|
> neurai-cli sendtoaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1 "donation" "seans outpost"
|
|
3982
3715
|
> neurai-cli sendtoaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1 "" "" true
|
|
3983
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendtoaddress", "params": ["1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd", 0.1, "donation", "seans outpost"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
## setaccount
|
|
3987
|
-
<br/> setaccount "address" "account"
|
|
3716
|
+
> 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/
|
|
3717
|
+
**/ sendtoaddress: 'sendtoaddress',
|
|
3718
|
+
/** setaccount "address" "account"
|
|
3988
3719
|
|
|
3989
3720
|
DEPRECATED. Sets the account associated with the given address.
|
|
3990
3721
|
|
|
@@ -3994,11 +3725,9 @@ Arguments:
|
|
|
3994
3725
|
|
|
3995
3726
|
Examples:
|
|
3996
3727
|
> neurai-cli setaccount "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX" "tabby"
|
|
3997
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "setaccount", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX", "tabby"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
## setban
|
|
4001
|
-
<br/> setban "subnet" "add|remove" (bantime) (absolute)
|
|
3728
|
+
> 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/
|
|
3729
|
+
**/ setaccount: 'setaccount',
|
|
3730
|
+
/** setban "subnet" "add|remove" (bantime) (absolute)
|
|
4002
3731
|
|
|
4003
3732
|
Attempts to add or remove an IP/Subnet from the banned list.
|
|
4004
3733
|
|
|
@@ -4011,11 +3740,9 @@ Arguments:
|
|
|
4011
3740
|
Examples:
|
|
4012
3741
|
> neurai-cli setban "192.168.0.6" "add" 86400
|
|
4013
3742
|
> neurai-cli setban "192.168.0.0/24" "add"
|
|
4014
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "setban", "params": ["192.168.0.6", "add", 86400] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
## setgenerate
|
|
4018
|
-
<br/> setgenerate generate ( genproclimit )
|
|
3743
|
+
> 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/
|
|
3744
|
+
**/ setban: 'setban',
|
|
3745
|
+
/** setgenerate generate ( genproclimit )
|
|
4019
3746
|
|
|
4020
3747
|
Set 'generate' true or false to turn generation on or off.
|
|
4021
3748
|
Generation is limited to 'genproclimit' processors, -1 is unlimited.
|
|
@@ -4037,20 +3764,16 @@ Turn off generation
|
|
|
4037
3764
|
> neurai-cli setgenerate false
|
|
4038
3765
|
|
|
4039
3766
|
Using json rpc
|
|
4040
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "setgenerate", "params": [true, 1] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
## setnetworkactive
|
|
4044
|
-
<br/> setnetworkactive true|false
|
|
3767
|
+
> 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/
|
|
3768
|
+
**/ setgenerate: 'setgenerate',
|
|
3769
|
+
/** setnetworkactive true|false
|
|
4045
3770
|
|
|
4046
3771
|
Disable/enable all p2p network activity.
|
|
4047
3772
|
|
|
4048
3773
|
Arguments:
|
|
4049
3774
|
1. "state" (boolean, required) true to enable networking, false to disable
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
## settxfee
|
|
4053
|
-
<br/> settxfee amount
|
|
3775
|
+
**/ setnetworkactive: 'setnetworkactive',
|
|
3776
|
+
/** settxfee amount
|
|
4054
3777
|
|
|
4055
3778
|
Set the transaction fee per kB. Overwrites the paytxfee parameter.
|
|
4056
3779
|
|
|
@@ -4062,11 +3785,9 @@ true|false (boolean) Returns true if successful
|
|
|
4062
3785
|
|
|
4063
3786
|
Examples:
|
|
4064
3787
|
> neurai-cli settxfee 0.00001
|
|
4065
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "settxfee", "params": [0.00001] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
## signmessage
|
|
4069
|
-
<br/> signmessage "address" "message"
|
|
3788
|
+
> 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/
|
|
3789
|
+
**/ settxfee: 'settxfee',
|
|
3790
|
+
/** signmessage "address" "message"
|
|
4070
3791
|
|
|
4071
3792
|
Sign a message with the private key of an address
|
|
4072
3793
|
|
|
@@ -4089,11 +3810,9 @@ Verify the signature
|
|
|
4089
3810
|
> neurai-cli verifymessage "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX" "signature" "my message"
|
|
4090
3811
|
|
|
4091
3812
|
As json rpc
|
|
4092
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "signmessage", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX", "my message"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
## signmessagewithprivkey
|
|
4096
|
-
<br/> signmessagewithprivkey "privkey" "message"
|
|
3813
|
+
> 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/
|
|
3814
|
+
**/ signmessage: 'signmessage',
|
|
3815
|
+
/** signmessagewithprivkey "privkey" "message"
|
|
4097
3816
|
|
|
4098
3817
|
Sign a message with the private key of an address
|
|
4099
3818
|
|
|
@@ -4113,11 +3832,9 @@ Verify the signature
|
|
|
4113
3832
|
> neurai-cli verifymessage "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX" "signature" "my message"
|
|
4114
3833
|
|
|
4115
3834
|
As json rpc
|
|
4116
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "signmessagewithprivkey", "params": ["privkey", "my message"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
## signrawtransaction
|
|
4120
|
-
<br/> signrawtransaction "hexstring" ( [{"txid":"id","vout":n,"scriptPubKey":"hex","redeemScript":"hex"},...] ["privatekey1",...] sighashtype )
|
|
3835
|
+
> 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/
|
|
3836
|
+
**/ signmessagewithprivkey: 'signmessagewithprivkey',
|
|
3837
|
+
/** signrawtransaction "hexstring" ( [{"txid":"id","vout":n,"scriptPubKey":"hex","redeemScript":"hex"},...] ["privatekey1",...] sighashtype )
|
|
4121
3838
|
|
|
4122
3839
|
Sign inputs for raw transaction (serialized, hex-encoded).
|
|
4123
3840
|
The second optional argument (may be null) is an array of previous transaction outputs that
|
|
@@ -4170,16 +3887,12 @@ Result:
|
|
|
4170
3887
|
|
|
4171
3888
|
Examples:
|
|
4172
3889
|
> neurai-cli signrawtransaction "myhex"
|
|
4173
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "signrawtransaction", "params": ["myhex"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
## stop
|
|
4177
|
-
<br/> stop
|
|
3890
|
+
> 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/
|
|
3891
|
+
**/ signrawtransaction: 'signrawtransaction',
|
|
3892
|
+
/** stop
|
|
4178
3893
|
|
|
4179
|
-
Stop Neurai server
|
|
4180
|
-
|
|
4181
|
-
## submitblock
|
|
4182
|
-
<br/> submitblock "hexdata" ( "dummy" )
|
|
3894
|
+
Stop Neurai server.**/ stop: 'stop',
|
|
3895
|
+
/** submitblock "hexdata" ( "dummy" )
|
|
4183
3896
|
|
|
4184
3897
|
Attempts to submit new block to network.
|
|
4185
3898
|
See https://en.neurai.it/wiki/BIP_0022 for full specification.
|
|
@@ -4192,11 +3905,9 @@ Result:
|
|
|
4192
3905
|
|
|
4193
3906
|
Examples:
|
|
4194
3907
|
> neurai-cli submitblock "mydata"
|
|
4195
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "submitblock", "params": ["mydata"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
## subscribetochannel
|
|
4199
|
-
<br/> subscribetochannel
|
|
3908
|
+
> 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/
|
|
3909
|
+
**/ submitblock: 'submitblock',
|
|
3910
|
+
/** subscribetochannel
|
|
4200
3911
|
|
|
4201
3912
|
Subscribe to a certain message channel
|
|
4202
3913
|
|
|
@@ -4209,11 +3920,9 @@ Result:[
|
|
|
4209
3920
|
|
|
4210
3921
|
Examples:
|
|
4211
3922
|
> neurai-cli subscribetochannel "ASSET_NAME!"
|
|
4212
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "subscribetochannel", "params": ["ASSET_NAME!"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
## testmempoolaccept
|
|
4216
|
-
<br/> testmempoolaccept ["rawtxs"] ( allowhighfees )
|
|
3923
|
+
> 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/
|
|
3924
|
+
**/ subscribetochannel: 'subscribetochannel',
|
|
3925
|
+
/** testmempoolaccept ["rawtxs"] ( allowhighfees )
|
|
4217
3926
|
|
|
4218
3927
|
Returns if raw transaction (serialized, hex-encoded) would be accepted by mempool.
|
|
4219
3928
|
|
|
@@ -4247,11 +3956,9 @@ Test acceptance of the transaction (signed hex)
|
|
|
4247
3956
|
> neurai-cli testmempoolaccept "signedhex"
|
|
4248
3957
|
|
|
4249
3958
|
As a json rpc call
|
|
4250
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "testmempoolaccept", "params": [["signedhex"]] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
## transfer
|
|
4254
|
-
<br/> transfer "asset_name" qty "to_address" "message" expire_time "change_address" "asset_change_address"
|
|
3959
|
+
> 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/
|
|
3960
|
+
**/ testmempoolaccept: 'testmempoolaccept',
|
|
3961
|
+
/** transfer "asset_name" qty "to_address" "message" expire_time "change_address" "asset_change_address"
|
|
4255
3962
|
|
|
4256
3963
|
Transfers a quantity of an owned asset to a given address
|
|
4257
3964
|
Arguments:
|
|
@@ -4271,10 +3978,8 @@ txid
|
|
|
4271
3978
|
Examples:
|
|
4272
3979
|
> neurai-cli transfer "ASSET_NAME" 20 "address" "" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
4273
3980
|
> neurai-cli transfer "ASSET_NAME" 20 "address" "" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
## transferfromaddress
|
|
4277
|
-
<br/> transferfromaddress "asset_name" "from_address" qty "to_address" "message" expire_time "xna_change_address" "asset_change_address"
|
|
3981
|
+
**/ transfer: 'transfer',
|
|
3982
|
+
/** transferfromaddress "asset_name" "from_address" qty "to_address" "message" expire_time "xna_change_address" "asset_change_address"
|
|
4278
3983
|
|
|
4279
3984
|
Transfer a quantity of an owned asset in a specific address to a given address
|
|
4280
3985
|
Arguments:
|
|
@@ -4294,11 +3999,9 @@ txid
|
|
|
4294
3999
|
|
|
4295
4000
|
Examples:
|
|
4296
4001
|
> neurai-cli transferfromaddress "ASSET_NAME" "fromaddress" 20 "address" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E", 156545652
|
|
4297
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "transferfromaddress", "params": ["ASSET_NAME" "fromaddress" 20 "address" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E", 156545652] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
## transferfromaddresses
|
|
4301
|
-
<br/> transferfromaddresses "asset_name" ["from_addresses"] qty "to_address" "message" expire_time "xna_change_address" "asset_change_address"
|
|
4002
|
+
> 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/
|
|
4003
|
+
**/ transferfromaddress: 'transferfromaddress',
|
|
4004
|
+
/** transferfromaddresses "asset_name" ["from_addresses"] qty "to_address" "message" expire_time "xna_change_address" "asset_change_address"
|
|
4302
4005
|
|
|
4303
4006
|
Transfer a quantity of an owned asset in specific address(es) to a given address
|
|
4304
4007
|
Arguments:
|
|
@@ -4318,11 +4021,9 @@ txid
|
|
|
4318
4021
|
|
|
4319
4022
|
Examples:
|
|
4320
4023
|
> neurai-cli transferfromaddresses "ASSET_NAME" '["fromaddress1", "fromaddress2"]' 20 "to_address" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 154652365
|
|
4321
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "transferfromaddresses", "params": ["ASSET_NAME" '["fromaddress1", "fromaddress2"]' 20 "to_address" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 154652365] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
## transferqualifier
|
|
4325
|
-
<br/> transferqualifier "qualifier_name" qty "to_address" ("change_address") ("message") (expire_time)
|
|
4024
|
+
> 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/
|
|
4025
|
+
**/ transferfromaddresses: 'transferfromaddresses',
|
|
4026
|
+
/** transferqualifier "qualifier_name" qty "to_address" ("change_address") ("message") (expire_time)
|
|
4326
4027
|
|
|
4327
4028
|
Transfer a qualifier asset owned by this wallet to the given address
|
|
4328
4029
|
Arguments:
|
|
@@ -4341,10 +4042,8 @@ txid
|
|
|
4341
4042
|
Examples:
|
|
4342
4043
|
> neurai-cli transferqualifier "#QUALIFIER" 20 "to_address" "" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
4343
4044
|
> neurai-cli transferqualifier "#QUALIFIER" 20 "to_address" "change_address" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
## unfreezeaddress
|
|
4347
|
-
<br/> unfreezeaddress asset_name address (change_address) (asset_data)
|
|
4045
|
+
**/ transferqualifier: 'transferqualifier',
|
|
4046
|
+
/** unfreezeaddress asset_name address (change_address) (asset_data)
|
|
4348
4047
|
|
|
4349
4048
|
Unfreeze an address from transferring a restricted asset
|
|
4350
4049
|
|
|
@@ -4359,13 +4058,11 @@ Result:
|
|
|
4359
4058
|
|
|
4360
4059
|
Examples:
|
|
4361
4060
|
> neurai-cli unfreezeaddress "$RESTRICTED_ASSET" "address"
|
|
4362
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "unfreezeaddress", "params": ["$RESTRICTED_ASSET" "address"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4061
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "unfreezeaddress", "params": ["$RESTRICTED_ASSET" "address"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4363
4062
|
> neurai-cli unfreezeaddress "$RESTRICTED_ASSET" "address" "change_address"
|
|
4364
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "unfreezeaddress", "params": ["$RESTRICTED_ASSET" "address" "change_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
## unfreezerestrictedasset
|
|
4368
|
-
<br/> unfreezerestrictedasset asset_name (change_address) (asset_data)
|
|
4063
|
+
> 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/
|
|
4064
|
+
**/ unfreezeaddress: 'unfreezeaddress',
|
|
4065
|
+
/** unfreezerestrictedasset asset_name (change_address) (asset_data)
|
|
4369
4066
|
|
|
4370
4067
|
Unfreeze all trading for a specific restricted asset
|
|
4371
4068
|
|
|
@@ -4379,13 +4076,11 @@ Result:
|
|
|
4379
4076
|
|
|
4380
4077
|
Examples:
|
|
4381
4078
|
> neurai-cli unfreezerestrictedasset "$RESTRICTED_ASSET"
|
|
4382
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "unfreezerestrictedasset", "params": ["$RESTRICTED_ASSET"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4079
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "unfreezerestrictedasset", "params": ["$RESTRICTED_ASSET"] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4383
4080
|
> neurai-cli unfreezerestrictedasset "$RESTRICTED_ASSET" "change_address"
|
|
4384
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "unfreezerestrictedasset", "params": ["$RESTRICTED_ASSET" "change_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
## unsubscribefromchannel
|
|
4388
|
-
<br/> unsubscribefromchannel
|
|
4081
|
+
> 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/
|
|
4082
|
+
**/ unfreezerestrictedasset: 'unfreezerestrictedasset',
|
|
4083
|
+
/** unsubscribefromchannel
|
|
4389
4084
|
|
|
4390
4085
|
Unsubscribe from a certain message channel
|
|
4391
4086
|
|
|
@@ -4398,11 +4093,9 @@ Result:[
|
|
|
4398
4093
|
|
|
4399
4094
|
Examples:
|
|
4400
4095
|
> neurai-cli unsubscribefromchannel "ASSET_NAME!"
|
|
4401
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "unsubscribefromchannel", "params": ["ASSET_NAME!"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
## uptime
|
|
4405
|
-
<br/> uptime
|
|
4096
|
+
> 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/
|
|
4097
|
+
**/ unsubscribefromchannel: 'unsubscribefromchannel',
|
|
4098
|
+
/** uptime
|
|
4406
4099
|
|
|
4407
4100
|
Returns the total uptime of the server.
|
|
4408
4101
|
|
|
@@ -4411,11 +4104,9 @@ ttt (numeric) The number of seconds that the server has been running
|
|
|
4411
4104
|
|
|
4412
4105
|
Examples:
|
|
4413
4106
|
> neurai-cli uptime
|
|
4414
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "uptime", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
-
## validateaddress
|
|
4418
|
-
<br/> validateaddress "address"
|
|
4107
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "uptime", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4108
|
+
**/ uptime: 'uptime',
|
|
4109
|
+
/** validateaddress "address"
|
|
4419
4110
|
|
|
4420
4111
|
Return information about the given neurai address.
|
|
4421
4112
|
|
|
@@ -4448,11 +4139,9 @@ Result:
|
|
|
4448
4139
|
|
|
4449
4140
|
Examples:
|
|
4450
4141
|
> neurai-cli validateaddress "1PSSGeFHDnKNxiEyFrD1wcEaHr9hrQDDWc"
|
|
4451
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "validateaddress", "params": ["1PSSGeFHDnKNxiEyFrD1wcEaHr9hrQDDWc"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
## verifychain
|
|
4455
|
-
<br/> verifychain ( checklevel nblocks )
|
|
4142
|
+
> 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/
|
|
4143
|
+
**/ validateaddress: 'validateaddress',
|
|
4144
|
+
/** verifychain ( checklevel nblocks )
|
|
4456
4145
|
|
|
4457
4146
|
Verifies blockchain database.
|
|
4458
4147
|
|
|
@@ -4465,11 +4154,9 @@ true|false (boolean) Verified or not
|
|
|
4465
4154
|
|
|
4466
4155
|
Examples:
|
|
4467
4156
|
> neurai-cli verifychain
|
|
4468
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "verifychain", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
## verifymessage
|
|
4472
|
-
<br/> verifymessage "address" "signature" "message"
|
|
4157
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "verifychain", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4158
|
+
**/ verifychain: 'verifychain',
|
|
4159
|
+
/** verifymessage "address" "signature" "message"
|
|
4473
4160
|
|
|
4474
4161
|
Verify a signed message
|
|
4475
4162
|
|
|
@@ -4493,11 +4180,9 @@ Verify the signature
|
|
|
4493
4180
|
> neurai-cli verifymessage "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX" "signature" "my message"
|
|
4494
4181
|
|
|
4495
4182
|
As json rpc
|
|
4496
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "verifymessage", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX", "signature", "my message"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
## verifytxoutproof
|
|
4500
|
-
<br/> verifytxoutproof "proof"
|
|
4183
|
+
> 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/
|
|
4184
|
+
**/ verifymessage: 'verifymessage',
|
|
4185
|
+
/** verifytxoutproof "proof"
|
|
4501
4186
|
|
|
4502
4187
|
Verifies that a proof points to a transaction in a block, returning the transaction it commits to
|
|
4503
4188
|
and throwing an RPC error if the block is not in our best chain
|
|
@@ -4507,10 +4192,8 @@ Arguments:
|
|
|
4507
4192
|
|
|
4508
4193
|
Result:
|
|
4509
4194
|
["txid"] (array, strings) The txid(s) which the proof commits to, or empty array if the proof is invalid
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
## viewallmessagechannels
|
|
4513
|
-
<br/> viewallmessagechannels
|
|
4195
|
+
**/ verifytxoutproof: 'verifytxoutproof',
|
|
4196
|
+
/** viewallmessagechannels
|
|
4514
4197
|
|
|
4515
4198
|
View all message channels the wallet is subscribed to
|
|
4516
4199
|
|
|
@@ -4521,11 +4204,9 @@ Result:[
|
|
|
4521
4204
|
|
|
4522
4205
|
Examples:
|
|
4523
4206
|
> neurai-cli viewallmessagechannels
|
|
4524
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewallmessagechannels", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
## viewallmessages
|
|
4528
|
-
<br/> viewallmessages
|
|
4207
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewallmessagechannels", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4208
|
+
**/ viewallmessagechannels: 'viewallmessagechannels',
|
|
4209
|
+
/** viewallmessages
|
|
4529
4210
|
|
|
4530
4211
|
View all messages that the wallet contains
|
|
4531
4212
|
|
|
@@ -4540,11 +4221,9 @@ Result:
|
|
|
4540
4221
|
|
|
4541
4222
|
Examples:
|
|
4542
4223
|
> neurai-cli viewallmessages
|
|
4543
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewallmessages", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
## viewmyrestrictedaddresses
|
|
4547
|
-
<br/> viewmyrestrictedaddresses
|
|
4224
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewallmessages", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4225
|
+
**/ viewallmessages: 'viewallmessages',
|
|
4226
|
+
/** viewmyrestrictedaddresses
|
|
4548
4227
|
|
|
4549
4228
|
View all addresses this wallet owns that have been restricted
|
|
4550
4229
|
|
|
@@ -4558,11 +4237,9 @@ Result:
|
|
|
4558
4237
|
|
|
4559
4238
|
Examples:
|
|
4560
4239
|
> neurai-cli viewmyrestrictedaddresses
|
|
4561
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewmyrestrictedaddresses", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
## viewmytaggedaddresses
|
|
4565
|
-
<br/> viewmytaggedaddresses
|
|
4240
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewmyrestrictedaddresses", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4241
|
+
**/ viewmyrestrictedaddresses: 'viewmyrestrictedaddresses',
|
|
4242
|
+
/** viewmytaggedaddresses
|
|
4566
4243
|
|
|
4567
4244
|
View all addresses this wallet owns that have been tagged
|
|
4568
4245
|
|
|
@@ -4576,5 +4253,267 @@ Result:
|
|
|
4576
4253
|
|
|
4577
4254
|
Examples:
|
|
4578
4255
|
> neurai-cli viewmytaggedaddresses
|
|
4579
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewmytaggedaddresses", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4580
|
-
|
|
4256
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewmytaggedaddresses", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8766/
|
|
4257
|
+
**/ viewmytaggedaddresses: 'viewmytaggedaddresses'
|
|
4258
|
+
};
|
|
4259
|
+
|
|
4260
|
+
|
|
4261
|
+
function $c3f6c693698dc7cd$var$throwSyntaxError() {
|
|
4262
|
+
throw new Error("Syntax error, call getRPC with (username, password, URL)");
|
|
4263
|
+
}
|
|
4264
|
+
function $c3f6c693698dc7cd$export$eb94c228b080d168(username, password, URL) {
|
|
4265
|
+
if (!username) $c3f6c693698dc7cd$var$throwSyntaxError();
|
|
4266
|
+
if (!password) $c3f6c693698dc7cd$var$throwSyntaxError();
|
|
4267
|
+
if (!URL) $c3f6c693698dc7cd$var$throwSyntaxError();
|
|
4268
|
+
return async function rpc(method, params) {
|
|
4269
|
+
const promise = new Promise((resolutionFunc, rejectionFunc)=>{
|
|
4270
|
+
const data = {
|
|
4271
|
+
jsonrpc: "2.0",
|
|
4272
|
+
id: Math.random(),
|
|
4273
|
+
method: method,
|
|
4274
|
+
params: params
|
|
4275
|
+
};
|
|
4276
|
+
try {
|
|
4277
|
+
const rpcResponse = $c3f6c693698dc7cd$var$postData(URL, data, username, password);
|
|
4278
|
+
rpcResponse.then(async (response)=>{
|
|
4279
|
+
/*
|
|
4280
|
+
This means that we got a response.
|
|
4281
|
+
The response can still be an error/problem but the server responded
|
|
4282
|
+
|
|
4283
|
+
*/ if (response.ok) {
|
|
4284
|
+
//Happy flow
|
|
4285
|
+
const obj = await response.json(); //Convert to JSON
|
|
4286
|
+
resolutionFunc(obj.result);
|
|
4287
|
+
} else if (response.status !== 200) {
|
|
4288
|
+
//OK something is wrong
|
|
4289
|
+
let obj = {
|
|
4290
|
+
error: null,
|
|
4291
|
+
description: null
|
|
4292
|
+
};
|
|
4293
|
+
try {
|
|
4294
|
+
obj = await response.json();
|
|
4295
|
+
} catch (e) {}
|
|
4296
|
+
const myError = {
|
|
4297
|
+
statusText: response.statusText,
|
|
4298
|
+
status: response.status,
|
|
4299
|
+
description: obj.description,
|
|
4300
|
+
error: obj.error
|
|
4301
|
+
};
|
|
4302
|
+
rejectionFunc(myError);
|
|
4303
|
+
}
|
|
4304
|
+
}).catch((e)=>{
|
|
4305
|
+
rejectionFunc({
|
|
4306
|
+
originalError: e,
|
|
4307
|
+
type: "ServerUnreachable",
|
|
4308
|
+
error: "Could not communicate with Neurai core node",
|
|
4309
|
+
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"
|
|
4310
|
+
});
|
|
4311
|
+
});
|
|
4312
|
+
} catch (e) {
|
|
4313
|
+
rejectionFunc(e.response);
|
|
4314
|
+
}
|
|
4315
|
+
});
|
|
4316
|
+
return promise;
|
|
4317
|
+
};
|
|
4318
|
+
}
|
|
4319
|
+
function $c3f6c693698dc7cd$var$getValidMethods() {
|
|
4320
|
+
const keys = Object.keys((0, $ebb7c8e52e3397d2$export$e13b82b2b0368a6a)).sort();
|
|
4321
|
+
return keys.join(" ");
|
|
4322
|
+
}
|
|
4323
|
+
// Example POST method implementation:
|
|
4324
|
+
async function $c3f6c693698dc7cd$var$postData(url = "", data = {}, username, password) {
|
|
4325
|
+
let base64Credentials = "";
|
|
4326
|
+
//btoa or Buffer, depends if we are in Node.js or in the browser
|
|
4327
|
+
if (typeof btoa === "function") base64Credentials = btoa(`${username}:${password}`);
|
|
4328
|
+
else if (Buffer) base64Credentials = Buffer.from(`${username}:${password}`).toString("base64");
|
|
4329
|
+
// Default options are marked with *
|
|
4330
|
+
const response = await fetch(url, {
|
|
4331
|
+
method: "POST",
|
|
4332
|
+
mode: "cors",
|
|
4333
|
+
headers: {
|
|
4334
|
+
Authorization: "Basic " + base64Credentials,
|
|
4335
|
+
"Content-Type": "application/json"
|
|
4336
|
+
},
|
|
4337
|
+
redirect: "follow",
|
|
4338
|
+
referrerPolicy: "no-referrer",
|
|
4339
|
+
body: JSON.stringify(data)
|
|
4340
|
+
});
|
|
4341
|
+
return response;
|
|
4342
|
+
} /*
|
|
4343
|
+
export const methods = {
|
|
4344
|
+
"getaddressbalance": "getaddressbalance",
|
|
4345
|
+
"getaddressdeltas": "getaddressdeltas",
|
|
4346
|
+
"getaddressmempool": "getaddressmempool",
|
|
4347
|
+
"getaddresstxids": "getaddresstxids",
|
|
4348
|
+
"getaddressutxos": "getaddressutxos",
|
|
4349
|
+
"getassetdata": "getassetdata",
|
|
4350
|
+
"getcacheinfo": "getcacheinfo",
|
|
4351
|
+
"getsnapshot": "getsnapshot",
|
|
4352
|
+
"issue": "issue",
|
|
4353
|
+
"issueunique": "issueunique",
|
|
4354
|
+
"listaddressesbyasset": "listaddressesbyasset",
|
|
4355
|
+
"listassetbalancesbyaddress": "listassetbalancesbyaddress",
|
|
4356
|
+
"listassets": "listassets",
|
|
4357
|
+
"listmyassets": "listmyassets",
|
|
4358
|
+
"purgesnapshot": "purgesnapshot",
|
|
4359
|
+
"reissue": "reissue",
|
|
4360
|
+
"transfer": "transfer",
|
|
4361
|
+
"transferfromaddress": "transferfromaddress",
|
|
4362
|
+
"transferfromaddresses": "transferfromaddresses",
|
|
4363
|
+
"clearmempool": "clearmempool",
|
|
4364
|
+
"decodeblock": "decodeblock",
|
|
4365
|
+
"getbestblockhash": "getbestblockhash",
|
|
4366
|
+
"getblock": "getblock",
|
|
4367
|
+
"getblockchaininfo": "getblockchaininfo",
|
|
4368
|
+
"getblockcount": "getblockcount",
|
|
4369
|
+
"getblockhash": "getblockhash",
|
|
4370
|
+
"getblockhashes": "getblockhashes",
|
|
4371
|
+
"getblockheader": "getblockheader",
|
|
4372
|
+
"getchaintips": "getchaintips",
|
|
4373
|
+
"getchaintxstats": "getchaintxstats",
|
|
4374
|
+
"getdifficulty": "getdifficulty",
|
|
4375
|
+
"getmempoolancestors": "getmempoolancestors",
|
|
4376
|
+
"getmempooldescendants": "getmempooldescendants",
|
|
4377
|
+
"getmempoolentry": "getmempoolentry",
|
|
4378
|
+
"getmempoolinfo": "getmempoolinfo",
|
|
4379
|
+
"getrawmempool": "getrawmempool",
|
|
4380
|
+
"getspentinfo": "getspentinfo",
|
|
4381
|
+
"gettxout": "gettxout",
|
|
4382
|
+
"gettxoutproof": "gettxoutproof",
|
|
4383
|
+
"gettxoutsetinfo": "gettxoutsetinfo",
|
|
4384
|
+
"preciousblock": "preciousblock",
|
|
4385
|
+
"pruneblockchain": "pruneblockchain",
|
|
4386
|
+
"savemempool": "savemempool",
|
|
4387
|
+
"verifychain": "verifychain",
|
|
4388
|
+
"verifytxoutproof": "verifytxoutproof",
|
|
4389
|
+
"getinfo": "getinfo",
|
|
4390
|
+
"getmemoryinfo": "getmemoryinfo",
|
|
4391
|
+
"getrpcinfo": "getrpcinfo",
|
|
4392
|
+
"help": "help",
|
|
4393
|
+
"stop": "stop",
|
|
4394
|
+
"uptime": "uptime",
|
|
4395
|
+
"generate": "generate",
|
|
4396
|
+
"generatetoaddress": "generatetoaddress",
|
|
4397
|
+
"getgenerate": "getgenerate",
|
|
4398
|
+
"setgenerate": "setgenerate",
|
|
4399
|
+
"clearmessages": "clearmessages",
|
|
4400
|
+
"sendmessage": "sendmessage",
|
|
4401
|
+
"subscribetochannel": "subscribetochannel",
|
|
4402
|
+
"unsubscribefromchannel": "unsubscribefromchannel",
|
|
4403
|
+
"viewallmessagechannels": "viewallmessagechannels",
|
|
4404
|
+
"viewallmessages": "viewallmessages",
|
|
4405
|
+
"getblocktemplate": "getblocktemplate",
|
|
4406
|
+
"getkawpowhash": "getkawpowhash",
|
|
4407
|
+
"getmininginfo": "getmininginfo",
|
|
4408
|
+
"getnetworkhashps": "getnetworkhashps",
|
|
4409
|
+
"pprpcsb": "pprpcsb",
|
|
4410
|
+
"prioritisetransaction": "prioritisetransaction",
|
|
4411
|
+
"submitblock": "submitblock",
|
|
4412
|
+
"addnode": "addnode",
|
|
4413
|
+
"clearbanned": "clearbanned",
|
|
4414
|
+
"disconnectnode": "disconnectnode",
|
|
4415
|
+
"getaddednodeinfo": "getaddednodeinfo",
|
|
4416
|
+
"getconnectioncount": "getconnectioncount",
|
|
4417
|
+
"getnettotals": "getnettotals",
|
|
4418
|
+
"getnetworkinfo": "getnetworkinfo",
|
|
4419
|
+
"getpeerinfo": "getpeerinfo",
|
|
4420
|
+
"listbanned": "listbanned",
|
|
4421
|
+
"ping": "ping",
|
|
4422
|
+
"setban": "setban",
|
|
4423
|
+
"setnetworkactive": "setnetworkactive",
|
|
4424
|
+
"combinerawtransaction": "combinerawtransaction",
|
|
4425
|
+
"createrawtransaction": "createrawtransaction",
|
|
4426
|
+
"decoderawtransaction": "decoderawtransaction",
|
|
4427
|
+
"decodescript": "decodescript",
|
|
4428
|
+
"fundrawtransaction": "fundrawtransaction",
|
|
4429
|
+
"getrawtransaction": "getrawtransaction",
|
|
4430
|
+
"sendrawtransaction": "sendrawtransaction",
|
|
4431
|
+
"signrawtransaction": "signrawtransaction",
|
|
4432
|
+
"testmempoolaccept": "testmempoolaccept",
|
|
4433
|
+
"addtagtoaddress": "addtagtoaddress",
|
|
4434
|
+
"checkaddressrestriction": "checkaddressrestriction",
|
|
4435
|
+
"checkaddresstag": "checkaddresstag",
|
|
4436
|
+
"checkglobalrestriction": "checkglobalrestriction",
|
|
4437
|
+
"freezeaddress": "freezeaddress",
|
|
4438
|
+
"freezerestrictedasset": "freezerestrictedasset",
|
|
4439
|
+
"getverifierstring": "getverifierstring",
|
|
4440
|
+
"issuequalifierasset": "issuequalifierasset",
|
|
4441
|
+
"issuerestrictedasset": "issuerestrictedasset",
|
|
4442
|
+
"isvalidverifierstring": "isvalidverifierstring",
|
|
4443
|
+
"listaddressesfortag": "listaddressesfortag",
|
|
4444
|
+
"listaddressrestrictions": "listaddressrestrictions",
|
|
4445
|
+
"listglobalrestrictions": "listglobalrestrictions",
|
|
4446
|
+
"listtagsforaddress": "listtagsforaddress",
|
|
4447
|
+
"reissuerestrictedasset": "reissuerestrictedasset",
|
|
4448
|
+
"removetagfromaddress": "removetagfromaddress",
|
|
4449
|
+
"transferqualifier": "transferqualifier",
|
|
4450
|
+
"unfreezeaddress": "unfreezeaddress",
|
|
4451
|
+
"unfreezerestrictedasset": "unfreezerestrictedasset",
|
|
4452
|
+
"viewmyrestrictedaddresses": "viewmyrestrictedaddresses",
|
|
4453
|
+
"viewmytaggedaddresses": "viewmytaggedaddresses",
|
|
4454
|
+
"cancelsnapshotrequest": "cancelsnapshotrequest",
|
|
4455
|
+
"distributereward": "distributereward",
|
|
4456
|
+
"getdistributestatus": "getdistributestatus",
|
|
4457
|
+
"getsnapshotrequest": "getsnapshotrequest",
|
|
4458
|
+
"listsnapshotrequests": "listsnapshotrequests",
|
|
4459
|
+
"requestsnapshot": "requestsnapshot",
|
|
4460
|
+
"createmultisig": "createmultisig",
|
|
4461
|
+
"estimatefee": "estimatefee",
|
|
4462
|
+
"estimatesmartfee": "estimatesmartfee",
|
|
4463
|
+
"signmessagewithprivkey": "signmessagewithprivkey",
|
|
4464
|
+
"validateaddress": "validateaddress",
|
|
4465
|
+
"verifymessage": "verifymessage",
|
|
4466
|
+
"abandontransaction": "abandontransaction",
|
|
4467
|
+
"abortrescan": "abortrescan",
|
|
4468
|
+
"addmultisigaddress": "addmultisigaddress",
|
|
4469
|
+
"addwitnessaddress": "addwitnessaddress",
|
|
4470
|
+
"backupwallet": "backupwallet",
|
|
4471
|
+
"bumpfee": "bumpfee",
|
|
4472
|
+
"dumpprivkey": "dumpprivkey",
|
|
4473
|
+
"dumpwallet": "dumpwallet",
|
|
4474
|
+
"encryptwallet": "encryptwallet",
|
|
4475
|
+
"getaccount": "getaccount",
|
|
4476
|
+
"getaccountaddress": "getaccountaddress",
|
|
4477
|
+
"getaddressesbyaccount": "getaddressesbyaccount",
|
|
4478
|
+
"getbalance": "getbalance",
|
|
4479
|
+
"getmasterkeyinfo": "getmasterkeyinfo",
|
|
4480
|
+
"getmywords": "getmywords",
|
|
4481
|
+
"getnewaddress": "getnewaddress",
|
|
4482
|
+
"getrawchangeaddress": "getrawchangeaddress",
|
|
4483
|
+
"getreceivedbyaccount": "getreceivedbyaccount",
|
|
4484
|
+
"getreceivedbyaddress": "getreceivedbyaddress",
|
|
4485
|
+
"gettransaction": "gettransaction",
|
|
4486
|
+
"getunconfirmedbalance": "getunconfirmedbalance",
|
|
4487
|
+
"getwalletinfo": "getwalletinfo",
|
|
4488
|
+
"importaddress": "importaddress",
|
|
4489
|
+
"importmulti": "importmulti",
|
|
4490
|
+
"importprivkey": "importprivkey",
|
|
4491
|
+
"importprunedfunds": "importprunedfunds",
|
|
4492
|
+
"importpubkey": "importpubkey",
|
|
4493
|
+
"importwallet": "importwallet",
|
|
4494
|
+
"keypoolrefill": "keypoolrefill",
|
|
4495
|
+
"listaccounts": "listaccounts",
|
|
4496
|
+
"listaddressgroupings": "listaddressgroupings",
|
|
4497
|
+
"listlockunspent": "listlockunspent",
|
|
4498
|
+
"listreceivedbyaccount": "listreceivedbyaccount",
|
|
4499
|
+
"listreceivedbyaddress": "listreceivedbyaddress",
|
|
4500
|
+
"listsinceblock": "listsinceblock",
|
|
4501
|
+
"listtransactions": "listtransactions",
|
|
4502
|
+
"listunspent": "listunspent",
|
|
4503
|
+
"listwallets": "listwallets",
|
|
4504
|
+
"lockunspent": "lockunspent",
|
|
4505
|
+
"move": "move",
|
|
4506
|
+
"removeprunedfunds": "removeprunedfunds",
|
|
4507
|
+
"rescanblockchain": "rescanblockchain",
|
|
4508
|
+
"sendfrom": "sendfrom",
|
|
4509
|
+
"sendfromaddress": "sendfromaddress",
|
|
4510
|
+
"sendmany": "sendmany",
|
|
4511
|
+
"sendtoaddress": "sendtoaddress",
|
|
4512
|
+
"setaccount": "setaccount",
|
|
4513
|
+
"settxfee": "settxfee",
|
|
4514
|
+
"signmessage": "signmessage"
|
|
4515
|
+
}*/
|
|
4516
|
+
|
|
4517
|
+
|
|
4518
|
+
export {$c3f6c693698dc7cd$export$eb94c228b080d168 as getRPC, $ebb7c8e52e3397d2$export$e13b82b2b0368a6a as methods};
|
|
4519
|
+
//# sourceMappingURL=index.mjs.map
|