-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmethods.go
165 lines (155 loc) · 5.42 KB
/
methods.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
package portal
type method struct {
// This method does not require user authorization
NoAuth bool
}
var rpcMethods = map[string]method{
// == Blockchain ==
"callcontract": {true},
"getaccountinfo": {true},
"getbestblockhash": {true},
"getblock": {true},
"getblockchaininfo": {true},
"getblockcount": {true},
"getblockhash": {true},
"getblockheader": {true},
"getchaintips": {true},
"getdifficulty": {true},
"getmempoolancestors": {true},
"getmempooldescendants": {true},
"getmempoolentry": {true},
"getmempoolinfo": {true},
"getrawmempool": {true},
"gettransactionreceipt": {true},
"gettxout": {true},
"gettxoutproof": {true},
"gettxoutsetinfo": {true},
"listcontracts": {true},
// preciousblock "blockhash"
// pruneblockchain
// verifychain ( checklevel nblocks )
"verifytxoutproof": {true},
// == Control ==
// getinfo
"getinfo": {true},
// getmemoryinfo
// help ( "command" )
// stop
// == Generating ==
// generate nblocks ( maxtries )
// generatetoaddress nblocks address (maxtries)
// == Mining ==
// getblocktemplate ( TemplateRequest )
// getmininginfo
"getmininginfo": {true},
// getnetworkhashps ( nblocks height )
// getstakinginfo
"getstakinginfo": {true},
// getsubsidy [nTarget]
// prioritisetransaction <txid> <priority delta> <fee delta>
// submitblock "hexdata" ( "jsonparametersobject" )
// == Network ==
// addnode "node" "add|remove|onetry"
// clearbanned
// disconnectnode "node"
// getaddednodeinfo ( "node" )
// getconnectioncount
// getnettotals
"getnettotals": {true},
// getnetworkinfo
"getnetworkinfo": {true},
// getpeerinfo
"getpeerinfo": {true},
// listbanned
// ping
// setban "subnet" "add|remove" (bantime) (absolute)
// setnetworkactive true|false
// == Rawtransactions ==
// createrawtransaction [{"txid":"id","vout":n},...] {"address":amount,"data":"hex",...} ( locktime )
// decoderawtransaction "hexstring"
// decodescript "hexstring"
// fromhexaddress "hexaddress"
"fromhexaddress": {true},
// fundrawtransaction "hexstring" ( options )
// gethexaddress "address"
"gethexaddress": {true},
// getrawtransaction "txid" ( verbose )
// sendrawtransaction "hexstring" ( allowhighfees )
// signrawtransaction "hexstring" ( [{"txid":"id","vout":n,"scriptPubKey":"hex","redeemScript":"hex"},...] ["privatekey1",...] sighashtype )
// == Util ==
// createmultisig nrequired ["key",...]
// estimatefee nblocks
// estimatepriority nblocks
// estimatesmartfee nblocks
// estimatesmartpriority nblocks
// signmessagewithprivkey "privkey" "message"
// validateaddress "address"
// verifymessage "address" "signature" "message"
// == Wallet ==
// abandontransaction "txid"
// addmultisigaddress nrequired ["key",...] ( "account" )
// addwitnessaddress "address"
// backupwallet "destination"
// bumpfee "txid" ( options )
// createcontract "bytecode" (gaslimit gasprice "senderaddress" broadcast)
"createcontract": {false},
// dumpprivkey "address"
// dumpwallet "filename"
// encryptwallet "passphrase"
// getaccount "address"
"getaccount": {true},
// DEPRECATED getaccountaddress "account"
// DEPRECATED getaddressesbyaccount "account"
// getbalance ( "account" minconf include_watchonly )
"getbalance": {true},
// getnewaddress ( "account" )
"getnewaddress": {false},
// getrawchangeaddress
// DEPRECATED getreceivedbyaccount "account" ( minconf )
// getreceivedbyaddress "address" ( minconf )
"getreceivedbyaddress": {true},
// gettransaction "txid" ( include_watchonly )
"gettransaction": {true},
// getunconfirmedbalance
"getunconfirmedbalance": {true},
// getwalletinfo
"getwalletinfo": {true},
// importaddress "address" ( "label" rescan p2sh )
// importmulti "requests" "options"
// importprivkey "qtum" ( "label" ) ( rescan )
// importprunedfunds
// importpubkey "pubkey" ( "label" rescan )
// importwallet "filename"
// keypoolrefill ( newsize )
"keypoolrefill": {false},
// DEPRECATED listaccounts ( minconf include_watchonly)
// listaddressgroupings
// listlockunspent
// listreceivedbyaccount ( minconf include_empty include_watchonly)
// listreceivedbyaddress ( minconf include_empty include_watchonly)
"listreceivedbyaddress": {false},
// listsinceblock ( "blockhash" target_confirmations include_watchonly)
"listsinceblock": {true},
// listtransactions ( "account" count skip include_watchonly)
"listtransactions": {true},
// listunspent ( minconf maxconf ["addresses",...] [include_unsafe] )
"listunspent": {false},
// lockunspent unlock ([{"txid":"txid","vout":n},...])
// DEPRECATED move "fromaccount" "toaccount" amount ( minconf "comment" )
// removeprunedfunds "txid"
// reservebalance [<reserve> [amount]]
// DEPRECATED sendfrom "fromaccount" "toaddress" amount ( minconf "comment" "comment_to" )
// sendmany "fromaccount" {"address":amount,...} ( minconf "comment" ["address",...] )
"sendmany": {false},
// sendmanywithdupes "fromaccount" {"address":amount,...} ( minconf "comment" ["address",...] )
"sendmanywithdupes": {false},
// sendtoaddress "address" amount ( "comment" "comment_to" subtractfeefromamount )
"sendtoaddress": {false},
// sendtocontract "contractaddress" "data" (amount gaslimit gasprice senderaddress broadcast)
"sendtocontract": {false},
// DEPRECATED. setaccount "address" "account"
// settxfee amount
// signmessage "address" "message"
"waitforlogs": {true},
"help": {true},
}