@neuraiproject/neurai-rpc 0.2.7 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +41 -5
- package/{createDocs.js → createDocs.mjs} +25 -6
- package/docs.json +145 -145
- package/docs.ts +683 -1196
- package/index.ts +71 -32
- package/neurai_methods.md +493 -493
- package/package.json +8 -12
package/docs.ts
CHANGED
|
@@ -1,12 +1,179 @@
|
|
|
1
|
+
interface IMethods {
|
|
2
|
+
abandontransaction: string;
|
|
3
|
+
abortrescan: string;
|
|
4
|
+
addmultisigaddress: string;
|
|
5
|
+
addnode: string;
|
|
6
|
+
addtagtoaddress: string;
|
|
7
|
+
addwitnessaddress: string;
|
|
8
|
+
backupwallet: string;
|
|
9
|
+
bumpfee: string;
|
|
10
|
+
cancelsnapshotrequest: string;
|
|
11
|
+
checkaddressrestriction: string;
|
|
12
|
+
checkaddresstag: string;
|
|
13
|
+
checkglobalrestriction: string;
|
|
14
|
+
clearbanned: string;
|
|
15
|
+
clearmempool: string;
|
|
16
|
+
clearmessages: string;
|
|
17
|
+
combinerawtransaction: string;
|
|
18
|
+
createmultisig: string;
|
|
19
|
+
createrawtransaction: string;
|
|
20
|
+
decodeblock: string;
|
|
21
|
+
decoderawtransaction: string;
|
|
22
|
+
decodescript: string;
|
|
23
|
+
disconnectnode: string;
|
|
24
|
+
distributereward: string;
|
|
25
|
+
dumpprivkey: string;
|
|
26
|
+
dumpwallet: string;
|
|
27
|
+
encryptwallet: string;
|
|
28
|
+
estimatefee: string;
|
|
29
|
+
estimatesmartfee: string;
|
|
30
|
+
freezeaddress: string;
|
|
31
|
+
freezerestrictedasset: string;
|
|
32
|
+
fundrawtransaction: string;
|
|
33
|
+
generate: string;
|
|
34
|
+
generatetoaddress: string;
|
|
35
|
+
getaccount: string;
|
|
36
|
+
getaccountaddress: string;
|
|
37
|
+
getaddednodeinfo: string;
|
|
38
|
+
getaddressbalance: string;
|
|
39
|
+
getaddressdeltas: string;
|
|
40
|
+
getaddressesbyaccount: string;
|
|
41
|
+
getaddressmempool: string;
|
|
42
|
+
getaddresstxids: string;
|
|
43
|
+
getaddressutxos: string;
|
|
44
|
+
getassetdata: string;
|
|
45
|
+
getbalance: string;
|
|
46
|
+
getbestblockhash: string;
|
|
47
|
+
getblock: string;
|
|
48
|
+
getblockchaininfo: string;
|
|
49
|
+
getblockcount: string;
|
|
50
|
+
getblockhash: string;
|
|
51
|
+
getblockhashes: string;
|
|
52
|
+
getblockheader: string;
|
|
53
|
+
getblocktemplate: string;
|
|
54
|
+
getcacheinfo: string;
|
|
55
|
+
getchaintips: string;
|
|
56
|
+
getchaintxstats: string;
|
|
57
|
+
getconnectioncount: string;
|
|
58
|
+
getdifficulty: string;
|
|
59
|
+
getdistributestatus: string;
|
|
60
|
+
getgenerate: string;
|
|
61
|
+
getinfo: string;
|
|
62
|
+
getkawpowhash: string;
|
|
63
|
+
getmasterkeyinfo: string;
|
|
64
|
+
getmemoryinfo: string;
|
|
65
|
+
getmempoolancestors: string;
|
|
66
|
+
getmempooldescendants: string;
|
|
67
|
+
getmempoolentry: string;
|
|
68
|
+
getmempoolinfo: string;
|
|
69
|
+
getmininginfo: string;
|
|
70
|
+
getmywords: string;
|
|
71
|
+
getnettotals: string;
|
|
72
|
+
getnetworkhashps: string;
|
|
73
|
+
getnetworkinfo: string;
|
|
74
|
+
getnewaddress: string;
|
|
75
|
+
getpeerinfo: string;
|
|
76
|
+
getrawchangeaddress: string;
|
|
77
|
+
getrawmempool: string;
|
|
78
|
+
getrawtransaction: string;
|
|
79
|
+
getreceivedbyaccount: string;
|
|
80
|
+
getreceivedbyaddress: string;
|
|
81
|
+
getrpcinfo: string;
|
|
82
|
+
getsnapshot: string;
|
|
83
|
+
getsnapshotrequest: string;
|
|
84
|
+
getspentinfo: string;
|
|
85
|
+
gettransaction: string;
|
|
86
|
+
gettxout: string;
|
|
87
|
+
gettxoutproof: string;
|
|
88
|
+
gettxoutsetinfo: string;
|
|
89
|
+
getunconfirmedbalance: string;
|
|
90
|
+
getverifierstring: string;
|
|
91
|
+
getwalletinfo: string;
|
|
92
|
+
help: string;
|
|
93
|
+
importaddress: string;
|
|
94
|
+
importmulti: string;
|
|
95
|
+
importprivkey: string;
|
|
96
|
+
importprunedfunds: string;
|
|
97
|
+
importpubkey: string;
|
|
98
|
+
importwallet: string;
|
|
99
|
+
issue: string;
|
|
100
|
+
issuequalifierasset: string;
|
|
101
|
+
issuerestrictedasset: string;
|
|
102
|
+
issueunique: string;
|
|
103
|
+
isvalidverifierstring: string;
|
|
104
|
+
keypoolrefill: string;
|
|
105
|
+
listaccounts: string;
|
|
106
|
+
listaddressesbyasset: string;
|
|
107
|
+
listaddressesfortag: string;
|
|
108
|
+
listaddressgroupings: string;
|
|
109
|
+
listaddressrestrictions: string;
|
|
110
|
+
listassetbalancesbyaddress: string;
|
|
111
|
+
listassets: string;
|
|
112
|
+
listbanned: string;
|
|
113
|
+
listglobalrestrictions: string;
|
|
114
|
+
listlockunspent: string;
|
|
115
|
+
listmyassets: string;
|
|
116
|
+
listreceivedbyaccount: string;
|
|
117
|
+
listreceivedbyaddress: string;
|
|
118
|
+
listsinceblock: string;
|
|
119
|
+
listsnapshotrequests: string;
|
|
120
|
+
listtagsforaddress: string;
|
|
121
|
+
listtransactions: string;
|
|
122
|
+
listunspent: string;
|
|
123
|
+
listwallets: string;
|
|
124
|
+
lockunspent: string;
|
|
125
|
+
move: string;
|
|
126
|
+
ping: string;
|
|
127
|
+
pprpcsb: string;
|
|
128
|
+
preciousblock: string;
|
|
129
|
+
prioritisetransaction: string;
|
|
130
|
+
pruneblockchain: string;
|
|
131
|
+
purgesnapshot: string;
|
|
132
|
+
reissue: string;
|
|
133
|
+
reissuerestrictedasset: string;
|
|
134
|
+
removeprunedfunds: string;
|
|
135
|
+
removetagfromaddress: string;
|
|
136
|
+
requestsnapshot: string;
|
|
137
|
+
rescanblockchain: string;
|
|
138
|
+
savemempool: string;
|
|
139
|
+
sendfrom: string;
|
|
140
|
+
sendfromaddress: string;
|
|
141
|
+
sendmany: string;
|
|
142
|
+
sendmessage: string;
|
|
143
|
+
sendrawtransaction: string;
|
|
144
|
+
sendtoaddress: string;
|
|
145
|
+
setaccount: string;
|
|
146
|
+
setban: string;
|
|
147
|
+
setgenerate: string;
|
|
148
|
+
setnetworkactive: string;
|
|
149
|
+
settxfee: string;
|
|
150
|
+
signmessage: string;
|
|
151
|
+
signmessagewithprivkey: string;
|
|
152
|
+
signrawtransaction: string;
|
|
153
|
+
stop: string;
|
|
154
|
+
submitblock: string;
|
|
155
|
+
subscribetochannel: string;
|
|
156
|
+
testmempoolaccept: string;
|
|
157
|
+
transfer: string;
|
|
158
|
+
transferfromaddress: string;
|
|
159
|
+
transferfromaddresses: string;
|
|
160
|
+
transferqualifier: string;
|
|
161
|
+
unfreezeaddress: string;
|
|
162
|
+
unfreezerestrictedasset: string;
|
|
163
|
+
unsubscribefromchannel: string;
|
|
164
|
+
uptime: string;
|
|
165
|
+
validateaddress: string;
|
|
166
|
+
verifychain: string;
|
|
167
|
+
verifymessage: string;
|
|
168
|
+
verifytxoutproof: string;
|
|
169
|
+
viewallmessagechannels: string;
|
|
170
|
+
viewallmessages: string;
|
|
171
|
+
viewmyrestrictedaddresses: string;
|
|
172
|
+
viewmytaggedaddresses: string;
|
|
173
|
+
}
|
|
1
174
|
|
|
2
|
-
export const methods ={
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/** abandontransaction "txid"
|
|
175
|
+
export const methods: IMethods = {
|
|
176
|
+
/** abandontransaction "txid"
|
|
10
177
|
|
|
11
178
|
Mark in-wallet transaction <txid> as abandoned
|
|
12
179
|
This will mark this transaction and all its in-wallet descendants as abandoned which will allow
|
|
@@ -21,15 +188,11 @@ Result:
|
|
|
21
188
|
|
|
22
189
|
Examples:
|
|
23
190
|
> raven-cli abandontransaction "1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"
|
|
24
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "abandontransaction", "params": ["1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
191
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "abandontransaction", "params": ["1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
25
192
|
**/
|
|
26
|
-
abandontransaction:
|
|
27
|
-
|
|
193
|
+
abandontransaction: "abandontransaction",
|
|
28
194
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
/** abortrescan
|
|
195
|
+
/** abortrescan
|
|
33
196
|
|
|
34
197
|
Stops current wallet rescan triggered e.g. by an importprivkey call.
|
|
35
198
|
|
|
@@ -42,15 +205,11 @@ Abort the running wallet rescan
|
|
|
42
205
|
> raven-cli abortrescan
|
|
43
206
|
|
|
44
207
|
As a JSON-RPC call
|
|
45
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "abortrescan", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
208
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "abortrescan", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
46
209
|
**/
|
|
47
|
-
abortrescan:
|
|
48
|
-
|
|
210
|
+
abortrescan: "abortrescan",
|
|
49
211
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
/** addmultisigaddress nrequired ["key",...] ( "account" )
|
|
212
|
+
/** addmultisigaddress nrequired ["key",...] ( "account" )
|
|
54
213
|
|
|
55
214
|
Add a nrequired-to-sign multisignature address to the wallet.
|
|
56
215
|
Each key is a Raven address or hex-encoded public key.
|
|
@@ -74,15 +233,11 @@ Add a multisig address from 2 addresses
|
|
|
74
233
|
> raven-cli addmultisigaddress 2 "[\"16sSauSf5pF2UkUwvKGq4qjNRzBZYqgEL5\",\"171sgjn4YtPu27adkKGrdDwzRTxnRkBfKV\"]"
|
|
75
234
|
|
|
76
235
|
As json rpc call
|
|
77
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "addmultisigaddress", "params": [2, "[\"16sSauSf5pF2UkUwvKGq4qjNRzBZYqgEL5\",\"171sgjn4YtPu27adkKGrdDwzRTxnRkBfKV\"]"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
236
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "addmultisigaddress", "params": [2, "[\"16sSauSf5pF2UkUwvKGq4qjNRzBZYqgEL5\",\"171sgjn4YtPu27adkKGrdDwzRTxnRkBfKV\"]"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
78
237
|
**/
|
|
79
|
-
addmultisigaddress:
|
|
80
|
-
|
|
238
|
+
addmultisigaddress: "addmultisigaddress",
|
|
81
239
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
/** addnode "node" "add|remove|onetry"
|
|
240
|
+
/** addnode "node" "add|remove|onetry"
|
|
86
241
|
|
|
87
242
|
Attempts to add or remove a node from the addnode list.
|
|
88
243
|
Or try a connection to a node once.
|
|
@@ -95,15 +250,11 @@ Arguments:
|
|
|
95
250
|
|
|
96
251
|
Examples:
|
|
97
252
|
> raven-cli addnode "192.168.0.6:8767" "onetry"
|
|
98
|
-
> 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:
|
|
253
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "addnode", "params": ["192.168.0.6:8767", "onetry"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
99
254
|
**/
|
|
100
|
-
addnode:
|
|
101
|
-
|
|
255
|
+
addnode: "addnode",
|
|
102
256
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
/** addtagtoaddress tag_name to_address (change_address) (asset_data)
|
|
257
|
+
/** addtagtoaddress tag_name to_address (change_address) (asset_data)
|
|
107
258
|
|
|
108
259
|
Assign a tag to a address
|
|
109
260
|
|
|
@@ -118,17 +269,13 @@ Result:
|
|
|
118
269
|
|
|
119
270
|
Examples:
|
|
120
271
|
> raven-cli addtagtoaddress "#TAG" "to_address"
|
|
121
|
-
> 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:
|
|
272
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "addtagtoaddress", "params": ["#TAG" "to_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
122
273
|
> raven-cli addtagtoaddress "#TAG" "to_address" "change_address"
|
|
123
|
-
> 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:
|
|
274
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "addtagtoaddress", "params": ["#TAG" "to_address" "change_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
124
275
|
**/
|
|
125
|
-
addtagtoaddress:
|
|
126
|
-
|
|
276
|
+
addtagtoaddress: "addtagtoaddress",
|
|
127
277
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
/** addwitnessaddress "address"
|
|
278
|
+
/** addwitnessaddress "address"
|
|
132
279
|
|
|
133
280
|
Add a witness address for a script (with pubkey or redeemscript known).
|
|
134
281
|
It returns the witness script.
|
|
@@ -140,13 +287,9 @@ Result:
|
|
|
140
287
|
"witnessaddress", (string) The value of the new address (P2SH of witness script).
|
|
141
288
|
}
|
|
142
289
|
**/
|
|
143
|
-
addwitnessaddress:
|
|
144
|
-
|
|
290
|
+
addwitnessaddress: "addwitnessaddress",
|
|
145
291
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
/** backupwallet "destination"
|
|
292
|
+
/** backupwallet "destination"
|
|
150
293
|
|
|
151
294
|
Safely copies current wallet file to destination, which can be a directory or a path with filename.
|
|
152
295
|
|
|
@@ -155,22 +298,14 @@ Arguments:
|
|
|
155
298
|
|
|
156
299
|
Examples:
|
|
157
300
|
> raven-cli backupwallet "backup.dat"
|
|
158
|
-
> 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:
|
|
301
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "backupwallet", "params": ["backup.dat"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
159
302
|
**/
|
|
160
|
-
backupwallet:
|
|
161
|
-
|
|
303
|
+
backupwallet: "backupwallet",
|
|
162
304
|
|
|
305
|
+
/** bumpfee has been deprecated on the XNA Wallet.**/
|
|
306
|
+
bumpfee: "bumpfee",
|
|
163
307
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
/** bumpfee has been deprecated on the XNA Wallet.**/
|
|
167
|
-
bumpfee:'bumpfee',
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
/** cancelsnapshotrequest "asset_name" block_height
|
|
308
|
+
/** cancelsnapshotrequest "asset_name" block_height
|
|
174
309
|
|
|
175
310
|
Cancels the specified snapshot request.
|
|
176
311
|
|
|
@@ -185,15 +320,11 @@ Result:
|
|
|
185
320
|
|
|
186
321
|
Examples:
|
|
187
322
|
> raven-cli cancelsnapshotrequest "TRONCO" 12345
|
|
188
|
-
> 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:
|
|
323
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "cancelsnapshotrequest", "params": ["PHATSTACKS" 34987] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
189
324
|
**/
|
|
190
|
-
cancelsnapshotrequest:
|
|
191
|
-
|
|
325
|
+
cancelsnapshotrequest: "cancelsnapshotrequest",
|
|
192
326
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
/** checkaddressrestriction address restricted_name
|
|
327
|
+
/** checkaddressrestriction address restricted_name
|
|
197
328
|
|
|
198
329
|
Checks to see if an address has been frozen by the given restricted asset
|
|
199
330
|
|
|
@@ -206,15 +337,11 @@ Result:
|
|
|
206
337
|
|
|
207
338
|
Examples:
|
|
208
339
|
> raven-cli checkaddressrestriction "address" "restricted_name"
|
|
209
|
-
> 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:
|
|
340
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "checkaddressrestriction", "params": ["address" "restricted_name"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
210
341
|
**/
|
|
211
|
-
checkaddressrestriction:
|
|
212
|
-
|
|
342
|
+
checkaddressrestriction: "checkaddressrestriction",
|
|
213
343
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
/** checkaddresstag address tag_name
|
|
344
|
+
/** checkaddresstag address tag_name
|
|
218
345
|
|
|
219
346
|
Checks to see if an address has the given tag
|
|
220
347
|
|
|
@@ -227,15 +354,11 @@ Result:
|
|
|
227
354
|
|
|
228
355
|
Examples:
|
|
229
356
|
> raven-cli checkaddresstag "address" "tag_name"
|
|
230
|
-
> 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:
|
|
357
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "checkaddresstag", "params": ["address" "tag_name"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
231
358
|
**/
|
|
232
|
-
checkaddresstag:
|
|
233
|
-
|
|
359
|
+
checkaddresstag: "checkaddresstag",
|
|
234
360
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
/** checkglobalrestriction restricted_name
|
|
361
|
+
/** checkglobalrestriction restricted_name
|
|
239
362
|
|
|
240
363
|
Checks to see if a restricted asset is globally frozen
|
|
241
364
|
|
|
@@ -247,43 +370,31 @@ Result:
|
|
|
247
370
|
|
|
248
371
|
Examples:
|
|
249
372
|
> raven-cli checkglobalrestriction "restricted_name"
|
|
250
|
-
> 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:
|
|
373
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "checkglobalrestriction", "params": ["restricted_name"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
251
374
|
**/
|
|
252
|
-
checkglobalrestriction:
|
|
253
|
-
|
|
375
|
+
checkglobalrestriction: "checkglobalrestriction",
|
|
254
376
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
/** clearbanned
|
|
377
|
+
/** clearbanned
|
|
259
378
|
|
|
260
379
|
Clear all banned IPs.
|
|
261
380
|
|
|
262
381
|
Examples:
|
|
263
382
|
> raven-cli clearbanned
|
|
264
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearbanned", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
383
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearbanned", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
265
384
|
**/
|
|
266
|
-
clearbanned:
|
|
267
|
-
|
|
385
|
+
clearbanned: "clearbanned",
|
|
268
386
|
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
/** clearmempool
|
|
387
|
+
/** clearmempool
|
|
273
388
|
|
|
274
389
|
Removes all transaction from the mempool
|
|
275
390
|
|
|
276
391
|
Examples:
|
|
277
392
|
> raven-cli clearmempool
|
|
278
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearmempool", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
393
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearmempool", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
279
394
|
**/
|
|
280
|
-
clearmempool:
|
|
281
|
-
|
|
395
|
+
clearmempool: "clearmempool",
|
|
282
396
|
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
/** clearmessages
|
|
397
|
+
/** clearmessages
|
|
287
398
|
|
|
288
399
|
Delete current database of messages
|
|
289
400
|
|
|
@@ -293,15 +404,11 @@ Result:[
|
|
|
293
404
|
|
|
294
405
|
Examples:
|
|
295
406
|
> raven-cli clearmessages
|
|
296
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearmessages", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
407
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "clearmessages", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
297
408
|
**/
|
|
298
|
-
clearmessages:
|
|
299
|
-
|
|
409
|
+
clearmessages: "clearmessages",
|
|
300
410
|
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
/** combinerawtransaction ["hexstring",...]
|
|
411
|
+
/** combinerawtransaction ["hexstring",...]
|
|
305
412
|
|
|
306
413
|
Combine multiple partially signed transactions into one transaction.
|
|
307
414
|
The combined transaction may be another partially signed transaction or a
|
|
@@ -319,13 +426,9 @@ Result:
|
|
|
319
426
|
Examples:
|
|
320
427
|
> raven-cli combinerawtransaction ["myhex1", "myhex2", "myhex3"]
|
|
321
428
|
**/
|
|
322
|
-
combinerawtransaction:
|
|
323
|
-
|
|
429
|
+
combinerawtransaction: "combinerawtransaction",
|
|
324
430
|
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
/** createmultisig nrequired ["key",...]
|
|
431
|
+
/** createmultisig nrequired ["key",...]
|
|
329
432
|
|
|
330
433
|
Creates a multi-signature address with n signature of m keys required.
|
|
331
434
|
It returns a json object with the address and redeemScript.
|
|
@@ -350,15 +453,11 @@ Create a multisig address from 2 addresses
|
|
|
350
453
|
> raven-cli createmultisig 2 "[\"16sSauSf5pF2UkUwvKGq4qjNRzBZYqgEL5\",\"171sgjn4YtPu27adkKGrdDwzRTxnRkBfKV\"]"
|
|
351
454
|
|
|
352
455
|
As a json rpc call
|
|
353
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "createmultisig", "params": [2, "[\"16sSauSf5pF2UkUwvKGq4qjNRzBZYqgEL5\",\"171sgjn4YtPu27adkKGrdDwzRTxnRkBfKV\"]"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
456
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "createmultisig", "params": [2, "[\"16sSauSf5pF2UkUwvKGq4qjNRzBZYqgEL5\",\"171sgjn4YtPu27adkKGrdDwzRTxnRkBfKV\"]"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
354
457
|
**/
|
|
355
|
-
createmultisig:
|
|
356
|
-
|
|
458
|
+
createmultisig: "createmultisig",
|
|
357
459
|
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
/** createrawtransaction [{"txid":"id","vout":n},...] {"address":(amount or object),"data":"hex",...}
|
|
460
|
+
/** createrawtransaction [{"txid":"id","vout":n},...] {"address":(amount or object),"data":"hex",...}
|
|
362
461
|
( locktime ) ( replaceable )
|
|
363
462
|
|
|
364
463
|
Create a transaction spending the given inputs and creating new outputs.
|
|
@@ -601,15 +700,11 @@ Examples:
|
|
|
601
700
|
> raven-cli createrawtransaction "[{\"txid\":\"mycoin\",\"vout\":0},{\"txid\":\"myasset\",\"vout\":0}]" "{\"address\":{\"transfer\":{\"MYASSET\":50}}}"
|
|
602
701
|
> raven-cli createrawtransaction "[{\"txid\":\"mycoin\",\"vout\":0},{\"txid\":\"myasset\",\"vout\":0}]" "{\"address\":{\"transferwithmessage\":{\"MYASSET\":50,\"message\":\"hash\",\"expire_time\": utc_time}}}"
|
|
603
702
|
> raven-cli createrawtransaction "[{\"txid\":\"mycoin\",\"vout\":0},{\"txid\":\"myownership\",\"vout\":0}]" "{\"issuer_address\":{\"reissue\":{\"asset_name\":\"MYASSET\",\"asset_quantity\":2000000}}}"
|
|
604
|
-
> 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:
|
|
703
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "createrawtransaction", "params": ["[{\"txid\":\"mycoin\",\"vout\":0}]", "{\"data\":\"00010203\"}"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
605
704
|
**/
|
|
606
|
-
createrawtransaction:
|
|
607
|
-
|
|
705
|
+
createrawtransaction: "createrawtransaction",
|
|
608
706
|
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
/** decodeblock "blockhex"
|
|
707
|
+
/** decodeblock "blockhex"
|
|
613
708
|
|
|
614
709
|
Arguments:
|
|
615
710
|
1. "blockhex" (string, required) The block hex
|
|
@@ -635,15 +730,11 @@ Result:
|
|
|
635
730
|
|
|
636
731
|
Examples:
|
|
637
732
|
> raven-cli decodeblock "xxxx"
|
|
638
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "decodeblock", "params": ["xxxx"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
733
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "decodeblock", "params": ["xxxx"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
639
734
|
**/
|
|
640
|
-
decodeblock:
|
|
641
|
-
|
|
735
|
+
decodeblock: "decodeblock",
|
|
642
736
|
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
/** decoderawtransaction "hexstring"
|
|
737
|
+
/** decoderawtransaction "hexstring"
|
|
647
738
|
|
|
648
739
|
Return a JSON object representing the serialized, hex-encoded transaction.
|
|
649
740
|
|
|
@@ -697,15 +788,11 @@ Result:
|
|
|
697
788
|
|
|
698
789
|
Examples:
|
|
699
790
|
> raven-cli decoderawtransaction "hexstring"
|
|
700
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "decoderawtransaction", "params": ["hexstring"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
791
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "decoderawtransaction", "params": ["hexstring"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
701
792
|
**/
|
|
702
|
-
decoderawtransaction:
|
|
703
|
-
|
|
793
|
+
decoderawtransaction: "decoderawtransaction",
|
|
704
794
|
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
/** decodescript "hexstring"
|
|
795
|
+
/** decodescript "hexstring"
|
|
709
796
|
|
|
710
797
|
Decode a hex-encoded script.
|
|
711
798
|
|
|
@@ -740,15 +827,11 @@ Result:
|
|
|
740
827
|
|
|
741
828
|
Examples:
|
|
742
829
|
> raven-cli decodescript "hexstring"
|
|
743
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "decodescript", "params": ["hexstring"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
830
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "decodescript", "params": ["hexstring"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
744
831
|
**/
|
|
745
|
-
decodescript:
|
|
746
|
-
|
|
832
|
+
decodescript: "decodescript",
|
|
747
833
|
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
/** disconnectnode "[address]" [nodeid]
|
|
834
|
+
/** disconnectnode "[address]" [nodeid]
|
|
752
835
|
|
|
753
836
|
Immediately disconnects from the specified peer node.
|
|
754
837
|
|
|
@@ -763,16 +846,12 @@ Arguments:
|
|
|
763
846
|
Examples:
|
|
764
847
|
> raven-cli disconnectnode "192.168.0.6:8767"
|
|
765
848
|
> raven-cli disconnectnode "" 1
|
|
766
|
-
> 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:
|
|
767
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "disconnectnode", "params": ["", 1] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
849
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "disconnectnode", "params": ["192.168.0.6:8767"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
850
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "disconnectnode", "params": ["", 1] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
768
851
|
**/
|
|
769
|
-
disconnectnode:
|
|
770
|
-
|
|
852
|
+
disconnectnode: "disconnectnode",
|
|
771
853
|
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
/** distributereward "asset_name" snapshot_height "distribution_asset_name" gross_distribution_amount ( "exception_addresses" ) ("change_address") ("dry_run")
|
|
854
|
+
/** distributereward "asset_name" snapshot_height "distribution_asset_name" gross_distribution_amount ( "exception_addresses" ) ("change_address") ("dry_run")
|
|
776
855
|
|
|
777
856
|
Splits the specified amount of the distribution asset to all owners of asset_name that are not in the optional exclusion_addresses
|
|
778
857
|
|
|
@@ -805,16 +884,12 @@ Result:
|
|
|
805
884
|
Examples:
|
|
806
885
|
> raven-cli distributereward "TRONCO" 12345 "XNA" 1000
|
|
807
886
|
> raven-cli distributereward "PHATSTACKS" 12345 "DIVIDENDS" 1000 "mwN7xC3yomYdvJuVXkVC7ymY9wNBjWNduD,n4Rf18edydDaRBh7t6gHUbuByLbWEoWUTg"
|
|
808
|
-
> 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:
|
|
809
|
-
> 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:
|
|
887
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "distributereward", "params": ["TRONCO" 34987 "DIVIDENDS" 100000] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
888
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "distributereward", "params": ["PHATSTACKS" 34987 "XNA" 100000 "mwN7xC3yomYdvJuVXkVC7ymY9wNBjWNduD,n4Rf18edydDaRBh7t6gHUbuByLbWEoWUTg"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
810
889
|
**/
|
|
811
|
-
distributereward:
|
|
812
|
-
|
|
890
|
+
distributereward: "distributereward",
|
|
813
891
|
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
/** dumpprivkey "address"
|
|
892
|
+
/** dumpprivkey "address"
|
|
818
893
|
|
|
819
894
|
Reveals the private key corresponding to 'address'.
|
|
820
895
|
Then the importprivkey can be used with this output
|
|
@@ -828,15 +903,11 @@ Result:
|
|
|
828
903
|
Examples:
|
|
829
904
|
> raven-cli dumpprivkey "myaddress"
|
|
830
905
|
> raven-cli importprivkey "mykey"
|
|
831
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "dumpprivkey", "params": ["myaddress"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
906
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "dumpprivkey", "params": ["myaddress"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
832
907
|
**/
|
|
833
|
-
dumpprivkey:
|
|
834
|
-
|
|
908
|
+
dumpprivkey: "dumpprivkey",
|
|
835
909
|
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
/** dumpwallet "filename"
|
|
910
|
+
/** dumpwallet "filename"
|
|
840
911
|
|
|
841
912
|
Dumps all wallet keys in a human-readable format to a server-side file. This does not allow overwriting existing files.
|
|
842
913
|
|
|
@@ -850,15 +921,11 @@ Result:
|
|
|
850
921
|
|
|
851
922
|
Examples:
|
|
852
923
|
> raven-cli dumpwallet "test"
|
|
853
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "dumpwallet", "params": ["test"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
924
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "dumpwallet", "params": ["test"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
854
925
|
**/
|
|
855
|
-
dumpwallet:
|
|
856
|
-
|
|
926
|
+
dumpwallet: "dumpwallet",
|
|
857
927
|
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
/** encryptwallet "passphrase"
|
|
928
|
+
/** encryptwallet "passphrase"
|
|
862
929
|
|
|
863
930
|
Encrypts the wallet with 'passphrase'. This is for first time encryption.
|
|
864
931
|
After this, any calls that interact with private keys such as sending or signing
|
|
@@ -885,15 +952,11 @@ Now lock the wallet again by removing the passphrase
|
|
|
885
952
|
> raven-cli walletlock
|
|
886
953
|
|
|
887
954
|
As a json rpc call
|
|
888
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "encryptwallet", "params": ["my pass phrase"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
955
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "encryptwallet", "params": ["my pass phrase"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
889
956
|
**/
|
|
890
|
-
encryptwallet:
|
|
891
|
-
|
|
957
|
+
encryptwallet: "encryptwallet",
|
|
892
958
|
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
/** estimatefee nblocks
|
|
959
|
+
/** estimatefee nblocks
|
|
897
960
|
|
|
898
961
|
DEPRECATED. Please use estimatesmartfee for more intelligent estimates.
|
|
899
962
|
Estimates the approximate fee per kilobyte needed for a transaction to begin
|
|
@@ -914,13 +977,9 @@ a fee that is high enough to get reliably included in the next block.
|
|
|
914
977
|
Example:
|
|
915
978
|
> raven-cli estimatefee 6
|
|
916
979
|
**/
|
|
917
|
-
estimatefee:
|
|
918
|
-
|
|
980
|
+
estimatefee: "estimatefee",
|
|
919
981
|
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
/** estimatesmartfee conf_target ("estimate_mode")
|
|
982
|
+
/** estimatesmartfee conf_target ("estimate_mode")
|
|
924
983
|
|
|
925
984
|
Estimates the approximate fee per kilobyte needed for a transaction to begin
|
|
926
985
|
confirmation within conf_target blocks if possible and return the number of blocks
|
|
@@ -954,13 +1013,9 @@ have been observed to make an estimate for any number of blocks.
|
|
|
954
1013
|
Example:
|
|
955
1014
|
> raven-cli estimatesmartfee 6
|
|
956
1015
|
**/
|
|
957
|
-
estimatesmartfee:
|
|
958
|
-
|
|
1016
|
+
estimatesmartfee: "estimatesmartfee",
|
|
959
1017
|
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
/** freezeaddress asset_name address (change_address) (asset_data)
|
|
1018
|
+
/** freezeaddress asset_name address (change_address) (asset_data)
|
|
964
1019
|
|
|
965
1020
|
Freeze an address from transferring a restricted asset
|
|
966
1021
|
|
|
@@ -975,17 +1030,13 @@ Result:
|
|
|
975
1030
|
|
|
976
1031
|
Examples:
|
|
977
1032
|
> raven-cli freezeaddress "$RESTRICTED_ASSET" "address"
|
|
978
|
-
> 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:
|
|
1033
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "freezeaddress", "params": ["$RESTRICTED_ASSET" "address"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
979
1034
|
> raven-cli freezeaddress "$RESTRICTED_ASSET" "address" "change_address"
|
|
980
|
-
> 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:
|
|
1035
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "freezeaddress", "params": ["$RESTRICTED_ASSET" "address" "change_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
981
1036
|
**/
|
|
982
|
-
freezeaddress:
|
|
983
|
-
|
|
1037
|
+
freezeaddress: "freezeaddress",
|
|
984
1038
|
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
/** freezerestrictedasset asset_name (change_address) (asset_data)
|
|
1039
|
+
/** freezerestrictedasset asset_name (change_address) (asset_data)
|
|
989
1040
|
|
|
990
1041
|
Freeze all trading for a specific restricted asset
|
|
991
1042
|
|
|
@@ -999,17 +1050,13 @@ Result:
|
|
|
999
1050
|
|
|
1000
1051
|
Examples:
|
|
1001
1052
|
> raven-cli freezerestrictedasset "$RESTRICTED_ASSET"
|
|
1002
|
-
> 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:
|
|
1053
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "freezerestrictedasset", "params": ["$RESTRICTED_ASSET"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1003
1054
|
> raven-cli freezerestrictedasset "$RESTRICTED_ASSET" "change_address"
|
|
1004
|
-
> 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:
|
|
1055
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "freezerestrictedasset", "params": ["$RESTRICTED_ASSET" "change_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1005
1056
|
**/
|
|
1006
|
-
freezerestrictedasset:
|
|
1007
|
-
|
|
1057
|
+
freezerestrictedasset: "freezerestrictedasset",
|
|
1008
1058
|
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
/** fundrawtransaction "hexstring" ( options )
|
|
1059
|
+
/** fundrawtransaction "hexstring" ( options )
|
|
1013
1060
|
|
|
1014
1061
|
Add inputs to a transaction until it has enough in value to meet its out value.
|
|
1015
1062
|
This will not modify existing inputs, and will add at most one change output to the outputs.
|
|
@@ -1067,13 +1114,9 @@ Sign the transaction
|
|
|
1067
1114
|
Send the transaction
|
|
1068
1115
|
> raven-cli sendrawtransaction "signedtransactionhex"
|
|
1069
1116
|
**/
|
|
1070
|
-
fundrawtransaction:
|
|
1071
|
-
|
|
1117
|
+
fundrawtransaction: "fundrawtransaction",
|
|
1072
1118
|
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
/** generate nblocks ( maxtries )
|
|
1119
|
+
/** generate nblocks ( maxtries )
|
|
1077
1120
|
|
|
1078
1121
|
Mine up to nblocks blocks immediately (before the RPC call returns) to an address in the wallet.
|
|
1079
1122
|
|
|
@@ -1089,13 +1132,9 @@ Examples:
|
|
|
1089
1132
|
Generate 11 blocks
|
|
1090
1133
|
> raven-cli generate 11
|
|
1091
1134
|
**/
|
|
1092
|
-
generate:
|
|
1093
|
-
|
|
1135
|
+
generate: "generate",
|
|
1094
1136
|
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
/** generatetoaddress nblocks address (maxtries)
|
|
1137
|
+
/** generatetoaddress nblocks address (maxtries)
|
|
1099
1138
|
|
|
1100
1139
|
Mine blocks immediately to a specified address (before the RPC call returns)
|
|
1101
1140
|
|
|
@@ -1112,13 +1151,9 @@ Examples:
|
|
|
1112
1151
|
Generate 11 blocks to myaddress
|
|
1113
1152
|
> raven-cli generatetoaddress 11 "myaddress"
|
|
1114
1153
|
**/
|
|
1115
|
-
generatetoaddress:
|
|
1116
|
-
|
|
1154
|
+
generatetoaddress: "generatetoaddress",
|
|
1117
1155
|
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
/** getaccount "address"
|
|
1156
|
+
/** getaccount "address"
|
|
1122
1157
|
|
|
1123
1158
|
DEPRECATED. Returns the account associated with the given address.
|
|
1124
1159
|
|
|
@@ -1130,15 +1165,11 @@ Result:
|
|
|
1130
1165
|
|
|
1131
1166
|
Examples:
|
|
1132
1167
|
> raven-cli getaccount "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX"
|
|
1133
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaccount", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1168
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaccount", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1134
1169
|
**/
|
|
1135
|
-
getaccount:
|
|
1136
|
-
|
|
1170
|
+
getaccount: "getaccount",
|
|
1137
1171
|
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
/** getaccountaddress "account"
|
|
1172
|
+
/** getaccountaddress "account"
|
|
1142
1173
|
|
|
1143
1174
|
DEPRECATED. Returns the current Raven address for receiving payments to this account.
|
|
1144
1175
|
|
|
@@ -1152,15 +1183,11 @@ Examples:
|
|
|
1152
1183
|
> raven-cli getaccountaddress
|
|
1153
1184
|
> raven-cli getaccountaddress ""
|
|
1154
1185
|
> raven-cli getaccountaddress "myaccount"
|
|
1155
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaccountaddress", "params": ["myaccount"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1186
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaccountaddress", "params": ["myaccount"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1156
1187
|
**/
|
|
1157
|
-
getaccountaddress:
|
|
1158
|
-
|
|
1188
|
+
getaccountaddress: "getaccountaddress",
|
|
1159
1189
|
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
/** getaddednodeinfo ( "node" )
|
|
1190
|
+
/** getaddednodeinfo ( "node" )
|
|
1164
1191
|
|
|
1165
1192
|
Returns information about the given added node, or all added nodes
|
|
1166
1193
|
(note that onetry addnodes are not listed here)
|
|
@@ -1185,15 +1212,11 @@ Result:
|
|
|
1185
1212
|
|
|
1186
1213
|
Examples:
|
|
1187
1214
|
> raven-cli getaddednodeinfo "192.168.0.201"
|
|
1188
|
-
> 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:
|
|
1215
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddednodeinfo", "params": ["192.168.0.201"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1189
1216
|
**/
|
|
1190
|
-
getaddednodeinfo:
|
|
1191
|
-
|
|
1217
|
+
getaddednodeinfo: "getaddednodeinfo",
|
|
1192
1218
|
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
/** getaddressbalance
|
|
1219
|
+
/** getaddressbalance
|
|
1197
1220
|
|
|
1198
1221
|
Returns the balance for an address(es) (requires addressindex to be enabled).
|
|
1199
1222
|
|
|
@@ -1216,7 +1239,7 @@ Result:
|
|
|
1216
1239
|
OR
|
|
1217
1240
|
[
|
|
1218
1241
|
{
|
|
1219
|
-
"assetName" (string) The asset associated with the balance (XNA for
|
|
1242
|
+
"assetName" (string) The asset associated with the balance (XNA for Ravencoin)
|
|
1220
1243
|
"balance" (string) The current balance in satoshis
|
|
1221
1244
|
"received" (string) The total number of satoshis received (including change)
|
|
1222
1245
|
},...
|
|
@@ -1225,16 +1248,12 @@ OR
|
|
|
1225
1248
|
Examples:
|
|
1226
1249
|
> raven-cli getaddressbalance '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}'
|
|
1227
1250
|
> raven-cli getaddressbalance '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}', true
|
|
1228
|
-
> 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:
|
|
1229
|
-
> 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:
|
|
1251
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressbalance", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1252
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressbalance", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}, true] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1230
1253
|
**/
|
|
1231
|
-
getaddressbalance:
|
|
1232
|
-
|
|
1254
|
+
getaddressbalance: "getaddressbalance",
|
|
1233
1255
|
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
/** getaddressdeltas
|
|
1256
|
+
/** getaddressdeltas
|
|
1238
1257
|
|
|
1239
1258
|
Returns all changes for an address (requires addressindex to be enabled).
|
|
1240
1259
|
|
|
@@ -1254,7 +1273,7 @@ Arguments:
|
|
|
1254
1273
|
Result:
|
|
1255
1274
|
[
|
|
1256
1275
|
{
|
|
1257
|
-
"assetName" (string) The asset associated with the deltas (XNA for
|
|
1276
|
+
"assetName" (string) The asset associated with the deltas (XNA for Ravencoin)
|
|
1258
1277
|
"satoshis" (number) The difference of satoshis
|
|
1259
1278
|
"txid" (string) The related txid
|
|
1260
1279
|
"index" (number) The related input or output index
|
|
@@ -1265,17 +1284,13 @@ Result:
|
|
|
1265
1284
|
|
|
1266
1285
|
Examples:
|
|
1267
1286
|
> raven-cli getaddressdeltas '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}'
|
|
1268
|
-
> 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:
|
|
1287
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressdeltas", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1269
1288
|
> raven-cli getaddressdeltas '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"],"assetName":"MY_ASSET"}'
|
|
1270
|
-
> 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:
|
|
1289
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressdeltas", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"],"assetName":"MY_ASSET"}] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1271
1290
|
**/
|
|
1272
|
-
getaddressdeltas:
|
|
1273
|
-
|
|
1291
|
+
getaddressdeltas: "getaddressdeltas",
|
|
1274
1292
|
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
/** getaddressesbyaccount "account"
|
|
1293
|
+
/** getaddressesbyaccount "account"
|
|
1279
1294
|
|
|
1280
1295
|
DEPRECATED. Returns the list of addresses for the given account.
|
|
1281
1296
|
|
|
@@ -1290,15 +1305,11 @@ Result:
|
|
|
1290
1305
|
|
|
1291
1306
|
Examples:
|
|
1292
1307
|
> raven-cli getaddressesbyaccount "tabby"
|
|
1293
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressesbyaccount", "params": ["tabby"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1308
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressesbyaccount", "params": ["tabby"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1294
1309
|
**/
|
|
1295
|
-
getaddressesbyaccount:
|
|
1296
|
-
|
|
1310
|
+
getaddressesbyaccount: "getaddressesbyaccount",
|
|
1297
1311
|
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
/** getaddressmempool
|
|
1312
|
+
/** getaddressmempool
|
|
1302
1313
|
|
|
1303
1314
|
Returns all mempool deltas for an address (requires addressindex to be enabled).
|
|
1304
1315
|
|
|
@@ -1316,7 +1327,7 @@ Result:
|
|
|
1316
1327
|
[
|
|
1317
1328
|
{
|
|
1318
1329
|
"address" (string) The base58check encoded address
|
|
1319
|
-
"assetName" (string) The name of the associated asset (XNA for
|
|
1330
|
+
"assetName" (string) The name of the associated asset (XNA for Ravencoin)
|
|
1320
1331
|
"txid" (string) The related txid
|
|
1321
1332
|
"index" (number) The related input or output index
|
|
1322
1333
|
"satoshis" (number) The difference of satoshis
|
|
@@ -1328,17 +1339,13 @@ Result:
|
|
|
1328
1339
|
|
|
1329
1340
|
Examples:
|
|
1330
1341
|
> raven-cli getaddressmempool '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}'
|
|
1331
|
-
> 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:
|
|
1342
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressmempool", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1332
1343
|
> raven-cli getaddressmempool '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}', true
|
|
1333
|
-
> 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:
|
|
1344
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressmempool", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}, true] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1334
1345
|
**/
|
|
1335
|
-
getaddressmempool:
|
|
1336
|
-
|
|
1346
|
+
getaddressmempool: "getaddressmempool",
|
|
1337
1347
|
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
/** getaddresstxids
|
|
1348
|
+
/** getaddresstxids
|
|
1342
1349
|
|
|
1343
1350
|
Returns the txids for an address(es) (requires addressindex to be enabled).
|
|
1344
1351
|
|
|
@@ -1362,17 +1369,13 @@ Result:
|
|
|
1362
1369
|
|
|
1363
1370
|
Examples:
|
|
1364
1371
|
> raven-cli getaddresstxids '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}'
|
|
1365
|
-
> 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:
|
|
1372
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddresstxids", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1366
1373
|
> raven-cli getaddresstxids '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}', true
|
|
1367
|
-
> 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:
|
|
1374
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddresstxids", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}, true] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1368
1375
|
**/
|
|
1369
|
-
getaddresstxids:
|
|
1370
|
-
|
|
1376
|
+
getaddresstxids: "getaddresstxids",
|
|
1371
1377
|
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
/** getaddressutxos
|
|
1378
|
+
/** getaddressutxos
|
|
1376
1379
|
|
|
1377
1380
|
Returns all unspent outputs for an address (requires addressindex to be enabled).
|
|
1378
1381
|
|
|
@@ -1391,7 +1394,7 @@ Result
|
|
|
1391
1394
|
[
|
|
1392
1395
|
{
|
|
1393
1396
|
"address" (string) The address base58check encoded
|
|
1394
|
-
"assetName" (string) The asset associated with the UTXOs (XNA for
|
|
1397
|
+
"assetName" (string) The asset associated with the UTXOs (XNA for Ravencoin)
|
|
1395
1398
|
"txid" (string) The output txid
|
|
1396
1399
|
"height" (number) The block height
|
|
1397
1400
|
"outputIndex" (number) The output index
|
|
@@ -1402,17 +1405,13 @@ Result
|
|
|
1402
1405
|
|
|
1403
1406
|
Examples:
|
|
1404
1407
|
> raven-cli getaddressutxos '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}'
|
|
1405
|
-
> 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:
|
|
1408
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressutxos", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"]}] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1406
1409
|
> raven-cli getaddressutxos '{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"],"assetName":"MY_ASSET"}'
|
|
1407
|
-
> 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:
|
|
1410
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressutxos", "params": [{"addresses": ["12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"],"assetName":"MY_ASSET"}] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1408
1411
|
**/
|
|
1409
|
-
getaddressutxos:
|
|
1410
|
-
|
|
1412
|
+
getaddressutxos: "getaddressutxos",
|
|
1411
1413
|
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
/** getassetdata "asset_name"
|
|
1414
|
+
/** getassetdata "asset_name"
|
|
1416
1415
|
|
|
1417
1416
|
Returns assets metadata if that asset exists
|
|
1418
1417
|
|
|
@@ -1433,15 +1432,11 @@ Result:
|
|
|
1433
1432
|
|
|
1434
1433
|
Examples:
|
|
1435
1434
|
> raven-cli getassetdata "ASSET_NAME"
|
|
1436
|
-
> 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:
|
|
1435
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getassetdata", "params": ["ASSET_NAME"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1437
1436
|
**/
|
|
1438
|
-
getassetdata:
|
|
1439
|
-
|
|
1437
|
+
getassetdata: "getassetdata",
|
|
1440
1438
|
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
/** getbalance ( "account" minconf include_watchonly )
|
|
1439
|
+
/** getbalance ( "account" minconf include_watchonly )
|
|
1445
1440
|
|
|
1446
1441
|
If account is not specified, returns the server's total available balance.
|
|
1447
1442
|
If account is specified (DEPRECATED), returns the balance in the account.
|
|
@@ -1476,15 +1471,11 @@ The total amount in the wallet at least 6 blocks confirmed
|
|
|
1476
1471
|
> raven-cli getbalance "*" 6
|
|
1477
1472
|
|
|
1478
1473
|
As a json rpc call
|
|
1479
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getbalance", "params": ["*", 6] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1474
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getbalance", "params": ["*", 6] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1480
1475
|
**/
|
|
1481
|
-
getbalance:
|
|
1482
|
-
|
|
1476
|
+
getbalance: "getbalance",
|
|
1483
1477
|
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
/** getbestblockhash
|
|
1478
|
+
/** getbestblockhash
|
|
1488
1479
|
|
|
1489
1480
|
Returns the hash of the best (tip) block in the longest blockchain.
|
|
1490
1481
|
|
|
@@ -1493,15 +1484,11 @@ Result:
|
|
|
1493
1484
|
|
|
1494
1485
|
Examples:
|
|
1495
1486
|
> raven-cli getbestblockhash
|
|
1496
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getbestblockhash", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1487
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getbestblockhash", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1497
1488
|
**/
|
|
1498
|
-
getbestblockhash:
|
|
1499
|
-
|
|
1489
|
+
getbestblockhash: "getbestblockhash",
|
|
1500
1490
|
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
/** getblock "blockhash" ( verbosity )
|
|
1491
|
+
/** getblock "blockhash" ( verbosity )
|
|
1505
1492
|
|
|
1506
1493
|
If verbosity is 0, returns a string that is serialized, hex-encoded data for block 'hash'.
|
|
1507
1494
|
If verbosity is 1, returns an Object with information about block <hash>.
|
|
@@ -1550,15 +1537,11 @@ Result (for verbosity = 2):
|
|
|
1550
1537
|
|
|
1551
1538
|
Examples:
|
|
1552
1539
|
> raven-cli getblock "00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"
|
|
1553
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblock", "params": ["00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1540
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblock", "params": ["00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1554
1541
|
**/
|
|
1555
|
-
getblock:
|
|
1556
|
-
|
|
1542
|
+
getblock: "getblock",
|
|
1557
1543
|
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
/** getblockchaininfo
|
|
1544
|
+
/** getblockchaininfo
|
|
1562
1545
|
Returns an object containing various state info regarding blockchain processing.
|
|
1563
1546
|
|
|
1564
1547
|
Result:
|
|
@@ -1606,15 +1589,11 @@ Result:
|
|
|
1606
1589
|
|
|
1607
1590
|
Examples:
|
|
1608
1591
|
> raven-cli getblockchaininfo
|
|
1609
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockchaininfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1592
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockchaininfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1610
1593
|
**/
|
|
1611
|
-
getblockchaininfo:
|
|
1612
|
-
|
|
1594
|
+
getblockchaininfo: "getblockchaininfo",
|
|
1613
1595
|
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
/** getblockcount
|
|
1596
|
+
/** getblockcount
|
|
1618
1597
|
|
|
1619
1598
|
Returns the number of blocks in the longest blockchain.
|
|
1620
1599
|
|
|
@@ -1623,15 +1602,11 @@ n (numeric) The current block count
|
|
|
1623
1602
|
|
|
1624
1603
|
Examples:
|
|
1625
1604
|
> raven-cli getblockcount
|
|
1626
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockcount", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1605
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockcount", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1627
1606
|
**/
|
|
1628
|
-
getblockcount:
|
|
1629
|
-
|
|
1607
|
+
getblockcount: "getblockcount",
|
|
1630
1608
|
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
/** getblockhash height
|
|
1609
|
+
/** getblockhash height
|
|
1635
1610
|
|
|
1636
1611
|
Returns hash of block in best-block-chain at height provided.
|
|
1637
1612
|
|
|
@@ -1643,15 +1618,11 @@ Result:
|
|
|
1643
1618
|
|
|
1644
1619
|
Examples:
|
|
1645
1620
|
> raven-cli getblockhash 1000
|
|
1646
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockhash", "params": [1000] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1621
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockhash", "params": [1000] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1647
1622
|
**/
|
|
1648
|
-
getblockhash:
|
|
1649
|
-
|
|
1623
|
+
getblockhash: "getblockhash",
|
|
1650
1624
|
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
/** getblockhashes timestamp
|
|
1625
|
+
/** getblockhashes timestamp
|
|
1655
1626
|
|
|
1656
1627
|
Returns array of hashes of blocks within the timestamp range provided.
|
|
1657
1628
|
|
|
@@ -1677,16 +1648,12 @@ Result:
|
|
|
1677
1648
|
|
|
1678
1649
|
Examples:
|
|
1679
1650
|
> raven-cli getblockhashes 1231614698 1231024505
|
|
1680
|
-
> 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:
|
|
1651
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockhashes", "params": [1231614698, 1231024505] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1681
1652
|
> raven-cli getblockhashes 1231614698 1231024505 '{"noOrphans":false, "logicalTimes":true}'
|
|
1682
1653
|
**/
|
|
1683
|
-
getblockhashes:
|
|
1684
|
-
|
|
1654
|
+
getblockhashes: "getblockhashes",
|
|
1685
1655
|
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
/** getblockheader "hash" ( verbose )
|
|
1656
|
+
/** getblockheader "hash" ( verbose )
|
|
1690
1657
|
|
|
1691
1658
|
If verbose is false, returns a string that is serialized, hex-encoded data for blockheader 'hash'.
|
|
1692
1659
|
If verbose is true, returns an Object with information about blockheader <hash>.
|
|
@@ -1718,15 +1685,11 @@ Result (for verbose=false):
|
|
|
1718
1685
|
|
|
1719
1686
|
Examples:
|
|
1720
1687
|
> raven-cli getblockheader "00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"
|
|
1721
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockheader", "params": ["00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1688
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockheader", "params": ["00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1722
1689
|
**/
|
|
1723
|
-
getblockheader:
|
|
1724
|
-
|
|
1690
|
+
getblockheader: "getblockheader",
|
|
1725
1691
|
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
/** getblocktemplate ( TemplateRequest )
|
|
1692
|
+
/** getblocktemplate ( TemplateRequest )
|
|
1730
1693
|
|
|
1731
1694
|
If the request parameters include a 'mode' key, that is used to explicitly select between the default 'template' request or a 'proposal'.
|
|
1732
1695
|
It returns data needed to construct a block to work on.
|
|
@@ -1799,15 +1762,11 @@ Result:
|
|
|
1799
1762
|
|
|
1800
1763
|
Examples:
|
|
1801
1764
|
> raven-cli getblocktemplate
|
|
1802
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblocktemplate", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1765
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblocktemplate", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1803
1766
|
**/
|
|
1804
|
-
getblocktemplate:
|
|
1805
|
-
|
|
1767
|
+
getblocktemplate: "getblocktemplate",
|
|
1806
1768
|
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
/** getcacheinfo
|
|
1769
|
+
/** getcacheinfo
|
|
1811
1770
|
|
|
1812
1771
|
Result:
|
|
1813
1772
|
[
|
|
@@ -1823,16 +1782,12 @@ Result:
|
|
|
1823
1782
|
]
|
|
1824
1783
|
|
|
1825
1784
|
Examples:
|
|
1826
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getcacheinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1785
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getcacheinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1827
1786
|
> raven-cli getcacheinfo
|
|
1828
1787
|
**/
|
|
1829
|
-
getcacheinfo:
|
|
1830
|
-
|
|
1788
|
+
getcacheinfo: "getcacheinfo",
|
|
1831
1789
|
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
/** getchaintips
|
|
1790
|
+
/** getchaintips
|
|
1836
1791
|
Return information about all known tips in the block tree, including the main chain as well as orphaned branches.
|
|
1837
1792
|
|
|
1838
1793
|
Result:
|
|
@@ -1859,15 +1814,11 @@ Possible values for status:
|
|
|
1859
1814
|
|
|
1860
1815
|
Examples:
|
|
1861
1816
|
> raven-cli getchaintips
|
|
1862
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getchaintips", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1817
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getchaintips", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1863
1818
|
**/
|
|
1864
|
-
getchaintips:
|
|
1865
|
-
|
|
1819
|
+
getchaintips: "getchaintips",
|
|
1866
1820
|
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
/** getchaintxstats ( nblocks blockhash )
|
|
1821
|
+
/** getchaintxstats ( nblocks blockhash )
|
|
1871
1822
|
|
|
1872
1823
|
Compute statistics about the total number and rate of transactions in the chain.
|
|
1873
1824
|
|
|
@@ -1887,15 +1838,11 @@ Result:
|
|
|
1887
1838
|
|
|
1888
1839
|
Examples:
|
|
1889
1840
|
> raven-cli getchaintxstats
|
|
1890
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getchaintxstats", "params": [2016] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1841
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getchaintxstats", "params": [2016] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1891
1842
|
**/
|
|
1892
|
-
getchaintxstats:
|
|
1893
|
-
|
|
1843
|
+
getchaintxstats: "getchaintxstats",
|
|
1894
1844
|
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
/** getconnectioncount
|
|
1845
|
+
/** getconnectioncount
|
|
1899
1846
|
|
|
1900
1847
|
Returns the number of connections to other nodes.
|
|
1901
1848
|
|
|
@@ -1904,15 +1851,11 @@ n (numeric) The connection count
|
|
|
1904
1851
|
|
|
1905
1852
|
Examples:
|
|
1906
1853
|
> raven-cli getconnectioncount
|
|
1907
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getconnectioncount", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1854
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getconnectioncount", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1908
1855
|
**/
|
|
1909
|
-
getconnectioncount:
|
|
1910
|
-
|
|
1856
|
+
getconnectioncount: "getconnectioncount",
|
|
1911
1857
|
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
/** getdifficulty
|
|
1858
|
+
/** getdifficulty
|
|
1916
1859
|
|
|
1917
1860
|
Returns the proof-of-work difficulty as a multiple of the minimum difficulty.
|
|
1918
1861
|
|
|
@@ -1921,15 +1864,11 @@ n.nnn (numeric) the proof-of-work difficulty as a multiple of the minimum
|
|
|
1921
1864
|
|
|
1922
1865
|
Examples:
|
|
1923
1866
|
> raven-cli getdifficulty
|
|
1924
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getdifficulty", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1867
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getdifficulty", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1925
1868
|
**/
|
|
1926
|
-
getdifficulty:
|
|
1927
|
-
|
|
1869
|
+
getdifficulty: "getdifficulty",
|
|
1928
1870
|
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
/** getdistributestatus "asset_name" snapshot_height "distribution_asset_name" gross_distribution_amount ( "exception_addresses" )
|
|
1871
|
+
/** getdistributestatus "asset_name" snapshot_height "distribution_asset_name" gross_distribution_amount ( "exception_addresses" )
|
|
1933
1872
|
|
|
1934
1873
|
Give information about the status of the distribution
|
|
1935
1874
|
|
|
@@ -1943,16 +1882,12 @@ Arguments:
|
|
|
1943
1882
|
Examples:
|
|
1944
1883
|
> raven-cli getdistributestatus "TRONCO" 12345 "XNA" 1000
|
|
1945
1884
|
> raven-cli getdistributestatus "PHATSTACKS" 12345 "DIVIDENDS" 1000 "mwN7xC3yomYdvJuVXkVC7ymY9wNBjWNduD,n4Rf18edydDaRBh7t6gHUbuByLbWEoWUTg"
|
|
1946
|
-
> 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:
|
|
1947
|
-
> 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:
|
|
1885
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getdistributestatus", "params": ["TRONCO" 34987 "DIVIDENDS" 100000] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1886
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getdistributestatus", "params": ["PHATSTACKS" 34987 "XNA" 100000 "mwN7xC3yomYdvJuVXkVC7ymY9wNBjWNduD,n4Rf18edydDaRBh7t6gHUbuByLbWEoWUTg"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1948
1887
|
**/
|
|
1949
|
-
getdistributestatus:
|
|
1950
|
-
|
|
1888
|
+
getdistributestatus: "getdistributestatus",
|
|
1951
1889
|
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
/** getgenerate
|
|
1890
|
+
/** getgenerate
|
|
1956
1891
|
|
|
1957
1892
|
Return if the server is set to generate coins or not. The default is false.
|
|
1958
1893
|
It is set with the command line argument -gen (or raven.conf setting gen)
|
|
@@ -1963,15 +1898,11 @@ true|false (boolean) If the server is set to generate coins or not
|
|
|
1963
1898
|
|
|
1964
1899
|
Examples:
|
|
1965
1900
|
> raven-cli getgenerate
|
|
1966
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getgenerate", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1901
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getgenerate", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
1967
1902
|
**/
|
|
1968
|
-
getgenerate:
|
|
1969
|
-
|
|
1903
|
+
getgenerate: "getgenerate",
|
|
1970
1904
|
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
/** getinfo
|
|
1905
|
+
/** getinfo
|
|
1975
1906
|
|
|
1976
1907
|
DEPRECATED. Returns an object containing various state info.
|
|
1977
1908
|
|
|
@@ -1981,7 +1912,7 @@ Result:
|
|
|
1981
1912
|
"version": xxxxx, (numeric) the server version
|
|
1982
1913
|
"protocolversion": xxxxx, (numeric) the protocol version
|
|
1983
1914
|
"walletversion": xxxxx, (numeric) the wallet version
|
|
1984
|
-
"balance": xxxxxxx, (numeric) the total
|
|
1915
|
+
"balance": xxxxxxx, (numeric) the total Ravencoin balance of the wallet
|
|
1985
1916
|
"blocks": xxxxxx, (numeric) the current number of blocks processed in the server
|
|
1986
1917
|
"timeoffset": xxxxx, (numeric) the time offset
|
|
1987
1918
|
"connections": xxxxx, (numeric) the number of connections
|
|
@@ -1998,15 +1929,11 @@ Result:
|
|
|
1998
1929
|
|
|
1999
1930
|
Examples:
|
|
2000
1931
|
> raven-cli getinfo
|
|
2001
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1932
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2002
1933
|
**/
|
|
2003
|
-
getinfo:
|
|
2004
|
-
|
|
1934
|
+
getinfo: "getinfo",
|
|
2005
1935
|
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
/** getkawpowhash "header_hash" "mix_hash" nonce, height, "target"
|
|
1936
|
+
/** getkawpowhash "header_hash" "mix_hash" nonce, height, "target"
|
|
2010
1937
|
|
|
2011
1938
|
Get the kawpow hash for a block given its block data
|
|
2012
1939
|
|
|
@@ -2021,15 +1948,11 @@ Result:
|
|
|
2021
1948
|
|
|
2022
1949
|
Examples:
|
|
2023
1950
|
> raven-cli getkawpowhash "header_hash" "mix_hash" "0x100000" 2456
|
|
2024
|
-
> 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:
|
|
1951
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getkawpowhash", "params": ["header_hash" "mix_hash" "0x100000" 2456] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2025
1952
|
**/
|
|
2026
|
-
getkawpowhash:
|
|
2027
|
-
|
|
1953
|
+
getkawpowhash: "getkawpowhash",
|
|
2028
1954
|
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
/** getmasterkeyinfo
|
|
1955
|
+
/** getmasterkeyinfo
|
|
2033
1956
|
|
|
2034
1957
|
Fetches and displays the master private key and the master public key.
|
|
2035
1958
|
|
|
@@ -2044,15 +1967,11 @@ Result:
|
|
|
2044
1967
|
|
|
2045
1968
|
Examples:
|
|
2046
1969
|
> raven-cli getmasterkeyinfo
|
|
2047
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmasterkeyinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1970
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmasterkeyinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2048
1971
|
**/
|
|
2049
|
-
getmasterkeyinfo:
|
|
2050
|
-
|
|
1972
|
+
getmasterkeyinfo: "getmasterkeyinfo",
|
|
2051
1973
|
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
/** getmemoryinfo ("mode")
|
|
1974
|
+
/** getmemoryinfo ("mode")
|
|
2056
1975
|
Returns an object containing information about memory usage.
|
|
2057
1976
|
Arguments:
|
|
2058
1977
|
1. "mode" determines what kind of information is returned. This argument is optional, the default mode is "stats".
|
|
@@ -2076,17 +1995,13 @@ Result (mode "mallocinfo"):
|
|
|
2076
1995
|
|
|
2077
1996
|
Examples:
|
|
2078
1997
|
> raven-cli getmemoryinfo
|
|
2079
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmemoryinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
1998
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmemoryinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2080
1999
|
**/
|
|
2081
|
-
getmemoryinfo:
|
|
2000
|
+
getmemoryinfo: "getmemoryinfo",
|
|
2082
2001
|
|
|
2002
|
+
/** getmempoolancestors txid (verbose)
|
|
2083
2003
|
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
/** getmempoolancestors txid (verbose)
|
|
2088
|
-
|
|
2089
|
-
If txid is in the mempool, returns all in-mempool ancestors.
|
|
2004
|
+
If txid is in the mempool, returns all in-mempool ancestors.
|
|
2090
2005
|
|
|
2091
2006
|
Arguments:
|
|
2092
2007
|
1. "txid" (string, required) The transaction id (must be in mempool)
|
|
@@ -2121,15 +2036,11 @@ Result (for verbose=true):
|
|
|
2121
2036
|
|
|
2122
2037
|
Examples:
|
|
2123
2038
|
> raven-cli getmempoolancestors "mytxid"
|
|
2124
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempoolancestors", "params": ["mytxid"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2039
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempoolancestors", "params": ["mytxid"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2125
2040
|
**/
|
|
2126
|
-
getmempoolancestors:
|
|
2127
|
-
|
|
2128
|
-
|
|
2041
|
+
getmempoolancestors: "getmempoolancestors",
|
|
2129
2042
|
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
/** getmempooldescendants txid (verbose)
|
|
2043
|
+
/** getmempooldescendants txid (verbose)
|
|
2133
2044
|
|
|
2134
2045
|
If txid is in the mempool, returns all in-mempool descendants.
|
|
2135
2046
|
|
|
@@ -2166,15 +2077,11 @@ Result (for verbose=true):
|
|
|
2166
2077
|
|
|
2167
2078
|
Examples:
|
|
2168
2079
|
> raven-cli getmempooldescendants "mytxid"
|
|
2169
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempooldescendants", "params": ["mytxid"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2080
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempooldescendants", "params": ["mytxid"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2170
2081
|
**/
|
|
2171
|
-
getmempooldescendants:
|
|
2172
|
-
|
|
2173
|
-
|
|
2082
|
+
getmempooldescendants: "getmempooldescendants",
|
|
2174
2083
|
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
/** getmempoolentry txid
|
|
2084
|
+
/** getmempoolentry txid
|
|
2178
2085
|
|
|
2179
2086
|
Returns mempool data for given transaction
|
|
2180
2087
|
|
|
@@ -2202,15 +2109,11 @@ Result:
|
|
|
2202
2109
|
|
|
2203
2110
|
Examples:
|
|
2204
2111
|
> raven-cli getmempoolentry "mytxid"
|
|
2205
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempoolentry", "params": ["mytxid"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2112
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempoolentry", "params": ["mytxid"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2206
2113
|
**/
|
|
2207
|
-
getmempoolentry:
|
|
2208
|
-
|
|
2114
|
+
getmempoolentry: "getmempoolentry",
|
|
2209
2115
|
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
/** getmempoolinfo
|
|
2116
|
+
/** getmempoolinfo
|
|
2214
2117
|
|
|
2215
2118
|
Returns details on the active state of the TX memory pool.
|
|
2216
2119
|
|
|
@@ -2225,15 +2128,11 @@ Result:
|
|
|
2225
2128
|
|
|
2226
2129
|
Examples:
|
|
2227
2130
|
> raven-cli getmempoolinfo
|
|
2228
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempoolinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2131
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempoolinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2229
2132
|
**/
|
|
2230
|
-
getmempoolinfo:
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2133
|
+
getmempoolinfo: "getmempoolinfo",
|
|
2235
2134
|
|
|
2236
|
-
/** getmininginfo
|
|
2135
|
+
/** getmininginfo
|
|
2237
2136
|
|
|
2238
2137
|
Returns a json object containing mining-related information.
|
|
2239
2138
|
Result:
|
|
@@ -2252,15 +2151,11 @@ Result:
|
|
|
2252
2151
|
|
|
2253
2152
|
Examples:
|
|
2254
2153
|
> raven-cli getmininginfo
|
|
2255
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmininginfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2154
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmininginfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2256
2155
|
**/
|
|
2257
|
-
getmininginfo:
|
|
2156
|
+
getmininginfo: "getmininginfo",
|
|
2258
2157
|
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
/** getmywords ( "account" )
|
|
2158
|
+
/** getmywords ( "account" )
|
|
2264
2159
|
|
|
2265
2160
|
Returns the 12 words and passphrase used by BIP39 to generate the wallets private keys
|
|
2266
2161
|
Only returns value if wallet was created by the 12 words import/generation
|
|
@@ -2271,15 +2166,11 @@ Result:
|
|
|
2271
2166
|
|
|
2272
2167
|
Examples:
|
|
2273
2168
|
> raven-cli getmywords
|
|
2274
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmywords", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2169
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmywords", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2275
2170
|
**/
|
|
2276
|
-
getmywords:
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2171
|
+
getmywords: "getmywords",
|
|
2280
2172
|
|
|
2281
|
-
|
|
2282
|
-
/** getnettotals
|
|
2173
|
+
/** getnettotals
|
|
2283
2174
|
|
|
2284
2175
|
Returns information about network traffic, including bytes in, bytes out,
|
|
2285
2176
|
and current time.
|
|
@@ -2302,15 +2193,11 @@ Result:
|
|
|
2302
2193
|
|
|
2303
2194
|
Examples:
|
|
2304
2195
|
> raven-cli getnettotals
|
|
2305
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnettotals", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2196
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnettotals", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2306
2197
|
**/
|
|
2307
|
-
getnettotals:
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2198
|
+
getnettotals: "getnettotals",
|
|
2311
2199
|
|
|
2312
|
-
|
|
2313
|
-
/** getnetworkhashps ( nblocks height )
|
|
2200
|
+
/** getnetworkhashps ( nblocks height )
|
|
2314
2201
|
|
|
2315
2202
|
Returns the estimated network hashes per second based on the last n blocks.
|
|
2316
2203
|
Pass in [blocks] to override # of blocks, -1 specifies since last difficulty change.
|
|
@@ -2325,15 +2212,11 @@ x (numeric) Hashes per second estimated
|
|
|
2325
2212
|
|
|
2326
2213
|
Examples:
|
|
2327
2214
|
> raven-cli getnetworkhashps
|
|
2328
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnetworkhashps", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2215
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnetworkhashps", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2329
2216
|
**/
|
|
2330
|
-
getnetworkhashps:
|
|
2331
|
-
|
|
2332
|
-
|
|
2217
|
+
getnetworkhashps: "getnetworkhashps",
|
|
2333
2218
|
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
/** getnetworkinfo
|
|
2219
|
+
/** getnetworkinfo
|
|
2337
2220
|
Returns an object containing various state info regarding P2P networking.
|
|
2338
2221
|
|
|
2339
2222
|
Result:
|
|
@@ -2371,15 +2254,11 @@ Result:
|
|
|
2371
2254
|
|
|
2372
2255
|
Examples:
|
|
2373
2256
|
> raven-cli getnetworkinfo
|
|
2374
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnetworkinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2257
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnetworkinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2375
2258
|
**/
|
|
2376
|
-
getnetworkinfo:
|
|
2377
|
-
|
|
2378
|
-
|
|
2259
|
+
getnetworkinfo: "getnetworkinfo",
|
|
2379
2260
|
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
/** getnewaddress ( "account" )
|
|
2261
|
+
/** getnewaddress ( "account" )
|
|
2383
2262
|
|
|
2384
2263
|
Returns a new Raven address for receiving payments.
|
|
2385
2264
|
If 'account' is specified (DEPRECATED), it is added to the address book
|
|
@@ -2393,15 +2272,11 @@ Result:
|
|
|
2393
2272
|
|
|
2394
2273
|
Examples:
|
|
2395
2274
|
> raven-cli getnewaddress
|
|
2396
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnewaddress", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2275
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnewaddress", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2397
2276
|
**/
|
|
2398
|
-
getnewaddress:
|
|
2399
|
-
|
|
2277
|
+
getnewaddress: "getnewaddress",
|
|
2400
2278
|
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
/** getpeerinfo
|
|
2279
|
+
/** getpeerinfo
|
|
2405
2280
|
|
|
2406
2281
|
Returns data about each connected network node as a json array of objects.
|
|
2407
2282
|
|
|
@@ -2450,15 +2325,11 @@ Result:
|
|
|
2450
2325
|
|
|
2451
2326
|
Examples:
|
|
2452
2327
|
> raven-cli getpeerinfo
|
|
2453
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getpeerinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2328
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getpeerinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2454
2329
|
**/
|
|
2455
|
-
getpeerinfo:
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2330
|
+
getpeerinfo: "getpeerinfo",
|
|
2460
2331
|
|
|
2461
|
-
/** getrawchangeaddress
|
|
2332
|
+
/** getrawchangeaddress
|
|
2462
2333
|
|
|
2463
2334
|
Returns a new Raven address, for receiving change.
|
|
2464
2335
|
This is for use with raw transactions, NOT normal use.
|
|
@@ -2468,15 +2339,11 @@ Result:
|
|
|
2468
2339
|
|
|
2469
2340
|
Examples:
|
|
2470
2341
|
> raven-cli getrawchangeaddress
|
|
2471
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrawchangeaddress", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2342
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrawchangeaddress", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2472
2343
|
**/
|
|
2473
|
-
getrawchangeaddress:
|
|
2344
|
+
getrawchangeaddress: "getrawchangeaddress",
|
|
2474
2345
|
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
/** getrawmempool ( verbose )
|
|
2346
|
+
/** getrawmempool ( verbose )
|
|
2480
2347
|
|
|
2481
2348
|
Returns all transaction ids in memory pool as a json array of string transaction ids.
|
|
2482
2349
|
|
|
@@ -2514,15 +2381,11 @@ Result: (for verbose = true):
|
|
|
2514
2381
|
|
|
2515
2382
|
Examples:
|
|
2516
2383
|
> raven-cli getrawmempool true
|
|
2517
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrawmempool", "params": [true] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2384
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrawmempool", "params": [true] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2518
2385
|
**/
|
|
2519
|
-
getrawmempool:
|
|
2520
|
-
|
|
2521
|
-
|
|
2386
|
+
getrawmempool: "getrawmempool",
|
|
2522
2387
|
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
/** getrawtransaction "txid" ( verbose )
|
|
2388
|
+
/** getrawtransaction "txid" ( verbose )
|
|
2526
2389
|
|
|
2527
2390
|
NOTE: By default this function only works for mempool transactions. If the -txindex option is
|
|
2528
2391
|
enabled, it also works for blockchain transactions.
|
|
@@ -2588,15 +2451,11 @@ Result (if verbose is set to true):
|
|
|
2588
2451
|
Examples:
|
|
2589
2452
|
> raven-cli getrawtransaction "mytxid"
|
|
2590
2453
|
> raven-cli getrawtransaction "mytxid" true
|
|
2591
|
-
> 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:
|
|
2454
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrawtransaction", "params": ["mytxid", true] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2592
2455
|
**/
|
|
2593
|
-
getrawtransaction:
|
|
2594
|
-
|
|
2595
|
-
|
|
2456
|
+
getrawtransaction: "getrawtransaction",
|
|
2596
2457
|
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
/** getreceivedbyaccount "account" ( minconf )
|
|
2458
|
+
/** getreceivedbyaccount "account" ( minconf )
|
|
2600
2459
|
|
|
2601
2460
|
DEPRECATED. Returns the total amount received by addresses with <account> in transactions with at least [minconf] confirmations.
|
|
2602
2461
|
|
|
@@ -2619,15 +2478,11 @@ The amount with at least 6 confirmations
|
|
|
2619
2478
|
> raven-cli getreceivedbyaccount "tabby" 6
|
|
2620
2479
|
|
|
2621
2480
|
As a json rpc call
|
|
2622
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getreceivedbyaccount", "params": ["tabby", 6] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2481
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getreceivedbyaccount", "params": ["tabby", 6] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2623
2482
|
**/
|
|
2624
|
-
getreceivedbyaccount:
|
|
2625
|
-
|
|
2483
|
+
getreceivedbyaccount: "getreceivedbyaccount",
|
|
2626
2484
|
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
/** getreceivedbyaddress "address" ( minconf )
|
|
2485
|
+
/** getreceivedbyaddress "address" ( minconf )
|
|
2631
2486
|
|
|
2632
2487
|
Returns the total amount received by the given address in transactions with at least minconf confirmations.
|
|
2633
2488
|
|
|
@@ -2650,15 +2505,11 @@ The amount with at least 6 confirmations
|
|
|
2650
2505
|
> raven-cli getreceivedbyaddress "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX" 6
|
|
2651
2506
|
|
|
2652
2507
|
As a json rpc call
|
|
2653
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getreceivedbyaddress", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX", 6] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2508
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getreceivedbyaddress", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX", 6] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2654
2509
|
**/
|
|
2655
|
-
getreceivedbyaddress:
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2510
|
+
getreceivedbyaddress: "getreceivedbyaddress",
|
|
2660
2511
|
|
|
2661
|
-
/** getrpcinfo
|
|
2512
|
+
/** getrpcinfo
|
|
2662
2513
|
Returns details of the RPC server.
|
|
2663
2514
|
|
|
2664
2515
|
Result:
|
|
@@ -2672,15 +2523,11 @@ Result:
|
|
|
2672
2523
|
],
|
|
2673
2524
|
}
|
|
2674
2525
|
> raven-cli getrpcinfo
|
|
2675
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrpcinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2526
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrpcinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2676
2527
|
**/
|
|
2677
|
-
getrpcinfo:
|
|
2528
|
+
getrpcinfo: "getrpcinfo",
|
|
2678
2529
|
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
/** getsnapshot "asset_name" block_height
|
|
2530
|
+
/** getsnapshot "asset_name" block_height
|
|
2684
2531
|
|
|
2685
2532
|
Returns details for the asset snapshot, at the specified height
|
|
2686
2533
|
|
|
@@ -2700,15 +2547,11 @@ Result:
|
|
|
2700
2547
|
}
|
|
2701
2548
|
|
|
2702
2549
|
Examples:
|
|
2703
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getsnapshot", "params": ["ASSET_NAME" 28546] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2550
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getsnapshot", "params": ["ASSET_NAME" 28546] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2704
2551
|
**/
|
|
2705
|
-
getsnapshot:
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2552
|
+
getsnapshot: "getsnapshot",
|
|
2709
2553
|
|
|
2710
|
-
|
|
2711
|
-
/** getsnapshotrequest "asset_name" block_height
|
|
2554
|
+
/** getsnapshotrequest "asset_name" block_height
|
|
2712
2555
|
|
|
2713
2556
|
Retrieves the specified snapshot request details.
|
|
2714
2557
|
|
|
@@ -2724,15 +2567,11 @@ Result:
|
|
|
2724
2567
|
|
|
2725
2568
|
Examples:
|
|
2726
2569
|
> raven-cli getsnapshotrequest "TRONCO" 12345
|
|
2727
|
-
> 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:
|
|
2570
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getsnapshotrequest", "params": ["PHATSTACKS" 34987] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2728
2571
|
**/
|
|
2729
|
-
getsnapshotrequest:
|
|
2730
|
-
|
|
2731
|
-
|
|
2572
|
+
getsnapshotrequest: "getsnapshotrequest",
|
|
2732
2573
|
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
/** getspentinfo
|
|
2574
|
+
/** getspentinfo
|
|
2736
2575
|
|
|
2737
2576
|
Returns the txid and index where an output is spent.
|
|
2738
2577
|
|
|
@@ -2751,15 +2590,11 @@ Result:
|
|
|
2751
2590
|
|
|
2752
2591
|
Examples:
|
|
2753
2592
|
> raven-cli getspentinfo '{"txid": "0437cd7f8525ceed2324359c2d0ba26006d92d856a9c20fa0241106ee5a597c9", "index": 0}'
|
|
2754
|
-
> 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:
|
|
2593
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getspentinfo", "params": [{"txid": "0437cd7f8525ceed2324359c2d0ba26006d92d856a9c20fa0241106ee5a597c9", "index": 0}] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2755
2594
|
**/
|
|
2756
|
-
getspentinfo:
|
|
2757
|
-
|
|
2595
|
+
getspentinfo: "getspentinfo",
|
|
2758
2596
|
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
/** gettransaction "txid" ( include_watchonly )
|
|
2597
|
+
/** gettransaction "txid" ( include_watchonly )
|
|
2763
2598
|
|
|
2764
2599
|
Get detailed information about in-wallet transaction <txid>
|
|
2765
2600
|
|
|
@@ -2813,15 +2648,11 @@ Result:
|
|
|
2813
2648
|
Examples:
|
|
2814
2649
|
> raven-cli gettransaction "1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"
|
|
2815
2650
|
> raven-cli gettransaction "1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d" true
|
|
2816
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettransaction", "params": ["1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2651
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettransaction", "params": ["1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2817
2652
|
**/
|
|
2818
|
-
gettransaction:
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2653
|
+
gettransaction: "gettransaction",
|
|
2823
2654
|
|
|
2824
|
-
/** gettxout "txid" n ( include_mempool )
|
|
2655
|
+
/** gettxout "txid" n ( include_mempool )
|
|
2825
2656
|
|
|
2826
2657
|
Returns details about an unspent transaction output.
|
|
2827
2658
|
|
|
@@ -2857,15 +2688,11 @@ View the details
|
|
|
2857
2688
|
> raven-cli gettxout "txid" 1
|
|
2858
2689
|
|
|
2859
2690
|
As a json rpc call
|
|
2860
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettxout", "params": ["txid", 1] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2691
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettxout", "params": ["txid", 1] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2861
2692
|
**/
|
|
2862
|
-
gettxout:
|
|
2693
|
+
gettxout: "gettxout",
|
|
2863
2694
|
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
/** gettxoutproof ["txid",...] ( blockhash )
|
|
2695
|
+
/** gettxoutproof ["txid",...] ( blockhash )
|
|
2869
2696
|
|
|
2870
2697
|
Returns a hex-encoded proof that "txid" was included in a block.
|
|
2871
2698
|
|
|
@@ -2885,13 +2712,9 @@ Arguments:
|
|
|
2885
2712
|
Result:
|
|
2886
2713
|
"data" (string) A string that is a serialized, hex-encoded data for the proof.
|
|
2887
2714
|
**/
|
|
2888
|
-
gettxoutproof:
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2715
|
+
gettxoutproof: "gettxoutproof",
|
|
2892
2716
|
|
|
2893
|
-
|
|
2894
|
-
/** gettxoutsetinfo
|
|
2717
|
+
/** gettxoutsetinfo
|
|
2895
2718
|
|
|
2896
2719
|
Returns statistics about the unspent transaction output set.
|
|
2897
2720
|
Note this call may take some time.
|
|
@@ -2910,24 +2733,16 @@ Result:
|
|
|
2910
2733
|
|
|
2911
2734
|
Examples:
|
|
2912
2735
|
> raven-cli gettxoutsetinfo
|
|
2913
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettxoutsetinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2736
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettxoutsetinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2914
2737
|
**/
|
|
2915
|
-
gettxoutsetinfo:
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2738
|
+
gettxoutsetinfo: "gettxoutsetinfo",
|
|
2919
2739
|
|
|
2920
|
-
|
|
2921
|
-
/** getunconfirmedbalance
|
|
2740
|
+
/** getunconfirmedbalance
|
|
2922
2741
|
Returns the server's total unconfirmed balance
|
|
2923
2742
|
**/
|
|
2924
|
-
getunconfirmedbalance:
|
|
2925
|
-
|
|
2926
|
-
|
|
2743
|
+
getunconfirmedbalance: "getunconfirmedbalance",
|
|
2927
2744
|
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
/** getverifierstring restricted_name
|
|
2745
|
+
/** getverifierstring restricted_name
|
|
2931
2746
|
|
|
2932
2747
|
Retrieve the verifier string that belongs to the given restricted asset
|
|
2933
2748
|
|
|
@@ -2939,15 +2754,11 @@ Result:
|
|
|
2939
2754
|
|
|
2940
2755
|
Examples:
|
|
2941
2756
|
> raven-cli getverifierstring "restricted_name"
|
|
2942
|
-
> 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:
|
|
2757
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getverifierstring", "params": ["restricted_name"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2943
2758
|
**/
|
|
2944
|
-
getverifierstring:
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2759
|
+
getverifierstring: "getverifierstring",
|
|
2949
2760
|
|
|
2950
|
-
/** getwalletinfo
|
|
2761
|
+
/** getwalletinfo
|
|
2951
2762
|
Returns an object containing various wallet state info.
|
|
2952
2763
|
|
|
2953
2764
|
Result:
|
|
@@ -2969,15 +2780,11 @@ Result:
|
|
|
2969
2780
|
|
|
2970
2781
|
Examples:
|
|
2971
2782
|
> raven-cli getwalletinfo
|
|
2972
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getwalletinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2783
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getwalletinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
2973
2784
|
**/
|
|
2974
|
-
getwalletinfo:
|
|
2785
|
+
getwalletinfo: "getwalletinfo",
|
|
2975
2786
|
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
/** help ( "command" )
|
|
2787
|
+
/** help ( "command" )
|
|
2981
2788
|
|
|
2982
2789
|
List all commands, or get help for a specified command.
|
|
2983
2790
|
|
|
@@ -2987,13 +2794,9 @@ Arguments:
|
|
|
2987
2794
|
Result:
|
|
2988
2795
|
"text" (string) The help text
|
|
2989
2796
|
**/
|
|
2990
|
-
help:
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2797
|
+
help: "help",
|
|
2994
2798
|
|
|
2995
|
-
|
|
2996
|
-
/** importaddress "address" ( "label" rescan p2sh )
|
|
2799
|
+
/** importaddress "address" ( "label" rescan p2sh )
|
|
2997
2800
|
|
|
2998
2801
|
Adds a script (in hex) or address that can be watched as if it were in your wallet but cannot be used to spend.
|
|
2999
2802
|
|
|
@@ -3018,15 +2821,11 @@ Import using a label without rescan
|
|
|
3018
2821
|
> raven-cli importaddress "myscript" "testing" false
|
|
3019
2822
|
|
|
3020
2823
|
As a JSON-RPC call
|
|
3021
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importaddress", "params": ["myscript", "testing", false] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2824
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importaddress", "params": ["myscript", "testing", false] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3022
2825
|
**/
|
|
3023
|
-
importaddress:
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
2826
|
+
importaddress: "importaddress",
|
|
3027
2827
|
|
|
3028
|
-
|
|
3029
|
-
/** importmulti "requests" ( "options" )
|
|
2828
|
+
/** importmulti "requests" ( "options" )
|
|
3030
2829
|
|
|
3031
2830
|
Import addresses/scripts (with private or public keys, redeem script (P2SH)), rescanning all addresses in one-shot-only (rescan can be disabled via options).
|
|
3032
2831
|
|
|
@@ -3062,13 +2861,9 @@ Examples:
|
|
|
3062
2861
|
Response is an array with the same size as the input that has the execution result :
|
|
3063
2862
|
[{ "success": true } , { "success": false, "error": { "code": -1, "message": "Internal Server Error"} }, ... ]
|
|
3064
2863
|
**/
|
|
3065
|
-
importmulti:
|
|
3066
|
-
|
|
3067
|
-
|
|
2864
|
+
importmulti: "importmulti",
|
|
3068
2865
|
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
/** importprivkey "privkey" ( "label" ) ( rescan )
|
|
2866
|
+
/** importprivkey "privkey" ( "label" ) ( rescan )
|
|
3072
2867
|
|
|
3073
2868
|
Adds a private key (as returned by dumpprivkey) to your wallet.
|
|
3074
2869
|
|
|
@@ -3094,15 +2889,11 @@ Import using default blank label and without rescan
|
|
|
3094
2889
|
> raven-cli importprivkey "mykey" "" false
|
|
3095
2890
|
|
|
3096
2891
|
As a JSON-RPC call
|
|
3097
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importprivkey", "params": ["mykey", "testing", false] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2892
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importprivkey", "params": ["mykey", "testing", false] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3098
2893
|
**/
|
|
3099
|
-
importprivkey:
|
|
3100
|
-
|
|
3101
|
-
|
|
2894
|
+
importprivkey: "importprivkey",
|
|
3102
2895
|
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
/** importprunedfunds
|
|
2896
|
+
/** importprunedfunds
|
|
3106
2897
|
|
|
3107
2898
|
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.
|
|
3108
2899
|
|
|
@@ -3110,13 +2901,9 @@ Arguments:
|
|
|
3110
2901
|
1. "rawtransaction" (string, required) A raw transaction in hex funding an already-existing address in wallet
|
|
3111
2902
|
2. "txoutproof" (string, required) The hex output from gettxoutproof that contains the transaction
|
|
3112
2903
|
**/
|
|
3113
|
-
importprunedfunds:
|
|
3114
|
-
|
|
2904
|
+
importprunedfunds: "importprunedfunds",
|
|
3115
2905
|
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
/** importpubkey "pubkey" ( "label" rescan )
|
|
2906
|
+
/** importpubkey "pubkey" ( "label" rescan )
|
|
3120
2907
|
|
|
3121
2908
|
Adds a public key (in hex) that can be watched as if it were in your wallet but cannot be used to spend.
|
|
3122
2909
|
|
|
@@ -3136,15 +2923,11 @@ Import using a label without rescan
|
|
|
3136
2923
|
> raven-cli importpubkey "mypubkey" "testing" false
|
|
3137
2924
|
|
|
3138
2925
|
As a JSON-RPC call
|
|
3139
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importpubkey", "params": ["mypubkey", "testing", false] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2926
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importpubkey", "params": ["mypubkey", "testing", false] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3140
2927
|
**/
|
|
3141
|
-
importpubkey:
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
2928
|
+
importpubkey: "importpubkey",
|
|
3145
2929
|
|
|
3146
|
-
|
|
3147
|
-
/** importwallet "filename"
|
|
2930
|
+
/** importwallet "filename"
|
|
3148
2931
|
|
|
3149
2932
|
Imports keys from a wallet dump file (see dumpwallet).
|
|
3150
2933
|
|
|
@@ -3160,15 +2943,11 @@ Import the wallet
|
|
|
3160
2943
|
> raven-cli importwallet "test"
|
|
3161
2944
|
|
|
3162
2945
|
Import using the json rpc call
|
|
3163
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importwallet", "params": ["test"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
2946
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importwallet", "params": ["test"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3164
2947
|
**/
|
|
3165
|
-
importwallet:
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
2948
|
+
importwallet: "importwallet",
|
|
3169
2949
|
|
|
3170
|
-
|
|
3171
|
-
/** issue "asset_name" qty "( to_address )" "( change_address )" ( units ) ( reissuable ) ( has_ipfs ) "( ipfs_hash )"
|
|
2950
|
+
/** issue "asset_name" qty "( to_address )" "( change_address )" ( units ) ( reissuable ) ( has_ipfs ) "( ipfs_hash )"
|
|
3172
2951
|
|
|
3173
2952
|
Issue an asset, subasset or unique asset.
|
|
3174
2953
|
Asset name must not conflict with any existing asset.
|
|
@@ -3198,13 +2977,9 @@ Examples:
|
|
|
3198
2977
|
> raven-cli issue "ASSET_NAME/SUB_ASSET" 1000 "myaddress" "changeaddress" 2 true
|
|
3199
2978
|
> raven-cli issue "ASSET_NAME#uniquetag"
|
|
3200
2979
|
**/
|
|
3201
|
-
issue:
|
|
3202
|
-
|
|
3203
|
-
|
|
2980
|
+
issue: "issue",
|
|
3204
2981
|
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
/** issuequalifierasset "asset_name" qty "( to_address )" "( change_address )" ( has_ipfs ) "( ipfs_hash )"
|
|
2982
|
+
/** issuequalifierasset "asset_name" qty "( to_address )" "( change_address )" ( has_ipfs ) "( ipfs_hash )"
|
|
3208
2983
|
|
|
3209
2984
|
Issue an qualifier or sub qualifier asset
|
|
3210
2985
|
If the '#' character isn't added, it will be added automatically
|
|
@@ -3233,13 +3008,9 @@ Examples:
|
|
|
3233
3008
|
> raven-cli issuequalifierasset "ASSET_NAME/SUB_QUALIFIER" 1000 "myaddress" "changeaddress"
|
|
3234
3009
|
> raven-cli issuequalifierasset "#ASSET_NAME"
|
|
3235
3010
|
**/
|
|
3236
|
-
issuequalifierasset:
|
|
3237
|
-
|
|
3238
|
-
|
|
3011
|
+
issuequalifierasset: "issuequalifierasset",
|
|
3239
3012
|
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
/** issuerestrictedasset "asset_name" qty "verifier" "to_address" "( change_address )" (units) ( reissuable ) ( has_ipfs ) "( ipfs_hash )"
|
|
3013
|
+
/** issuerestrictedasset "asset_name" qty "verifier" "to_address" "( change_address )" (units) ( reissuable ) ( has_ipfs ) "( ipfs_hash )"
|
|
3243
3014
|
|
|
3244
3015
|
Issue a restricted asset.
|
|
3245
3016
|
Restricted asset names must not conflict with any existing restricted asset.
|
|
@@ -3267,13 +3038,9 @@ Examples:
|
|
|
3267
3038
|
> raven-cli issuerestrictedasset "$ASSET_NAME" 1000 "#KYC & !#AML" "myaddress" "changeaddress" 8 true
|
|
3268
3039
|
> raven-cli issuerestrictedasset "$ASSET_NAME" 1000 "#KYC & !#AML" "myaddress" "changeaddress" 0 false true QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E
|
|
3269
3040
|
**/
|
|
3270
|
-
issuerestrictedasset:
|
|
3271
|
-
|
|
3041
|
+
issuerestrictedasset: "issuerestrictedasset",
|
|
3272
3042
|
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
/** issueunique "root_name" [asset_tags] ( [ipfs_hashes] ) "( to_address )" "( change_address )"
|
|
3043
|
+
/** issueunique "root_name" [asset_tags] ( [ipfs_hashes] ) "( to_address )" "( change_address )"
|
|
3277
3044
|
|
|
3278
3045
|
Issue unique asset(s).
|
|
3279
3046
|
root_name must be an asset you own.
|
|
@@ -3295,13 +3062,9 @@ Examples:
|
|
|
3295
3062
|
> raven-cli issueunique "MY_ASSET" '["primo","secundo"]'
|
|
3296
3063
|
> raven-cli issueunique "MY_ASSET" '["primo","secundo"]' '["first_hash","second_hash"]'
|
|
3297
3064
|
**/
|
|
3298
|
-
issueunique:
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3065
|
+
issueunique: "issueunique",
|
|
3303
3066
|
|
|
3304
|
-
/** isvalidverifierstring verifier_string
|
|
3067
|
+
/** isvalidverifierstring verifier_string
|
|
3305
3068
|
|
|
3306
3069
|
Checks to see if the given verifier string is valid
|
|
3307
3070
|
|
|
@@ -3313,15 +3076,11 @@ Result:
|
|
|
3313
3076
|
|
|
3314
3077
|
Examples:
|
|
3315
3078
|
> raven-cli isvalidverifierstring "verifier_string"
|
|
3316
|
-
> 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:
|
|
3079
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "isvalidverifierstring", "params": ["verifier_string"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3317
3080
|
**/
|
|
3318
|
-
isvalidverifierstring:
|
|
3081
|
+
isvalidverifierstring: "isvalidverifierstring",
|
|
3319
3082
|
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
/** keypoolrefill ( newsize )
|
|
3083
|
+
/** keypoolrefill ( newsize )
|
|
3325
3084
|
|
|
3326
3085
|
Fills the keypool.
|
|
3327
3086
|
|
|
@@ -3330,15 +3089,11 @@ Arguments
|
|
|
3330
3089
|
|
|
3331
3090
|
Examples:
|
|
3332
3091
|
> raven-cli keypoolrefill
|
|
3333
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "keypoolrefill", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3092
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "keypoolrefill", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3334
3093
|
**/
|
|
3335
|
-
keypoolrefill:
|
|
3336
|
-
|
|
3337
|
-
|
|
3094
|
+
keypoolrefill: "keypoolrefill",
|
|
3338
3095
|
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
/** listaccounts ( minconf include_watchonly)
|
|
3096
|
+
/** listaccounts ( minconf include_watchonly)
|
|
3342
3097
|
|
|
3343
3098
|
DEPRECATED. Returns Object that has account names as keys, account balances as values.
|
|
3344
3099
|
|
|
@@ -3364,15 +3119,11 @@ List account balances for 6 or more confirmations
|
|
|
3364
3119
|
> raven-cli listaccounts 6
|
|
3365
3120
|
|
|
3366
3121
|
As json rpc call
|
|
3367
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaccounts", "params": [6] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3122
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaccounts", "params": [6] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3368
3123
|
**/
|
|
3369
|
-
listaccounts:
|
|
3370
|
-
|
|
3371
|
-
|
|
3124
|
+
listaccounts: "listaccounts",
|
|
3372
3125
|
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
/** listaddressesbyasset "asset_name" (onlytotal) (count) (start)
|
|
3126
|
+
/** listaddressesbyasset "asset_name" (onlytotal) (count) (start)
|
|
3376
3127
|
|
|
3377
3128
|
Returns a list of all address that own the given asset (with balances)
|
|
3378
3129
|
Or returns the total size of how many address own the given asset
|
|
@@ -3392,13 +3143,9 @@ Examples:
|
|
|
3392
3143
|
> raven-cli listaddressesbyasset "ASSET_NAME" true
|
|
3393
3144
|
> raven-cli listaddressesbyasset "ASSET_NAME"
|
|
3394
3145
|
**/
|
|
3395
|
-
listaddressesbyasset:
|
|
3396
|
-
|
|
3146
|
+
listaddressesbyasset: "listaddressesbyasset",
|
|
3397
3147
|
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
/** listaddressesfortag tag_name
|
|
3148
|
+
/** listaddressesfortag tag_name
|
|
3402
3149
|
|
|
3403
3150
|
List all addresses that have been assigned a given tag
|
|
3404
3151
|
|
|
@@ -3412,15 +3159,11 @@ Result:
|
|
|
3412
3159
|
|
|
3413
3160
|
Examples:
|
|
3414
3161
|
> raven-cli listaddressesfortag "#TAG"
|
|
3415
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressesfortag", "params": ["#TAG"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3162
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressesfortag", "params": ["#TAG"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3416
3163
|
**/
|
|
3417
|
-
listaddressesfortag:
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3164
|
+
listaddressesfortag: "listaddressesfortag",
|
|
3422
3165
|
|
|
3423
|
-
/** listaddressgroupings
|
|
3166
|
+
/** listaddressgroupings
|
|
3424
3167
|
|
|
3425
3168
|
Lists groups of addresses which have had their common ownership
|
|
3426
3169
|
made public by common use as inputs or as the resulting change
|
|
@@ -3441,15 +3184,11 @@ Result:
|
|
|
3441
3184
|
|
|
3442
3185
|
Examples:
|
|
3443
3186
|
> raven-cli listaddressgroupings
|
|
3444
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressgroupings", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3187
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressgroupings", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3445
3188
|
**/
|
|
3446
|
-
listaddressgroupings:
|
|
3189
|
+
listaddressgroupings: "listaddressgroupings",
|
|
3447
3190
|
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
/** listaddressrestrictions address
|
|
3191
|
+
/** listaddressrestrictions address
|
|
3453
3192
|
|
|
3454
3193
|
List all assets that have frozen this address
|
|
3455
3194
|
|
|
@@ -3463,15 +3202,11 @@ Result:
|
|
|
3463
3202
|
|
|
3464
3203
|
Examples:
|
|
3465
3204
|
> raven-cli listaddressrestrictions "address"
|
|
3466
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressrestrictions", "params": ["address"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3205
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressrestrictions", "params": ["address"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3467
3206
|
**/
|
|
3468
|
-
listaddressrestrictions:
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3207
|
+
listaddressrestrictions: "listaddressrestrictions",
|
|
3472
3208
|
|
|
3473
|
-
|
|
3474
|
-
/** listassetbalancesbyaddress "address" (onlytotal) (count) (start)
|
|
3209
|
+
/** listassetbalancesbyaddress "address" (onlytotal) (count) (start)
|
|
3475
3210
|
|
|
3476
3211
|
Returns a list of all asset balances for an address.
|
|
3477
3212
|
|
|
@@ -3492,13 +3227,9 @@ Examples:
|
|
|
3492
3227
|
> raven-cli listassetbalancesbyaddress "myaddress" true
|
|
3493
3228
|
> raven-cli listassetbalancesbyaddress "myaddress"
|
|
3494
3229
|
**/
|
|
3495
|
-
listassetbalancesbyaddress:
|
|
3496
|
-
|
|
3497
|
-
|
|
3230
|
+
listassetbalancesbyaddress: "listassetbalancesbyaddress",
|
|
3498
3231
|
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
/** listassets "( asset )" ( verbose ) ( count ) ( start )
|
|
3232
|
+
/** listassets "( asset )" ( verbose ) ( count ) ( start )
|
|
3502
3233
|
|
|
3503
3234
|
Returns a list of all assets
|
|
3504
3235
|
|
|
@@ -3531,31 +3262,23 @@ Result (verbose=true):
|
|
|
3531
3262
|
}
|
|
3532
3263
|
|
|
3533
3264
|
Examples:
|
|
3534
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listassets", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3265
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listassets", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3535
3266
|
> raven-cli listassets ASSET
|
|
3536
3267
|
> raven-cli listassets "ASSET*" true 10 20
|
|
3537
3268
|
**/
|
|
3538
|
-
listassets:
|
|
3539
|
-
|
|
3269
|
+
listassets: "listassets",
|
|
3540
3270
|
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
/** listbanned
|
|
3271
|
+
/** listbanned
|
|
3545
3272
|
|
|
3546
3273
|
List all banned IPs/Subnets.
|
|
3547
3274
|
|
|
3548
3275
|
Examples:
|
|
3549
3276
|
> raven-cli listbanned
|
|
3550
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listbanned", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3277
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listbanned", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3551
3278
|
**/
|
|
3552
|
-
listbanned:
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3279
|
+
listbanned: "listbanned",
|
|
3557
3280
|
|
|
3558
|
-
/** listglobalrestrictions
|
|
3281
|
+
/** listglobalrestrictions
|
|
3559
3282
|
|
|
3560
3283
|
List all global restricted assets
|
|
3561
3284
|
|
|
@@ -3566,15 +3289,11 @@ Result:
|
|
|
3566
3289
|
|
|
3567
3290
|
Examples:
|
|
3568
3291
|
> raven-cli listglobalrestrictions
|
|
3569
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listglobalrestrictions", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3292
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listglobalrestrictions", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3570
3293
|
**/
|
|
3571
|
-
listglobalrestrictions:
|
|
3294
|
+
listglobalrestrictions: "listglobalrestrictions",
|
|
3572
3295
|
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
/** listlockunspent
|
|
3296
|
+
/** listlockunspent
|
|
3578
3297
|
|
|
3579
3298
|
Returns list of temporarily unspendable outputs.
|
|
3580
3299
|
See the lockunspent call to lock and unlock transactions for spending.
|
|
@@ -3603,15 +3322,11 @@ Unlock the transaction again
|
|
|
3603
3322
|
> raven-cli lockunspent true "[{\"txid\":\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\",\"vout\":1}]"
|
|
3604
3323
|
|
|
3605
3324
|
As a json rpc call
|
|
3606
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listlockunspent", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3325
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listlockunspent", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3607
3326
|
**/
|
|
3608
|
-
listlockunspent:
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3327
|
+
listlockunspent: "listlockunspent",
|
|
3612
3328
|
|
|
3613
|
-
|
|
3614
|
-
/** listmyassets "( asset )" ( verbose ) ( count ) ( start ) (confs)
|
|
3329
|
+
/** listmyassets "( asset )" ( verbose ) ( count ) ( start ) (confs)
|
|
3615
3330
|
|
|
3616
3331
|
Returns a list of all asset that are owned by this wallet
|
|
3617
3332
|
|
|
@@ -3647,18 +3362,14 @@ Result (verbose=true):
|
|
|
3647
3362
|
{...}, {...}
|
|
3648
3363
|
|
|
3649
3364
|
Examples:
|
|
3650
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listmyassets", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3365
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listmyassets", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3651
3366
|
> raven-cli listmyassets ASSET
|
|
3652
3367
|
> raven-cli listmyassets "ASSET*" true 10 20
|
|
3653
3368
|
> raven-cli listmyassets "ASSET*" true 10 20 1
|
|
3654
3369
|
**/
|
|
3655
|
-
listmyassets:
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3370
|
+
listmyassets: "listmyassets",
|
|
3659
3371
|
|
|
3660
|
-
|
|
3661
|
-
/** listreceivedbyaccount ( minconf include_empty include_watchonly)
|
|
3372
|
+
/** listreceivedbyaccount ( minconf include_empty include_watchonly)
|
|
3662
3373
|
|
|
3663
3374
|
DEPRECATED. List balances by account.
|
|
3664
3375
|
|
|
@@ -3682,15 +3393,11 @@ Result:
|
|
|
3682
3393
|
Examples:
|
|
3683
3394
|
> raven-cli listreceivedbyaccount
|
|
3684
3395
|
> raven-cli listreceivedbyaccount 6 true
|
|
3685
|
-
> 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:
|
|
3396
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listreceivedbyaccount", "params": [6, true, true] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3686
3397
|
**/
|
|
3687
|
-
listreceivedbyaccount:
|
|
3688
|
-
|
|
3689
|
-
|
|
3398
|
+
listreceivedbyaccount: "listreceivedbyaccount",
|
|
3690
3399
|
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
/** listreceivedbyaddress ( minconf include_empty include_watchonly)
|
|
3400
|
+
/** listreceivedbyaddress ( minconf include_empty include_watchonly)
|
|
3694
3401
|
|
|
3695
3402
|
List balances by receiving address.
|
|
3696
3403
|
|
|
@@ -3719,15 +3426,11 @@ Result:
|
|
|
3719
3426
|
Examples:
|
|
3720
3427
|
> raven-cli listreceivedbyaddress
|
|
3721
3428
|
> raven-cli listreceivedbyaddress 6 true
|
|
3722
|
-
> 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:
|
|
3429
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listreceivedbyaddress", "params": [6, true, true] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3723
3430
|
**/
|
|
3724
|
-
listreceivedbyaddress:
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3431
|
+
listreceivedbyaddress: "listreceivedbyaddress",
|
|
3729
3432
|
|
|
3730
|
-
/** listsinceblock ( "blockhash" target_confirmations include_watchonly include_removed )
|
|
3433
|
+
/** listsinceblock ( "blockhash" target_confirmations include_watchonly include_removed )
|
|
3731
3434
|
|
|
3732
3435
|
Get all transactions in blocks since block [blockhash], or all transactions if omitted.
|
|
3733
3436
|
If "blockhash" is no longer a part of the main chain, transactions from the fork point onward are included.
|
|
@@ -3775,15 +3478,11 @@ Result:
|
|
|
3775
3478
|
Examples:
|
|
3776
3479
|
> raven-cli listsinceblock
|
|
3777
3480
|
> raven-cli listsinceblock "000000000000000bacf66f7497b7dc45ef753ee9a7d38571037cdb1a57f663ad" 6
|
|
3778
|
-
> 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:
|
|
3481
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listsinceblock", "params": ["000000000000000bacf66f7497b7dc45ef753ee9a7d38571037cdb1a57f663ad", 6] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3779
3482
|
**/
|
|
3780
|
-
listsinceblock:
|
|
3483
|
+
listsinceblock: "listsinceblock",
|
|
3781
3484
|
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
/** listsnapshotrequests ["asset_name" [block_height]]
|
|
3485
|
+
/** listsnapshotrequests ["asset_name" [block_height]]
|
|
3787
3486
|
|
|
3788
3487
|
List snapshot request details.
|
|
3789
3488
|
|
|
@@ -3801,15 +3500,11 @@ Result:
|
|
|
3801
3500
|
|
|
3802
3501
|
Examples:
|
|
3803
3502
|
> raven-cli listsnapshotrequests
|
|
3804
|
-
> 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:
|
|
3503
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listsnapshotrequests", "params": ["TRONCO" 345333] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3805
3504
|
**/
|
|
3806
|
-
listsnapshotrequests:
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3505
|
+
listsnapshotrequests: "listsnapshotrequests",
|
|
3810
3506
|
|
|
3811
|
-
|
|
3812
|
-
/** listtagsforaddress address
|
|
3507
|
+
/** listtagsforaddress address
|
|
3813
3508
|
|
|
3814
3509
|
List all tags assigned to an address
|
|
3815
3510
|
|
|
@@ -3823,15 +3518,11 @@ Result:
|
|
|
3823
3518
|
|
|
3824
3519
|
Examples:
|
|
3825
3520
|
> raven-cli listtagsforaddress "address"
|
|
3826
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listtagsforaddress", "params": ["address"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3521
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listtagsforaddress", "params": ["address"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3827
3522
|
**/
|
|
3828
|
-
listtagsforaddress:
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3523
|
+
listtagsforaddress: "listtagsforaddress",
|
|
3832
3524
|
|
|
3833
|
-
|
|
3834
|
-
/** listtransactions ( "account" count skip include_watchonly)
|
|
3525
|
+
/** listtransactions ( "account" count skip include_watchonly)
|
|
3835
3526
|
|
|
3836
3527
|
Returns up to 'count' most recent transactions skipping the first 'from' transactions for account 'account'.
|
|
3837
3528
|
|
|
@@ -3892,15 +3583,11 @@ List transactions 100 to 120
|
|
|
3892
3583
|
> raven-cli listtransactions "*" 20 100
|
|
3893
3584
|
|
|
3894
3585
|
As a json rpc call
|
|
3895
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listtransactions", "params": ["*", 20, 100] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3586
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listtransactions", "params": ["*", 20, 100] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3896
3587
|
**/
|
|
3897
|
-
listtransactions:
|
|
3898
|
-
|
|
3899
|
-
|
|
3588
|
+
listtransactions: "listtransactions",
|
|
3900
3589
|
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
/** listunspent ( minconf maxconf ["addresses",...] [include_unsafe] [query_options])
|
|
3590
|
+
/** listunspent ( minconf maxconf ["addresses",...] [include_unsafe] [query_options])
|
|
3904
3591
|
|
|
3905
3592
|
Returns array of unspent transaction outputs
|
|
3906
3593
|
with between minconf and maxconf (inclusive) confirmations.
|
|
@@ -3947,17 +3634,13 @@ Result
|
|
|
3947
3634
|
Examples
|
|
3948
3635
|
> raven-cli listunspent
|
|
3949
3636
|
> raven-cli listunspent 6 9999999 "[\"1PGFqEzfmQch1gKD3ra4k18PNj3tTUUSqg\",\"1LtvqCaApEdUGFkpKMM4MstjcaL4dKg8SP\"]"
|
|
3950
|
-
> 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:
|
|
3637
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listunspent", "params": [6, 9999999 "[\"1PGFqEzfmQch1gKD3ra4k18PNj3tTUUSqg\",\"1LtvqCaApEdUGFkpKMM4MstjcaL4dKg8SP\"]"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3951
3638
|
> raven-cli listunspent 6 9999999 '[]' true '{ "minimumAmount": 0.005 }'
|
|
3952
|
-
> 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:
|
|
3639
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listunspent", "params": [6, 9999999, [] , true, { "minimumAmount": 0.005 } ] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3953
3640
|
**/
|
|
3954
|
-
listunspent:
|
|
3955
|
-
|
|
3956
|
-
|
|
3641
|
+
listunspent: "listunspent",
|
|
3957
3642
|
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
/** listwallets
|
|
3643
|
+
/** listwallets
|
|
3961
3644
|
Returns a list of currently loaded wallets.
|
|
3962
3645
|
For full information on the wallet, use "getwalletinfo"
|
|
3963
3646
|
|
|
@@ -3969,15 +3652,11 @@ Result:
|
|
|
3969
3652
|
|
|
3970
3653
|
Examples:
|
|
3971
3654
|
> raven-cli listwallets
|
|
3972
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listwallets", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3655
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listwallets", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
3973
3656
|
**/
|
|
3974
|
-
listwallets:
|
|
3975
|
-
|
|
3657
|
+
listwallets: "listwallets",
|
|
3976
3658
|
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
/** lockunspent unlock ([{"txid":"txid","vout":n},...])
|
|
3659
|
+
/** lockunspent unlock ([{"txid":"txid","vout":n},...])
|
|
3981
3660
|
|
|
3982
3661
|
Updates list of temporarily unspendable outputs.
|
|
3983
3662
|
Temporarily lock (unlock=false) or unlock (unlock=true) specified transaction outputs.
|
|
@@ -4016,15 +3695,11 @@ Unlock the transaction again
|
|
|
4016
3695
|
> raven-cli lockunspent true "[{\"txid\":\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\",\"vout\":1}]"
|
|
4017
3696
|
|
|
4018
3697
|
As a json rpc call
|
|
4019
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "lockunspent", "params": [false, "[{\"txid\":\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\",\"vout\":1}]"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3698
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "lockunspent", "params": [false, "[{\"txid\":\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\",\"vout\":1}]"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4020
3699
|
**/
|
|
4021
|
-
lockunspent:
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
3700
|
+
lockunspent: "lockunspent",
|
|
4025
3701
|
|
|
4026
|
-
|
|
4027
|
-
/** move "fromaccount" "toaccount" amount ( minconf "comment" )
|
|
3702
|
+
/** move "fromaccount" "toaccount" amount ( minconf "comment" )
|
|
4028
3703
|
|
|
4029
3704
|
DEPRECATED. Move a specified amount from one account in your wallet to another.
|
|
4030
3705
|
|
|
@@ -4047,15 +3722,11 @@ Move 0.01 XNA timotei to akiko with a comment and funds have 6 confirmations
|
|
|
4047
3722
|
> raven-cli move "timotei" "akiko" 0.01 6 "happy birthday!"
|
|
4048
3723
|
|
|
4049
3724
|
As a json rpc call
|
|
4050
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "move", "params": ["timotei", "akiko", 0.01, 6, "happy birthday!"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3725
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "move", "params": ["timotei", "akiko", 0.01, 6, "happy birthday!"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4051
3726
|
**/
|
|
4052
|
-
move:
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
3727
|
+
move: "move",
|
|
4056
3728
|
|
|
4057
|
-
|
|
4058
|
-
/** ping
|
|
3729
|
+
/** ping
|
|
4059
3730
|
|
|
4060
3731
|
Requests that a ping be sent to all other nodes, to measure ping time.
|
|
4061
3732
|
Results provided in getpeerinfo, pingtime and pingwait fields are decimal seconds.
|
|
@@ -4063,15 +3734,11 @@ Ping command is handled in queue with all other commands, so it measures process
|
|
|
4063
3734
|
|
|
4064
3735
|
Examples:
|
|
4065
3736
|
> raven-cli ping
|
|
4066
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "ping", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3737
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "ping", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4067
3738
|
**/
|
|
4068
|
-
ping:
|
|
4069
|
-
|
|
4070
|
-
|
|
3739
|
+
ping: "ping",
|
|
4071
3740
|
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
/** pprpcsb "header_hash" "mix_hash" "nonce"
|
|
3741
|
+
/** pprpcsb "header_hash" "mix_hash" "nonce"
|
|
4075
3742
|
|
|
4076
3743
|
Attempts to submit new block to network mined by kawpow gpu miner via rpc.
|
|
4077
3744
|
|
|
@@ -4084,15 +3751,11 @@ Result:
|
|
|
4084
3751
|
|
|
4085
3752
|
Examples:
|
|
4086
3753
|
> raven-cli pprpcsb "header_hash" "mix_hash" 100000
|
|
4087
|
-
> 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:
|
|
3754
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "pprpcsb", "params": ["header_hash" "mix_hash" 100000] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4088
3755
|
**/
|
|
4089
|
-
pprpcsb:
|
|
4090
|
-
|
|
4091
|
-
|
|
3756
|
+
pprpcsb: "pprpcsb",
|
|
4092
3757
|
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
/** preciousblock "blockhash"
|
|
3758
|
+
/** preciousblock "blockhash"
|
|
4096
3759
|
|
|
4097
3760
|
Treats a block as if it were received before others with the same work.
|
|
4098
3761
|
|
|
@@ -4107,15 +3770,11 @@ Result:
|
|
|
4107
3770
|
|
|
4108
3771
|
Examples:
|
|
4109
3772
|
> raven-cli preciousblock "blockhash"
|
|
4110
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "preciousblock", "params": ["blockhash"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3773
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "preciousblock", "params": ["blockhash"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4111
3774
|
**/
|
|
4112
|
-
preciousblock:
|
|
4113
|
-
|
|
3775
|
+
preciousblock: "preciousblock",
|
|
4114
3776
|
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
/** prioritisetransaction <txid> <dummy value> <fee delta>
|
|
3777
|
+
/** prioritisetransaction <txid> <dummy value> <fee delta>
|
|
4119
3778
|
Accepts the transaction into mined blocks at a higher (or lower) priority
|
|
4120
3779
|
|
|
4121
3780
|
Arguments:
|
|
@@ -4131,15 +3790,11 @@ true (boolean) Returns true
|
|
|
4131
3790
|
|
|
4132
3791
|
Examples:
|
|
4133
3792
|
> raven-cli prioritisetransaction "txid" 0.0 10000
|
|
4134
|
-
> 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:
|
|
3793
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "prioritisetransaction", "params": ["txid", 0.0, 10000] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4135
3794
|
**/
|
|
4136
|
-
prioritisetransaction:
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
3795
|
+
prioritisetransaction: "prioritisetransaction",
|
|
4141
3796
|
|
|
4142
|
-
/** pruneblockchain
|
|
3797
|
+
/** pruneblockchain
|
|
4143
3798
|
|
|
4144
3799
|
Arguments:
|
|
4145
3800
|
1. "height" (numeric, required) The block height to prune up to. May be set to a discrete height, or a unix timestamp
|
|
@@ -4150,15 +3805,11 @@ n (numeric) Height of the last block pruned.
|
|
|
4150
3805
|
|
|
4151
3806
|
Examples:
|
|
4152
3807
|
> raven-cli pruneblockchain 1000
|
|
4153
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "pruneblockchain", "params": [1000] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3808
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "pruneblockchain", "params": [1000] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4154
3809
|
**/
|
|
4155
|
-
pruneblockchain:
|
|
3810
|
+
pruneblockchain: "pruneblockchain",
|
|
4156
3811
|
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
/** purgesnapshot "asset_name" block_height
|
|
3812
|
+
/** purgesnapshot "asset_name" block_height
|
|
4162
3813
|
|
|
4163
3814
|
Removes details for the asset snapshot, at the specified height
|
|
4164
3815
|
|
|
@@ -4174,15 +3825,11 @@ Result:
|
|
|
4174
3825
|
|
|
4175
3826
|
Examples:
|
|
4176
3827
|
> raven-cli purgesnapshot "ASSET_NAME" 28546
|
|
4177
|
-
> 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:
|
|
3828
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "purgesnapshot", "params": ["ASSET_NAME" 28546] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4178
3829
|
**/
|
|
4179
|
-
purgesnapshot:
|
|
4180
|
-
|
|
4181
|
-
|
|
3830
|
+
purgesnapshot: "purgesnapshot",
|
|
4182
3831
|
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
/** reissue "asset_name" qty "to_address" "change_address" ( reissuable ) ( new_units) "( new_ipfs )"
|
|
3832
|
+
/** reissue "asset_name" qty "to_address" "change_address" ( reissuable ) ( new_units) "( new_ipfs )"
|
|
4186
3833
|
|
|
4187
3834
|
Reissues a quantity of an asset to an owned address if you own the Owner Token
|
|
4188
3835
|
Can change the reissuable flag during reissuance
|
|
@@ -4201,15 +3848,11 @@ Result:
|
|
|
4201
3848
|
|
|
4202
3849
|
Examples:
|
|
4203
3850
|
> raven-cli reissue "ASSET_NAME" 20 "address"
|
|
4204
|
-
> 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:
|
|
3851
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "reissue", "params": ["ASSET_NAME" 20 "address" "change_address" "true" 8 "Qmd286K6pohQcTKYqnS1YhWrCiS4gz7Xi34sdwMe9USZ7u"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4205
3852
|
**/
|
|
4206
|
-
reissue:
|
|
4207
|
-
|
|
4208
|
-
|
|
3853
|
+
reissue: "reissue",
|
|
4209
3854
|
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
/** reissuerestrictedasset "asset_name" qty to_address ( change_verifier ) ( "new_verifier" ) "( change_address )" ( new_units ) ( reissuable ) "( new_ipfs )"
|
|
3855
|
+
/** reissuerestrictedasset "asset_name" qty to_address ( change_verifier ) ( "new_verifier" ) "( change_address )" ( new_units ) ( reissuable ) "( new_ipfs )"
|
|
4213
3856
|
|
|
4214
3857
|
Reissue an already created restricted asset
|
|
4215
3858
|
Reissuable is true/false for whether additional asset quantity can be created and if the verifier string can be changed
|
|
@@ -4235,13 +3878,9 @@ Examples:
|
|
|
4235
3878
|
> raven-cli reissuerestrictedasset "$ASSET_NAME" 1000 "myaddress" true "KYC & !AML" "changeaddress" -1 true
|
|
4236
3879
|
> raven-cli reissuerestrictedasset "$ASSET_NAME" 1000 "myaddress" false "" "changeaddress" -1 false QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E
|
|
4237
3880
|
**/
|
|
4238
|
-
reissuerestrictedasset:
|
|
4239
|
-
|
|
3881
|
+
reissuerestrictedasset: "reissuerestrictedasset",
|
|
4240
3882
|
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
/** removeprunedfunds "txid"
|
|
3883
|
+
/** removeprunedfunds "txid"
|
|
4245
3884
|
|
|
4246
3885
|
Deletes the specified transaction from the wallet. Meant for use with pruned wallets and as a companion to importprunedfunds. This will affect wallet balances.
|
|
4247
3886
|
|
|
@@ -4252,15 +3891,11 @@ Examples:
|
|
|
4252
3891
|
> raven-cli removeprunedfunds "a8d0c0184dde994a09ec054286f1ce581bebf46446a512166eae7628734ea0a5"
|
|
4253
3892
|
|
|
4254
3893
|
As a JSON-RPC call
|
|
4255
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "removeprunedfunds", "params": ["a8d0c0184dde994a09ec054286f1ce581bebf46446a512166eae7628734ea0a5"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3894
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "removeprunedfunds", "params": ["a8d0c0184dde994a09ec054286f1ce581bebf46446a512166eae7628734ea0a5"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4256
3895
|
**/
|
|
4257
|
-
removeprunedfunds:
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
3896
|
+
removeprunedfunds: "removeprunedfunds",
|
|
4262
3897
|
|
|
4263
|
-
/** removetagfromaddress tag_name to_address (change_address) (asset_data)
|
|
3898
|
+
/** removetagfromaddress tag_name to_address (change_address) (asset_data)
|
|
4264
3899
|
|
|
4265
3900
|
Remove a tag from a address
|
|
4266
3901
|
|
|
@@ -4275,17 +3910,13 @@ Result:
|
|
|
4275
3910
|
|
|
4276
3911
|
Examples:
|
|
4277
3912
|
> raven-cli removetagfromaddress "#TAG" "to_address"
|
|
4278
|
-
> 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:
|
|
3913
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "removetagfromaddress", "params": ["#TAG" "to_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4279
3914
|
> raven-cli removetagfromaddress "#TAG" "to_address" "change_address"
|
|
4280
|
-
> 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:
|
|
3915
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "removetagfromaddress", "params": ["#TAG" "to_address" "change_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4281
3916
|
**/
|
|
4282
|
-
removetagfromaddress:
|
|
3917
|
+
removetagfromaddress: "removetagfromaddress",
|
|
4283
3918
|
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
/** requestsnapshot "asset_name" block_height
|
|
3919
|
+
/** requestsnapshot "asset_name" block_height
|
|
4289
3920
|
|
|
4290
3921
|
Schedules a snapshot of the specified asset at the specified block height.
|
|
4291
3922
|
|
|
@@ -4300,15 +3931,11 @@ Result:
|
|
|
4300
3931
|
|
|
4301
3932
|
Examples:
|
|
4302
3933
|
> raven-cli requestsnapshot "TRONCO" 12345
|
|
4303
|
-
> 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:
|
|
3934
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "requestsnapshot", "params": ["PHATSTACKS" 34987] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4304
3935
|
**/
|
|
4305
|
-
requestsnapshot:
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
3936
|
+
requestsnapshot: "requestsnapshot",
|
|
4309
3937
|
|
|
4310
|
-
|
|
4311
|
-
/** rescanblockchain ("start_height") ("stop_height")
|
|
3938
|
+
/** rescanblockchain ("start_height") ("stop_height")
|
|
4312
3939
|
|
|
4313
3940
|
Rescan the local blockchain for wallet related transactions.
|
|
4314
3941
|
|
|
@@ -4324,29 +3951,21 @@ Result:
|
|
|
4324
3951
|
|
|
4325
3952
|
Examples:
|
|
4326
3953
|
> raven-cli rescanblockchain 100000 120000
|
|
4327
|
-
> 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:
|
|
3954
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "rescanblockchain", "params": [100000, 120000] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4328
3955
|
**/
|
|
4329
|
-
rescanblockchain:
|
|
4330
|
-
|
|
4331
|
-
|
|
3956
|
+
rescanblockchain: "rescanblockchain",
|
|
4332
3957
|
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
/** savemempool
|
|
3958
|
+
/** savemempool
|
|
4336
3959
|
|
|
4337
3960
|
Dumps the mempool to disk.
|
|
4338
3961
|
|
|
4339
3962
|
Examples:
|
|
4340
3963
|
> raven-cli savemempool
|
|
4341
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "savemempool", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3964
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "savemempool", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4342
3965
|
**/
|
|
4343
|
-
savemempool:
|
|
4344
|
-
|
|
3966
|
+
savemempool: "savemempool",
|
|
4345
3967
|
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
/** sendfrom "fromaccount" "toaddress" amount ( minconf "comment" "comment_to" )
|
|
3968
|
+
/** sendfrom "fromaccount" "toaddress" amount ( minconf "comment" "comment_to" )
|
|
4350
3969
|
|
|
4351
3970
|
DEPRECATED (use sendtoaddress). Sent an amount from an account to a raven address.
|
|
4352
3971
|
|
|
@@ -4376,15 +3995,11 @@ Send 0.01 from the tabby account to the given address, funds must have at least
|
|
|
4376
3995
|
> raven-cli sendfrom "tabby" "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.01 6 "donation" "seans outpost"
|
|
4377
3996
|
|
|
4378
3997
|
As a json rpc call
|
|
4379
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendfrom", "params": ["tabby", "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd", 0.01, 6, "donation", "seans outpost"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
3998
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendfrom", "params": ["tabby", "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd", 0.01, 6, "donation", "seans outpost"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4380
3999
|
**/
|
|
4381
|
-
sendfrom:
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4000
|
+
sendfrom: "sendfrom",
|
|
4386
4001
|
|
|
4387
|
-
/** sendfromaddress "from_address" "to_address" amount ( "comment" "comment_to" subtractfeefromamount replaceable conf_target "estimate_mode")
|
|
4002
|
+
/** sendfromaddress "from_address" "to_address" amount ( "comment" "comment_to" subtractfeefromamount replaceable conf_target "estimate_mode")
|
|
4388
4003
|
|
|
4389
4004
|
Send an amount from a specific address to a given address. All xna change will get sent back to the from_address
|
|
4390
4005
|
|
|
@@ -4412,15 +4027,11 @@ Examples:
|
|
|
4412
4027
|
> raven-cli sendfromaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1
|
|
4413
4028
|
> raven-cli sendfromaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1 "donation" "seans outpost"
|
|
4414
4029
|
> raven-cli sendfromaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1 "" "" true
|
|
4415
|
-
> 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:
|
|
4030
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendfromaddress", "params": ["1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd", 0.1, "donation", "seans outpost"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4416
4031
|
**/
|
|
4417
|
-
sendfromaddress:
|
|
4032
|
+
sendfromaddress: "sendfromaddress",
|
|
4418
4033
|
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
/** sendmany "fromaccount" {"address":amount,...} ( minconf "comment" ["address",...] replaceable conf_target "estimate_mode")
|
|
4034
|
+
/** sendmany "fromaccount" {"address":amount,...} ( minconf "comment" ["address",...] replaceable conf_target "estimate_mode")
|
|
4424
4035
|
|
|
4425
4036
|
Send multiple times. Amounts are double-precision floating point numbers.
|
|
4426
4037
|
|
|
@@ -4463,15 +4074,11 @@ Send two amounts to two different addresses, subtract fee from amount:
|
|
|
4463
4074
|
> raven-cli sendmany "" "{\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\":0.01,\"1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz\":0.02}" 1 "" "[\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\",\"1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz\"]"
|
|
4464
4075
|
|
|
4465
4076
|
As a json rpc call
|
|
4466
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendmany", "params": ["", "{\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\":0.01,\"1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz\":0.02}", 6, "testing"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4077
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendmany", "params": ["", "{\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\":0.01,\"1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz\":0.02}", 6, "testing"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4467
4078
|
**/
|
|
4468
|
-
sendmany:
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4079
|
+
sendmany: "sendmany",
|
|
4472
4080
|
|
|
4473
|
-
|
|
4474
|
-
/** sendmessage "channel_name" "ipfs_hash" (expire_time)
|
|
4081
|
+
/** sendmessage "channel_name" "ipfs_hash" (expire_time)
|
|
4475
4082
|
|
|
4476
4083
|
Creates and broadcasts a message transaction to the network for a channel this wallet owns
|
|
4477
4084
|
Arguments:
|
|
@@ -4487,13 +4094,9 @@ Examples:
|
|
|
4487
4094
|
> raven-cli sendmessage "ASSET_NAME!" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
4488
4095
|
> raven-cli sendmessage "ASSET_NAME!" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
4489
4096
|
**/
|
|
4490
|
-
sendmessage:
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4097
|
+
sendmessage: "sendmessage",
|
|
4494
4098
|
|
|
4495
|
-
|
|
4496
|
-
/** sendrawtransaction "hexstring" ( allowhighfees )
|
|
4099
|
+
/** sendrawtransaction "hexstring" ( allowhighfees )
|
|
4497
4100
|
|
|
4498
4101
|
Submits raw transaction (serialized, hex-encoded) to local node and network.
|
|
4499
4102
|
|
|
@@ -4517,15 +4120,11 @@ Send the transaction (signed hex)
|
|
|
4517
4120
|
> raven-cli sendrawtransaction "signedhex"
|
|
4518
4121
|
|
|
4519
4122
|
As a json rpc call
|
|
4520
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendrawtransaction", "params": ["signedhex"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4123
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendrawtransaction", "params": ["signedhex"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4521
4124
|
**/
|
|
4522
|
-
sendrawtransaction:
|
|
4523
|
-
|
|
4524
|
-
|
|
4125
|
+
sendrawtransaction: "sendrawtransaction",
|
|
4525
4126
|
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
/** sendtoaddress "address" amount ( "comment" "comment_to" subtractfeefromamount replaceable conf_target "estimate_mode")
|
|
4127
|
+
/** sendtoaddress "address" amount ( "comment" "comment_to" subtractfeefromamount replaceable conf_target "estimate_mode")
|
|
4529
4128
|
|
|
4530
4129
|
Send an amount to a given address.
|
|
4531
4130
|
|
|
@@ -4552,15 +4151,11 @@ Examples:
|
|
|
4552
4151
|
> raven-cli sendtoaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1
|
|
4553
4152
|
> raven-cli sendtoaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1 "donation" "seans outpost"
|
|
4554
4153
|
> raven-cli sendtoaddress "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.1 "" "" true
|
|
4555
|
-
> 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:
|
|
4154
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendtoaddress", "params": ["1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd", 0.1, "donation", "seans outpost"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4556
4155
|
**/
|
|
4557
|
-
sendtoaddress:
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4156
|
+
sendtoaddress: "sendtoaddress",
|
|
4562
4157
|
|
|
4563
|
-
/** setaccount "address" "account"
|
|
4158
|
+
/** setaccount "address" "account"
|
|
4564
4159
|
|
|
4565
4160
|
DEPRECATED. Sets the account associated with the given address.
|
|
4566
4161
|
|
|
@@ -4570,15 +4165,11 @@ Arguments:
|
|
|
4570
4165
|
|
|
4571
4166
|
Examples:
|
|
4572
4167
|
> raven-cli setaccount "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX" "tabby"
|
|
4573
|
-
> 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:
|
|
4168
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "setaccount", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX", "tabby"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4574
4169
|
**/
|
|
4575
|
-
setaccount:
|
|
4170
|
+
setaccount: "setaccount",
|
|
4576
4171
|
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
/** setban "subnet" "add|remove" (bantime) (absolute)
|
|
4172
|
+
/** setban "subnet" "add|remove" (bantime) (absolute)
|
|
4582
4173
|
|
|
4583
4174
|
Attempts to add or remove an IP/Subnet from the banned list.
|
|
4584
4175
|
|
|
@@ -4591,15 +4182,11 @@ Arguments:
|
|
|
4591
4182
|
Examples:
|
|
4592
4183
|
> raven-cli setban "192.168.0.6" "add" 86400
|
|
4593
4184
|
> raven-cli setban "192.168.0.0/24" "add"
|
|
4594
|
-
> 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:
|
|
4185
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "setban", "params": ["192.168.0.6", "add", 86400] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4595
4186
|
**/
|
|
4596
|
-
setban:
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4187
|
+
setban: "setban",
|
|
4600
4188
|
|
|
4601
|
-
|
|
4602
|
-
/** setgenerate generate ( genproclimit )
|
|
4189
|
+
/** setgenerate generate ( genproclimit )
|
|
4603
4190
|
|
|
4604
4191
|
Set 'generate' true or false to turn generation on or off.
|
|
4605
4192
|
Generation is limited to 'genproclimit' processors, -1 is unlimited.
|
|
@@ -4621,28 +4208,20 @@ Turn off generation
|
|
|
4621
4208
|
> raven-cli setgenerate false
|
|
4622
4209
|
|
|
4623
4210
|
Using json rpc
|
|
4624
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "setgenerate", "params": [true, 1] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4211
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "setgenerate", "params": [true, 1] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4625
4212
|
**/
|
|
4626
|
-
setgenerate:
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4213
|
+
setgenerate: "setgenerate",
|
|
4630
4214
|
|
|
4631
|
-
|
|
4632
|
-
/** setnetworkactive true|false
|
|
4215
|
+
/** setnetworkactive true|false
|
|
4633
4216
|
|
|
4634
4217
|
Disable/enable all p2p network activity.
|
|
4635
4218
|
|
|
4636
4219
|
Arguments:
|
|
4637
4220
|
1. "state" (boolean, required) true to enable networking, false to disable
|
|
4638
4221
|
**/
|
|
4639
|
-
setnetworkactive:
|
|
4640
|
-
|
|
4641
|
-
|
|
4222
|
+
setnetworkactive: "setnetworkactive",
|
|
4642
4223
|
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
/** settxfee amount
|
|
4224
|
+
/** settxfee amount
|
|
4646
4225
|
|
|
4647
4226
|
Set the transaction fee per kB. Overwrites the paytxfee parameter.
|
|
4648
4227
|
|
|
@@ -4654,15 +4233,11 @@ true|false (boolean) Returns true if successful
|
|
|
4654
4233
|
|
|
4655
4234
|
Examples:
|
|
4656
4235
|
> raven-cli settxfee 0.00001
|
|
4657
|
-
> 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:
|
|
4236
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "settxfee", "params": [0.00001] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4658
4237
|
**/
|
|
4659
|
-
settxfee:
|
|
4660
|
-
|
|
4661
|
-
|
|
4238
|
+
settxfee: "settxfee",
|
|
4662
4239
|
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
/** signmessage "address" "message"
|
|
4240
|
+
/** signmessage "address" "message"
|
|
4666
4241
|
|
|
4667
4242
|
Sign a message with the private key of an address
|
|
4668
4243
|
|
|
@@ -4685,15 +4260,11 @@ Verify the signature
|
|
|
4685
4260
|
> raven-cli verifymessage "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX" "signature" "my message"
|
|
4686
4261
|
|
|
4687
4262
|
As json rpc
|
|
4688
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "signmessage", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX", "my message"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4263
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "signmessage", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX", "my message"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4689
4264
|
**/
|
|
4690
|
-
signmessage:
|
|
4691
|
-
|
|
4265
|
+
signmessage: "signmessage",
|
|
4692
4266
|
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
/** signmessagewithprivkey "privkey" "message"
|
|
4267
|
+
/** signmessagewithprivkey "privkey" "message"
|
|
4697
4268
|
|
|
4698
4269
|
Sign a message with the private key of an address
|
|
4699
4270
|
|
|
@@ -4713,15 +4284,11 @@ Verify the signature
|
|
|
4713
4284
|
> raven-cli verifymessage "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX" "signature" "my message"
|
|
4714
4285
|
|
|
4715
4286
|
As json rpc
|
|
4716
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "signmessagewithprivkey", "params": ["privkey", "my message"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4287
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "signmessagewithprivkey", "params": ["privkey", "my message"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4717
4288
|
**/
|
|
4718
|
-
signmessagewithprivkey:
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4289
|
+
signmessagewithprivkey: "signmessagewithprivkey",
|
|
4722
4290
|
|
|
4723
|
-
|
|
4724
|
-
/** signrawtransaction "hexstring" ( [{"txid":"id","vout":n,"scriptPubKey":"hex","redeemScript":"hex"},...] ["privatekey1",...] sighashtype )
|
|
4291
|
+
/** signrawtransaction "hexstring" ( [{"txid":"id","vout":n,"scriptPubKey":"hex","redeemScript":"hex"},...] ["privatekey1",...] sighashtype )
|
|
4725
4292
|
|
|
4726
4293
|
Sign inputs for raw transaction (serialized, hex-encoded).
|
|
4727
4294
|
The second optional argument (may be null) is an array of previous transaction outputs that
|
|
@@ -4774,24 +4341,16 @@ Result:
|
|
|
4774
4341
|
|
|
4775
4342
|
Examples:
|
|
4776
4343
|
> raven-cli signrawtransaction "myhex"
|
|
4777
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "signrawtransaction", "params": ["myhex"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4344
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "signrawtransaction", "params": ["myhex"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4778
4345
|
**/
|
|
4779
|
-
signrawtransaction:
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4346
|
+
signrawtransaction: "signrawtransaction",
|
|
4783
4347
|
|
|
4784
|
-
|
|
4785
|
-
/** stop
|
|
4348
|
+
/** stop
|
|
4786
4349
|
|
|
4787
4350
|
Stop Raven server.**/
|
|
4788
|
-
stop:
|
|
4789
|
-
|
|
4790
|
-
|
|
4351
|
+
stop: "stop",
|
|
4791
4352
|
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
/** submitblock "hexdata" ( "dummy" )
|
|
4353
|
+
/** submitblock "hexdata" ( "dummy" )
|
|
4795
4354
|
|
|
4796
4355
|
Attempts to submit new block to network.
|
|
4797
4356
|
See https://en.raven.it/wiki/BIP_0022 for full specification.
|
|
@@ -4804,15 +4363,11 @@ Result:
|
|
|
4804
4363
|
|
|
4805
4364
|
Examples:
|
|
4806
4365
|
> raven-cli submitblock "mydata"
|
|
4807
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "submitblock", "params": ["mydata"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4366
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "submitblock", "params": ["mydata"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4808
4367
|
**/
|
|
4809
|
-
submitblock:
|
|
4810
|
-
|
|
4811
|
-
|
|
4368
|
+
submitblock: "submitblock",
|
|
4812
4369
|
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
/** subscribetochannel
|
|
4370
|
+
/** subscribetochannel
|
|
4816
4371
|
|
|
4817
4372
|
Subscribe to a certain message channel
|
|
4818
4373
|
|
|
@@ -4825,15 +4380,11 @@ Result:[
|
|
|
4825
4380
|
|
|
4826
4381
|
Examples:
|
|
4827
4382
|
> raven-cli subscribetochannel "ASSET_NAME!"
|
|
4828
|
-
> 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:
|
|
4383
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "subscribetochannel", "params": ["ASSET_NAME!"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4829
4384
|
**/
|
|
4830
|
-
subscribetochannel:
|
|
4831
|
-
|
|
4385
|
+
subscribetochannel: "subscribetochannel",
|
|
4832
4386
|
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
/** testmempoolaccept ["rawtxs"] ( allowhighfees )
|
|
4387
|
+
/** testmempoolaccept ["rawtxs"] ( allowhighfees )
|
|
4837
4388
|
|
|
4838
4389
|
Returns if raw transaction (serialized, hex-encoded) would be accepted by mempool.
|
|
4839
4390
|
|
|
@@ -4867,15 +4418,11 @@ Test acceptance of the transaction (signed hex)
|
|
|
4867
4418
|
> raven-cli testmempoolaccept "signedhex"
|
|
4868
4419
|
|
|
4869
4420
|
As a json rpc call
|
|
4870
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "testmempoolaccept", "params": [["signedhex"]] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4421
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "testmempoolaccept", "params": [["signedhex"]] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4871
4422
|
**/
|
|
4872
|
-
testmempoolaccept:
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4423
|
+
testmempoolaccept: "testmempoolaccept",
|
|
4877
4424
|
|
|
4878
|
-
/** transfer "asset_name" qty "to_address" "message" expire_time "change_address" "asset_change_address"
|
|
4425
|
+
/** transfer "asset_name" qty "to_address" "message" expire_time "change_address" "asset_change_address"
|
|
4879
4426
|
|
|
4880
4427
|
Transfers a quantity of an owned asset to a given address
|
|
4881
4428
|
Arguments:
|
|
@@ -4896,13 +4443,9 @@ Examples:
|
|
|
4896
4443
|
> raven-cli transfer "ASSET_NAME" 20 "address" "" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
4897
4444
|
> raven-cli transfer "ASSET_NAME" 20 "address" "" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
4898
4445
|
**/
|
|
4899
|
-
transfer:
|
|
4446
|
+
transfer: "transfer",
|
|
4900
4447
|
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
/** transferfromaddress "asset_name" "from_address" qty "to_address" "message" expire_time "xna_change_address" "asset_change_address"
|
|
4448
|
+
/** transferfromaddress "asset_name" "from_address" qty "to_address" "message" expire_time "xna_change_address" "asset_change_address"
|
|
4906
4449
|
|
|
4907
4450
|
Transfer a quantity of an owned asset in a specific address to a given address
|
|
4908
4451
|
Arguments:
|
|
@@ -4922,15 +4465,11 @@ txid
|
|
|
4922
4465
|
|
|
4923
4466
|
Examples:
|
|
4924
4467
|
> raven-cli transferfromaddress "ASSET_NAME" "fromaddress" 20 "address" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E", 156545652
|
|
4925
|
-
> 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:
|
|
4468
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "transferfromaddress", "params": ["ASSET_NAME" "fromaddress" 20 "address" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E", 156545652] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4926
4469
|
**/
|
|
4927
|
-
transferfromaddress:
|
|
4928
|
-
|
|
4929
|
-
|
|
4470
|
+
transferfromaddress: "transferfromaddress",
|
|
4930
4471
|
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
/** transferfromaddresses "asset_name" ["from_addresses"] qty "to_address" "message" expire_time "xna_change_address" "asset_change_address"
|
|
4472
|
+
/** transferfromaddresses "asset_name" ["from_addresses"] qty "to_address" "message" expire_time "xna_change_address" "asset_change_address"
|
|
4934
4473
|
|
|
4935
4474
|
Transfer a quantity of an owned asset in specific address(es) to a given address
|
|
4936
4475
|
Arguments:
|
|
@@ -4950,15 +4489,11 @@ txid
|
|
|
4950
4489
|
|
|
4951
4490
|
Examples:
|
|
4952
4491
|
> raven-cli transferfromaddresses "ASSET_NAME" '["fromaddress1", "fromaddress2"]' 20 "to_address" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 154652365
|
|
4953
|
-
> 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:
|
|
4492
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "transferfromaddresses", "params": ["ASSET_NAME" '["fromaddress1", "fromaddress2"]' 20 "to_address" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 154652365] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
4954
4493
|
**/
|
|
4955
|
-
transferfromaddresses:
|
|
4956
|
-
|
|
4957
|
-
|
|
4494
|
+
transferfromaddresses: "transferfromaddresses",
|
|
4958
4495
|
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
/** transferqualifier "qualifier_name" qty "to_address" ("change_address") ("message") (expire_time)
|
|
4496
|
+
/** transferqualifier "qualifier_name" qty "to_address" ("change_address") ("message") (expire_time)
|
|
4962
4497
|
|
|
4963
4498
|
Transfer a qualifier asset owned by this wallet to the given address
|
|
4964
4499
|
Arguments:
|
|
@@ -4978,13 +4513,9 @@ Examples:
|
|
|
4978
4513
|
> raven-cli transferqualifier "#QUALIFIER" 20 "to_address" "" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
4979
4514
|
> raven-cli transferqualifier "#QUALIFIER" 20 "to_address" "change_address" "QmTqu3Lk3gmTsQVtjU7rYYM37EAW4xNmbuEAp2Mjr4AV7E" 15863654
|
|
4980
4515
|
**/
|
|
4981
|
-
transferqualifier:
|
|
4982
|
-
|
|
4516
|
+
transferqualifier: "transferqualifier",
|
|
4983
4517
|
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
/** unfreezeaddress asset_name address (change_address) (asset_data)
|
|
4518
|
+
/** unfreezeaddress asset_name address (change_address) (asset_data)
|
|
4988
4519
|
|
|
4989
4520
|
Unfreeze an address from transferring a restricted asset
|
|
4990
4521
|
|
|
@@ -4999,17 +4530,13 @@ Result:
|
|
|
4999
4530
|
|
|
5000
4531
|
Examples:
|
|
5001
4532
|
> raven-cli unfreezeaddress "$RESTRICTED_ASSET" "address"
|
|
5002
|
-
> 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:
|
|
4533
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "unfreezeaddress", "params": ["$RESTRICTED_ASSET" "address"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
5003
4534
|
> raven-cli unfreezeaddress "$RESTRICTED_ASSET" "address" "change_address"
|
|
5004
|
-
> 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:
|
|
4535
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "unfreezeaddress", "params": ["$RESTRICTED_ASSET" "address" "change_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
5005
4536
|
**/
|
|
5006
|
-
unfreezeaddress:
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
4537
|
+
unfreezeaddress: "unfreezeaddress",
|
|
5011
4538
|
|
|
5012
|
-
/** unfreezerestrictedasset asset_name (change_address) (asset_data)
|
|
4539
|
+
/** unfreezerestrictedasset asset_name (change_address) (asset_data)
|
|
5013
4540
|
|
|
5014
4541
|
Unfreeze all trading for a specific restricted asset
|
|
5015
4542
|
|
|
@@ -5023,17 +4550,13 @@ Result:
|
|
|
5023
4550
|
|
|
5024
4551
|
Examples:
|
|
5025
4552
|
> raven-cli unfreezerestrictedasset "$RESTRICTED_ASSET"
|
|
5026
|
-
> 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:
|
|
4553
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "unfreezerestrictedasset", "params": ["$RESTRICTED_ASSET"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
5027
4554
|
> raven-cli unfreezerestrictedasset "$RESTRICTED_ASSET" "change_address"
|
|
5028
|
-
> 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:
|
|
4555
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "unfreezerestrictedasset", "params": ["$RESTRICTED_ASSET" "change_address"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
5029
4556
|
**/
|
|
5030
|
-
unfreezerestrictedasset:
|
|
4557
|
+
unfreezerestrictedasset: "unfreezerestrictedasset",
|
|
5031
4558
|
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
/** unsubscribefromchannel
|
|
4559
|
+
/** unsubscribefromchannel
|
|
5037
4560
|
|
|
5038
4561
|
Unsubscribe from a certain message channel
|
|
5039
4562
|
|
|
@@ -5046,15 +4569,11 @@ Result:[
|
|
|
5046
4569
|
|
|
5047
4570
|
Examples:
|
|
5048
4571
|
> raven-cli unsubscribefromchannel "ASSET_NAME!"
|
|
5049
|
-
> 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:
|
|
4572
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "unsubscribefromchannel", "params": ["ASSET_NAME!"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
5050
4573
|
**/
|
|
5051
|
-
unsubscribefromchannel:
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
4574
|
+
unsubscribefromchannel: "unsubscribefromchannel",
|
|
5055
4575
|
|
|
5056
|
-
|
|
5057
|
-
/** uptime
|
|
4576
|
+
/** uptime
|
|
5058
4577
|
|
|
5059
4578
|
Returns the total uptime of the server.
|
|
5060
4579
|
|
|
@@ -5063,15 +4582,11 @@ ttt (numeric) The number of seconds that the server has been running
|
|
|
5063
4582
|
|
|
5064
4583
|
Examples:
|
|
5065
4584
|
> raven-cli uptime
|
|
5066
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "uptime", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4585
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "uptime", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
5067
4586
|
**/
|
|
5068
|
-
uptime:
|
|
5069
|
-
|
|
5070
|
-
|
|
4587
|
+
uptime: "uptime",
|
|
5071
4588
|
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
/** validateaddress "address"
|
|
4589
|
+
/** validateaddress "address"
|
|
5075
4590
|
|
|
5076
4591
|
Return information about the given raven address.
|
|
5077
4592
|
|
|
@@ -5104,15 +4619,11 @@ Result:
|
|
|
5104
4619
|
|
|
5105
4620
|
Examples:
|
|
5106
4621
|
> raven-cli validateaddress "1PSSGeFHDnKNxiEyFrD1wcEaHr9hrQDDWc"
|
|
5107
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "validateaddress", "params": ["1PSSGeFHDnKNxiEyFrD1wcEaHr9hrQDDWc"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4622
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "validateaddress", "params": ["1PSSGeFHDnKNxiEyFrD1wcEaHr9hrQDDWc"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
5108
4623
|
**/
|
|
5109
|
-
validateaddress:
|
|
5110
|
-
|
|
4624
|
+
validateaddress: "validateaddress",
|
|
5111
4625
|
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
/** verifychain ( checklevel nblocks )
|
|
4626
|
+
/** verifychain ( checklevel nblocks )
|
|
5116
4627
|
|
|
5117
4628
|
Verifies blockchain database.
|
|
5118
4629
|
|
|
@@ -5125,15 +4636,11 @@ true|false (boolean) Verified or not
|
|
|
5125
4636
|
|
|
5126
4637
|
Examples:
|
|
5127
4638
|
> raven-cli verifychain
|
|
5128
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "verifychain", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4639
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "verifychain", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
5129
4640
|
**/
|
|
5130
|
-
verifychain:
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
|
|
4641
|
+
verifychain: "verifychain",
|
|
5135
4642
|
|
|
5136
|
-
/** verifymessage "address" "signature" "message"
|
|
4643
|
+
/** verifymessage "address" "signature" "message"
|
|
5137
4644
|
|
|
5138
4645
|
Verify a signed message
|
|
5139
4646
|
|
|
@@ -5157,15 +4664,11 @@ Verify the signature
|
|
|
5157
4664
|
> raven-cli verifymessage "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX" "signature" "my message"
|
|
5158
4665
|
|
|
5159
4666
|
As json rpc
|
|
5160
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "verifymessage", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX", "signature", "my message"] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4667
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "verifymessage", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX", "signature", "my message"] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
5161
4668
|
**/
|
|
5162
|
-
verifymessage:
|
|
4669
|
+
verifymessage: "verifymessage",
|
|
5163
4670
|
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
/** verifytxoutproof "proof"
|
|
4671
|
+
/** verifytxoutproof "proof"
|
|
5169
4672
|
|
|
5170
4673
|
Verifies that a proof points to a transaction in a block, returning the transaction it commits to
|
|
5171
4674
|
and throwing an RPC error if the block is not in our best chain
|
|
@@ -5176,13 +4679,9 @@ Arguments:
|
|
|
5176
4679
|
Result:
|
|
5177
4680
|
["txid"] (array, strings) The txid(s) which the proof commits to, or empty array if the proof is invalid
|
|
5178
4681
|
**/
|
|
5179
|
-
verifytxoutproof:
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
4682
|
+
verifytxoutproof: "verifytxoutproof",
|
|
5183
4683
|
|
|
5184
|
-
|
|
5185
|
-
/** viewallmessagechannels
|
|
4684
|
+
/** viewallmessagechannels
|
|
5186
4685
|
|
|
5187
4686
|
View all message channels the wallet is subscribed to
|
|
5188
4687
|
|
|
@@ -5193,15 +4692,11 @@ Result:[
|
|
|
5193
4692
|
|
|
5194
4693
|
Examples:
|
|
5195
4694
|
> raven-cli viewallmessagechannels
|
|
5196
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewallmessagechannels", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4695
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewallmessagechannels", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
5197
4696
|
**/
|
|
5198
|
-
viewallmessagechannels:
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
4697
|
+
viewallmessagechannels: "viewallmessagechannels",
|
|
5202
4698
|
|
|
5203
|
-
|
|
5204
|
-
/** viewallmessages
|
|
4699
|
+
/** viewallmessages
|
|
5205
4700
|
|
|
5206
4701
|
View all messages that the wallet contains
|
|
5207
4702
|
|
|
@@ -5216,15 +4711,11 @@ Result:
|
|
|
5216
4711
|
|
|
5217
4712
|
Examples:
|
|
5218
4713
|
> raven-cli viewallmessages
|
|
5219
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewallmessages", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4714
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewallmessages", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
5220
4715
|
**/
|
|
5221
|
-
viewallmessages:
|
|
5222
|
-
|
|
5223
|
-
|
|
4716
|
+
viewallmessages: "viewallmessages",
|
|
5224
4717
|
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
/** viewmyrestrictedaddresses
|
|
4718
|
+
/** viewmyrestrictedaddresses
|
|
5228
4719
|
|
|
5229
4720
|
View all addresses this wallet owns that have been restricted
|
|
5230
4721
|
|
|
@@ -5238,15 +4729,11 @@ Result:
|
|
|
5238
4729
|
|
|
5239
4730
|
Examples:
|
|
5240
4731
|
> raven-cli viewmyrestrictedaddresses
|
|
5241
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewmyrestrictedaddresses", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4732
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewmyrestrictedaddresses", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
5242
4733
|
**/
|
|
5243
|
-
viewmyrestrictedaddresses:
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
4734
|
+
viewmyrestrictedaddresses: "viewmyrestrictedaddresses",
|
|
5248
4735
|
|
|
5249
|
-
/** viewmytaggedaddresses
|
|
4736
|
+
/** viewmytaggedaddresses
|
|
5250
4737
|
|
|
5251
4738
|
View all addresses this wallet owns that have been tagged
|
|
5252
4739
|
|
|
@@ -5260,7 +4747,7 @@ Result:
|
|
|
5260
4747
|
|
|
5261
4748
|
Examples:
|
|
5262
4749
|
> raven-cli viewmytaggedaddresses
|
|
5263
|
-
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewmytaggedaddresses", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:
|
|
4750
|
+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "viewmytaggedaddresses", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:19001/
|
|
5264
4751
|
**/
|
|
5265
|
-
viewmytaggedaddresses:
|
|
5266
|
-
}
|
|
4752
|
+
viewmytaggedaddresses: "viewmytaggedaddresses",
|
|
4753
|
+
};
|