Difference between revisions of "Cli commands"

From DeFiChain-Wiki
(Update Cli Commands)
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
== Accounts ==
 
== Accounts ==
#accounthistorycount ( "owner" {"no_rewards":bool,"token":"str"} )
+
#accounthistorycount ( "owner" {"no_rewards":bool,"token":"str","txtype":"str"} )
 
#accounttoaccount "from" {"address":"str"} ( [{"txid":"hex","vout":n},...] )
 
#accounttoaccount "from" {"address":"str"} ( [{"txid":"hex","vout":n},...] )
 +
##Explanation:  AccountToAccount sends from one account to many accounts. AnyAccountsToAccount can send from many accounts to many accounts
 
#accounttoutxos "from" {"address":"str"} ( [{"txid":"hex","vout":n},...] )
 
#accounttoutxos "from" {"address":"str"} ( [{"txid":"hex","vout":n},...] )
 
#getaccount "owner" ( {"start":"str","including_start":bool,"limit":n} indexed_amounts )
 
#getaccount "owner" ( {"start":"str","including_start":bool,"limit":n} indexed_amounts )
 +
#getburninfo
 
#gettokenbalances ( {"start":"str","including_start":bool,"limit":n} indexed_amounts symbol_lookup )
 
#gettokenbalances ( {"start":"str","including_start":bool,"limit":n} indexed_amounts symbol_lookup )
 
#listaccounthistory ( "owner" {"maxBlockHeight":n,"depth":n,"no_rewards":bool,"token":"str","txtype":"str","limit":n} )
 
#listaccounthistory ( "owner" {"maxBlockHeight":n,"depth":n,"no_rewards":bool,"token":"str","txtype":"str","limit":n} )
 
#listaccounts ( {"start":"str","including_start":bool,"limit":n} verbose indexed_amounts is_mine_only )
 
#listaccounts ( {"start":"str","including_start":bool,"limit":n} verbose indexed_amounts is_mine_only )
 +
#listburnhistory ( {"maxBlockHeight":n,"depth":n,"token":"str","txtype":"str","limit":n} )
 
#listcommunitybalances
 
#listcommunitybalances
 
#sendtokenstoaddress {"address":"str"} {"address":"str"} ( "selectionMode" )
 
#sendtokenstoaddress {"address":"str"} {"address":"str"} ( "selectionMode" )
 +
#sendutxosfrom "from" "to" amount ( "change" )
 
#utxostoaccount {"address":"str"} ( [{"txid":"hex","vout":n},...] )
 
#utxostoaccount {"address":"str"} ( [{"txid":"hex","vout":n},...] )
  
 
== Blockchain ==
 
== Blockchain ==
clearmempool
+
#clearmempool
getbestblockhash
+
#getbestblockhash
getblock "blockhash" ( verbosity )
+
#getblock "blockhash" ( verbosity )
getblockchaininfo
+
#getblockchaininfo
getblockcount
+
#getblockcount
getblockfilter "blockhash" ( "filtertype" )
+
#getblockfilter "blockhash" ( "filtertype" )
getblockhash height
+
#getblockhash height
getblockheader "blockhash" ( verbose )
+
#getblockheader "blockhash" ( verbose )
getblockstats hash_or_height ( stats )
+
#getblockstats hash_or_height ( stats )
getchaintips
+
#getchaintips
getchaintxstats ( nblocks "blockhash" )
+
#getchaintxstats ( nblocks "blockhash" )
getdifficulty
+
#getdifficulty
getgov "name"
+
#getgov "name"
getmempoolancestors "txid" ( verbose )
+
#getmempoolancestors "txid" ( verbose )
getmempooldescendants "txid" ( verbose )
+
#getmempooldescendants "txid" ( verbose )
getmempoolentry "txid"
+
#getmempoolentry "txid"
getmempoolinfo
+
#getmempoolinfo
getrawmempool ( verbose )
+
#getrawmempool ( verbose )
gettxout "txid" n ( include_mempool )
+
#gettxout "txid" n ( include_mempool )
gettxoutproof ["txid",...] ( "blockhash" )
+
#gettxoutproof ["txid",...] ( "blockhash" )
gettxoutsetinfo
+
#gettxoutsetinfo
isappliedcustomtx ( "txid" blockHeight )
+
#isappliedcustomtx ( "txid" blockHeight )
preciousblock "blockhash"
+
#listgovs
pruneblockchain height
+
#preciousblock "blockhash"
savemempool
+
#pruneblockchain height
scantxoutset "action" [scanobjects,...]
+
#savemempool
setgov {"name":"str"} ( [{"txid":"hex","vout":n},...] )
+
#scantxoutset "action" [scanobjects,...]
verifychain ( checklevel nblocks )
+
#setgov {"name":"str"} ( [{"txid":"hex","vout":n},...] )
verifytxoutproof "proof"
+
#setgovheight {"name":"str"} height ( [{"txid":"hex","vout":n},...] )
 +
#verifychain ( checklevel nblocks )
 +
#verifytxoutproof "proof"
  
 
== Control ==
 
== Control ==
getmemoryinfo ( "mode" )
+
#getmemoryinfo ( "mode" )
getrpcinfo
+
#getrpcinfo
help ( "command" )
+
#help ( "command" )
logging ( ["include_category",...] ["exclude_category",...] )
+
#logging ( ["include_category",...] ["exclude_category",...] )
stop
+
#stop
uptime
+
#uptime
  
 
== Generating ==
 
== Generating ==
generatetoaddress nblocks "address" ( maxtries )
+
#generatetoaddress nblocks "address" ( maxtries )
 +
 
 +
== Icxorderbook ==
 +
 
 +
# icx_claimdfchtlc ( {"dfchtlcTx":"str","seed":"str"} [{"txid":"hex","vout":n},...] )
 +
# icx_closeoffer "offerTx" ( [{"txid":"hex","vout":n},...] )
 +
# icx_closeorder "orderTx" ( [{"txid":"hex","vout":n},...] )
 +
# icx_createorder {"tokenFrom|chainFrom":"str","chainTo|tokenTo":"str","ownerAddress":"str","receivePubkey":"str","amountFrom":n,"orderPrice":n,"expiry":n} ( [{"txid":"hex","vout":n},...] )
 +
# icx_getorder "orderTx"
 +
# icx_listhtlcs {"offerTx":"str","limit":n,"closed":bool}
 +
# icx_listorders ( {"token":n,"chain":n,"orderTx":"str","limit":n,"closed":bool} )
 +
# icx_makeoffer ( {"orderTx":"str","amount":n,"ownerAddress":"str","receivePubkey":"str","expiry":n} [{"txid":"hex","vout":n},...] )
 +
# icx_submitdfchtlc ( {"offerTx":"str","amount":n,"hash":"str","timeout":n} [{"txid":"hex","vout":n},...] )
 +
# icx_submitexthtlc ( {"offerTx":"str","amount":n,"htlcScriptAddress":"str","hash":"str","ownerPubkey":"str","timeout":n} [{"txid":"hex","vout":n},...] )
 +
 
 +
== Loan ==
 +
 
 +
# createloanscheme mincolratio interestrate "id" ( [{"txid":"hex","vout":n},...] )
 +
# destroyloanscheme "id" ( ACTIVATE_AFTER_BLOCK [{"txid":"hex","vout":n},...] )
 +
# getcollateraltoken "token"
 +
# getinterest "id" ( "token" )
 +
# getloaninfo
 +
# getloanscheme "id"
 +
# getloantoken "token"
 +
# listcollateraltokens ( {"height":n,"all":bool} )
 +
# listloanschemes
 +
# listloantokens
 +
# paybackloan {"vaultId":"hex","from":"str","amounts":"str"} ( [{"txid":"hex","vout":n},...] )
 +
# setcollateraltoken {"token":"str","factor":n,"fixedIntervalPriceId":"hex","activateAfterBlock":n} ( [{"txid":"hex","vout":n},...] )
 +
# setdefaultloanscheme "id" ( [{"txid":"hex","vout":n},...] )
 +
# setloantoken {"symbol":"str","name":"str","fixedIntervalPriceId":"hex","mintable":bool,"interest":n} ( [{"txid":"hex","vout":n},...] )
 +
# takeloan {"vaultId":"hex","to":"str","amounts":"str"} ( [{"txid":"hex","vout":n},...] )
 +
# updateloanscheme mincolratio interestrate "id" ( ACTIVATE_AFTER_BLOCK [{"txid":"hex","vout":n},...] )
 +
# updateloantoken "token" ( {"symbol":"str","name":"str","fixedIntervalPriceId":"hex","mintable":bool,"interest":n} [{"txid":"hex","vout":n},...] )
  
 
== Masternodes ==
 
== Masternodes ==
createmasternode "ownerAddress" ( "operatorAddress" [{"txid":"hex","vout":n},...] )
+
#createmasternode "ownerAddress" ( "operatorAddress" [{"txid":"hex","vout":n},...] )
getmasternode "mn_id"
+
#getanchorteams ( blockHeight )
listcriminalproofs ( {"start":"hex","including_start":bool,"limit":n} )
+
#getmasternode "mn_id"
listmasternodes ( {"start":"hex","including_start":bool,"limit":n} verbose )
+
#getmasternodeblocks ( {"id":"hex","ownerAddress":"str","operatorAddress":"str"} depth )
resignmasternode "mn_id" ( [{"txid":"hex","vout":n},...] )
+
#listanchors
 +
#listcriminalproofs ( {"start":"hex","including_start":bool,"limit":n} )
 +
#listmasternodes ( {"start":"hex","including_start":bool,"limit":n} verbose )
 +
#resignmasternode "mn_id" ( [{"txid":"hex","vout":n},...] )
  
 
== Mining ==
 
== Mining ==
getblocktemplate ( "template_request" )
+
#getblocktemplate ( "template_request" )
getmintinginfo
+
#getmininginfo
getnetworkhashps ( nblocks height )
+
#getmintinginfo
prioritisetransaction "txid" ( dummy ) fee_delta
+
#getnetworkhashps ( nblocks height )
submitblock "hexdata" ( "dummy" )
+
#prioritisetransaction "txid" ( dummy ) fee_delta
submitheader "hexdata"
+
#submitblock "hexdata" ( "dummy" )
 +
#submitheader "hexdata"
  
 
== Network ==
 
== Network ==
addnode "node" "command"
+
#[[addnode]] "node" "command"
clearbanned
+
#clearbanned
disconnectnode ( "address" nodeid )
+
#disconnectnode ( "address" nodeid )
getaddednodeinfo ( "node" )
+
#getaddednodeinfo ( "node" )
getconnectioncount
+
#getconnectioncount
getnettotals
+
#getnettotals
getnetworkinfo
+
#getnetworkinfo
getnodeaddresses ( count )
+
#getnodeaddresses ( count )
getpeerinfo
+
#getpeerinfo
listbanned
+
#listbanned
ping
+
#ping
setban "subnet" "command" ( bantime absolute )
+
#setban "subnet" "command" ( bantime absolute )
setnetworkactive state
+
#setnetworkactive state
 +
 
 +
== Oracles ==
 +
#appointoracle "address" [{"currency":"str","token":"str"},...] weightage ( [{"txid":"hex","vout":n},...] )
 +
#getfixedintervalprice "fixedIntervalPriceId"
 +
#getoracledata "oracleid"
 +
#getprice {"currency":"str","token":"str"}
 +
#listfixedintervalprices ( {"start":n,"limit":n} )
 +
#listlatestrawprices ( {"currency":"str","token":"str"} {"start":"hex","including_start":bool,"limit":n} )
 +
#listoracles ( {"start":"hex","including_start":bool,"limit":n} )
 +
#listprices ( {"start":n,"including_start":bool,"limit":n} )
 +
#removeoracle "oracleid" ( [{"txid":"hex","vout":n},...] )
 +
#setoracledata "oracleid" timestamp [{"currency":"str","tokenAmount":"str"},...] ( [{"txid":"hex","vout":n},...] )
 +
#updateoracle "oracleid" "address" [{"currency":"str","token":"str"},...] weightage ( [{"txid":"hex","vout":n},...] )
  
 
== Poolpair ==
 
== Poolpair ==
addpoolliquidity {"address":"str"} "shareAddress" ( [{"txid":"hex","vout":n},...] )
+
#addpoolliquidity {"address":"str"} "shareAddress" ( [{"txid":"hex","vout":n},...] )
createpoolpair ( {"tokenA":"str","tokenB":"str","commission":n,"status":bool,"ownerAddress":"str","customRewards":"str","pairSymbol":"str"} [{"txid":"hex","vout":n},...] )
+
#compositeswap {"from":"str","tokenFrom":"str","amountFrom":n,"to":"str","tokenTo":"str","maxPrice":n} ( [{"txid":"hex","vout":n},...] )
getpoolpair "key" ( verbose )
+
#createpoolpair ( {"tokenA":"str","tokenB":"str","commission":n,"status":bool,"ownerAddress":"str","customRewards":"str","pairSymbol":"str"} [{"txid":"hex","vout":n},...] )
listpoolpairs ( {"start":n,"including_start":bool,"limit":n} verbose )
+
#getpoolpair "key" ( verbose )
listpoolshares ( {"start":n,"including_start":bool,"limit":n} verbose is_mine_only )
+
#listpoolpairs ( {"start":n,"including_start":bool,"limit":n} verbose )
poolswap ( {"from":"str","tokenFrom":"str","amountFrom":n,"to":"str","tokenTo":"str","maxPrice":n} [{"txid":"hex","vout":n},...] )
+
#listpoolshares ( {"start":n,"including_start":bool,"limit":n} verbose is_mine_only )
removepoolliquidity "from" "amount" ( [{"txid":"hex","vout":n},...] )
+
#poolswap {"from":"str","tokenFrom":"str","amountFrom":n,"to":"str","tokenTo":"str","maxPrice":n} ( [{"txid":"hex","vout":n},...] )
testpoolswap ( {"from":"str","tokenFrom":"str","amountFrom":n,"to":"str","tokenTo":"str","maxPrice":n} )
+
#removepoolliquidity "from" "amount" ( [{"txid":"hex","vout":n},...] )
updatepoolpair ( {"pool":"str","status":bool,"commission":n,"ownerAddress":"str","customRewards":"str"} [{"txid":"hex","vout":n},...] )
+
#testpoolswap ( {"from":"str","tokenFrom":"str","amountFrom":n,"to":"str","tokenTo":"str","maxPrice":n} )
 +
#updatepoolpair ( {"pool":"str","status":bool,"commission":n,"ownerAddress":"str","customRewards":"str"} [{"txid":"hex","vout":n},...] )
  
 
== Rawtransactions ==
 
== Rawtransactions ==
analyzepsbt "psbt"
+
#analyzepsbt "psbt"
combinepsbt ["psbt",...]
+
#combinepsbt ["psbt",...]
combinerawtransaction ["hexstring",...]
+
#combinerawtransaction ["hexstring",...]
converttopsbt "hexstring" ( permitsigdata iswitness )
+
#converttopsbt "hexstring" ( permitsigdata iswitness )
createpsbt [{"txid":"hex","vout":n,"sequence":n},...] [{"address":amount},{"data":"hex"},...] ( locktime replaceable )
+
#createpsbt [{"txid":"hex","vout":n,"sequence":n},...] [{"address":amount},{"data":"hex"},...] ( locktime replaceable)
createrawtransaction [{"txid":"hex","vout":n,"sequence":n},...] [{"address":amount},{"data":"hex"},...] ( locktime replaceable )
+
#createrawtransaction [{"txid":"hex","vout":n,"sequence":n},...] [{"address":amount},{"data":"hex"},...] ( locktime replaceable )
decodepsbt "psbt"
+
#decodepsbt "psbt"
decoderawtransaction "hexstring" ( iswitness )
+
#decoderawtransaction "hexstring" ( iswitness )
decodescript "hexstring"
+
#decodescript "hexstring"
finalizepsbt "psbt" ( extract )
+
#finalizepsbt "psbt" ( extract )
fundrawtransaction "hexstring" ( options iswitness )
+
#fundrawtransaction "hexstring" ( options iswitness )
getrawtransaction "txid" ( verbose "blockhash" )
+
#getrawtransaction "txid" ( verbose "blockhash" )
joinpsbts ["psbt",...]
+
#joinpsbts ["psbt",...]
sendrawtransaction "hexstring" ( maxfeerate )
+
#sendrawtransaction "hexstring" ( maxfeerate )
signrawtransactionwithkey "hexstring" ["privatekey",...] ( [{"txid":"hex","vout":n,"scriptPubKey":"hex","redeemScript":"hex","witnessScript":"hex","amount":amount},...] "sighashtype" )
+
#signrawtransactionwithkey "hexstring" ["privatekey",...] ( [{"txid":"hex","vout":n,"scriptPubKey":"hex","redeemScript":"hex","witnessScript":"hex","amount":amount},...] "sighashtype" )
testmempoolaccept ["rawtx",...] ( maxfeerate )
+
#testmempoolaccept ["rawtx",...] ( maxfeerate )
utxoupdatepsbt "psbt" ( ["",{"desc":"str","range":n or [n,n]},...] )
+
#utxoupdatepsbt "psbt" ( ["",{"desc":"str","range":n or [n,n]},...] )
  
 
== Spv ==
 
== Spv ==
spv_createanchor ( [{"txid":"hex","vout":n,"amount":n,"privkey":"str"},...] ) "rewardAddress" ( send feerate )
+
#spv_claimhtlc "scriptaddress" "destinationaddress" "seed" ( feerate )
spv_createanchortemplate "rewardAddress"
+
#spv_createanchor ( [{"txid":"hex","vout":n,"amount":n,"privkey":"str"},...] ) "rewardAddress" ( send feerate )
spv_estimateanchorcost ( feerate )
+
#spv_createanchortemplate "rewardAddress"
spv_gettxconfirmations "txhash"
+
#spv_createhtlc "receiverPubkey" "ownerPubkey" "timeout" ( "seed" )
spv_listanchorauths
+
#spv_decodehtlcscript "redeemscript"
spv_listanchorrewardconfirms
+
#spv_dumpprivkey "address"
spv_listanchorrewards
+
#spv_estimateanchorcost ( feerate )
spv_listanchors ( minBtcHeight maxBtcHeight minConfs maxConfs )
+
#spv_getaddresspubkey "address"
spv_rescan ( height )
+
#spv_getalladdresses
spv_sendrawtx "rawtx"
+
#spv_getbalance
spv_splitutxo parts ( amount )
+
#spv_getfeerate
spv_syncstatus
+
#spv_gethtlcseed "address"
 
+
#spv_getnewaddress
 +
#spv_getpeers
 +
#spv_getrawtransaction "txid"
 +
#spv_gettxconfirmations "txhash"
 +
#spv_listanchorauths
 +
#spv_listanchorrewardconfirms
 +
#spv_listanchorrewards
 +
#spv_listanchors ( minBtcHeight maxBtcHeight minConfs maxConfs )
 +
#spv_listanchorspending
 +
#spv_listanchorsunrewarded
 +
#spv_listhtlcoutputs ( "address" )
 +
#spv_listreceivedbyaddress ( minconf "address_filter" )
 +
#spv_listtransactions
 +
#spv_refundhtlc "scriptaddress" "destinationaddress" ( feerate )
 +
#spv_refundhtlcall "destinationaddress" ( feerate )
 +
#spv_rescan ( height )
 +
#spv_sendrawtx "rawtx"
 +
#spv_sendtoaddress "address" amount ( feerate )
 +
#spv_syncstatus
 +
#spv_validateaddress "address"
 +
 
== Tokens ==
 
== Tokens ==
createtoken ( {"symbol":"str","name":"str","isDAT":bool,"decimal":n,"limit":n,"mintable":bool,"tradeable":bool,"collateralAddress":"str"} [{"txid":"hex","vout":n},...] )
+
#createtoken ( {"symbol":"str","name":"str","isDAT":bool,"decimal":n,"limit":n,"mintable":bool,"tradeable":bool,"collateralAddress":"str"} [{"txid":"hex","vout":n},...] )
getcustomtx "txid" ( "blockhash" )
+
#decodecustomtx "hexstring" ( iswitness )
gettoken "key"
+
#getcustomtx "txid" ( "blockhash" )
listtokens ( {"start":n,"including_start":bool,"limit":n} verbose )
+
#gettoken "key"
minttokens "amounts" ( [{"txid":"hex","vout":n},...] )
+
#listtokens ( {"start":n,"including_start":bool,"limit":n} verbose )
updatetoken "token" ( {"symbol":"str","name":"str","isDAT":bool,"mintable":bool,"tradeable":bool,"finalize":bool} [{"txid":"hex","vout":n},...] )
+
#minttokens "amounts" ( [{"txid":"hex","vout":n},...] )
 +
#updatetoken "token" ( {"symbol":"str","name":"str","isDAT":bool,"mintable":bool,"tradeable":bool,"finalize":bool} [{"txid":"hex","vout":n},...] )
  
 
== Util ==
 
== Util ==
createmultisig nrequired ["key",...] ( "address_type" )
+
#createmultisig nrequired ["key",...] ( "address_type" )
deriveaddresses "descriptor" ( range )
+
#deriveaddresses "descriptor" ( range )
estimatesmartfee conf_target ( "estimate_mode" )
+
#estimatesmartfee conf_target ( "estimate_mode" )
getdescriptorinfo "descriptor"
+
#getdescriptorinfo "descriptor"
signmessagewithprivkey "privkey" "message"
+
#signmessagewithprivkey "privkey" "message"
validateaddress "address"
+
#validateaddress "address"
verifymessage "address" "signature" "message"
+
#verifymessage "address" "signature" "message"
 +
 
 +
== Vault ==
 +
#closevault "vaultId" "to" ( [{"txid":"hex","vout":n},...] )
 +
#createvault "ownerAddress" ( "loanSchemeId" [{"txid":"hex","vout":n},...] )
 +
#deposittovault "vaultId" "from" "amount" ( [{"txid":"hex","vout":n},...] )
 +
#getvault "vaultId"
 +
#listauctionhistory ( "owner" {"maxBlockHeight":n,"vaultId":"hex","index":n,"limit":n} )
 +
#listauctions ( {"start":obj,"including_start":bool,"limit":n} )
 +
#listvaults ( {"ownerAddress":"str","loanSchemeId":"str","state":"str","verbose":bool} {"start":"hex","including_start":bool,"limit":n} )
 +
#placeauctionbid "vaultId" index "from" "amount" ( [{"txid":"hex","vout":n},...] )
 +
#updatevault "vaultId" {"ownerAddress":"hex","loanSchemeId":"str"} ( [{"txid":"hex","vout":n},...] )
 +
#withdrawfromvault "vaultId" "to" "amount" ( [{"txid":"hex","vout":n},...] )
  
 
== Wallet ==
 
== Wallet ==
abandontransaction "txid"
+
#abandontransaction "txid"
abortrescan
+
#abortrescan
addmultisigaddress nrequired ["key",...] ( "label" "address_type" )
+
#addmultisigaddress nrequired ["key",...] ( "label" "address_type" )
backupwallet "destination"
+
#backupwallet "destination"
bumpfee "txid" ( options )
+
#bumpfee "txid" ( options )
createwallet "wallet_name" ( disable_private_keys blank "passphrase" avoid_reuse )
+
#createwallet "wallet_name" ( disable_private_keys blank "passphrase" avoid_reuse )
dumpprivkey "address"
+
#dumpprivkey "address"
dumpwallet "filename"
+
#dumpwallet "filename"
encryptwallet "passphrase"
+
#encryptwallet "passphrase"
getaddressesbylabel "label"
+
#getaddressesbylabel "label"
getaddressinfo "address"
+
#getaddressinfo "address"
getbalance ( "dummy" minconf include_watchonly avoid_reuse with_tokens )
+
#getbalance ( "dummy" minconf include_watchonly avoid_reuse with_tokens )
getbalances ( with_tokens )
+
#getbalances ( with_tokens )
getnewaddress ( "label" "address_type" )
+
#getnewaddress ( "label" "address_type" )
getrawchangeaddress ( "address_type" )
+
#getrawchangeaddress ( "address_type" )
getreceivedbyaddress "address" ( minconf )
+
#getreceivedbyaddress "address" ( minconf )
getreceivedbylabel "label" ( minconf )
+
#getreceivedbylabel "label" ( minconf )
gettransaction "txid" ( include_watchonly )
+
#gettransaction "txid" ( include_watchonly )
getunconfirmedbalance ( with_tokens )
+
#getunconfirmedbalance ( with_tokens )
getwalletinfo ( with_tokens )
+
#getwalletinfo ( with_tokens )
importaddress "address" ( "label" rescan p2sh )
+
#importaddress "address" ( "label" rescan p2sh )
importmulti "requests" ( "options" )
+
#importmulti "requests" ( "options" )
importprivkey "privkey" ( "label" rescan )
+
#importprivkey "privkey" ( "label" rescan )
importprunedfunds "rawtransaction" "txoutproof"
+
#importprunedfunds "rawtransaction" "txoutproof"
importpubkey "pubkey" ( "label" rescan )
+
#importpubkey "pubkey" ( "label" rescan )
importwallet "filename"
+
#importwallet "filename"
keypoolrefill ( newsize )
+
#keypoolrefill ( newsize )
listaddressgroupings
+
#listaddressgroupings
listlabels ( "purpose" )
+
#listlabels ( "purpose" )
listlockunspent
+
#listlockunspent
listreceivedbyaddress ( minconf include_empty include_watchonly "address_filter" )
+
#listreceivedbyaddress ( minconf include_empty include_watchonly "address_filter" )
listreceivedbylabel ( minconf include_empty include_watchonly )
+
#listreceivedbylabel ( minconf include_empty include_watchonly )
listsinceblock ( "blockhash" target_confirmations include_watchonly include_removed )
+
#listsinceblock ( "blockhash" target_confirmations include_watchonly include_removed )
listtransactions ( "label" count skip include_watchonly )
+
#listtransactions ( "label" count skip include_watchonly exclude_custom_tx )
listunspent ( minconf maxconf ["address",...] include_unsafe query_options )
+
#listunspent ( minconf maxconf ["address",...] include_unsafe query_options )
listwalletdir
+
#listwalletdir
listwallets
+
#listwallets
loadwallet "filename"
+
#loadwallet "filename"
lockunspent unlock ( [{"txid":"hex","vout":n},...] )
+
#lockunspent unlock ( [{"txid":"hex","vout":n},...] )
removeprunedfunds "txid"
+
#removeprunedfunds "txid"
rescanblockchain ( start_height stop_height )
+
#rescanblockchain ( start_height stop_height )
sendmany "" {"address":amount} ( minconf "comment" ["address",...] replaceable conf_target "estimate_mode" )
+
#sendmany "" {"address":amount} ( minconf "comment" ["address",...] replaceable conf_target "estimate_mode" )
sendtoaddress "address" amount ( "comment" "comment_to" subtractfeefromamount replaceable conf_target "estimate_mode" avoid_reuse )
+
#sendtoaddress "address" amount ( "comment" "comment_to" subtractfeefromamount replaceable conf_target "estimate_mode"avoid_reuse )
sethdseed ( newkeypool "seed" )
+
#sethdseed ( newkeypool "seed" )
setlabel "address" "label"
+
#setlabel "address" "label"
settxfee amount
+
#settxfee amount
setwalletflag "flag" ( value )
+
#setwalletflag "flag" ( value )
signmessage "address" "message"
+
#signmessage "address" "message"
signrawtransactionwithwallet "hexstring" ( [{"txid":"hex","vout":n,"scriptPubKey":"hex","redeemScript":"hex","witnessScript":"hex","amount":amount},...] "sighashtype" )
+
#signrawtransactionwithwallet "hexstring" ( [{"txid":"hex","vout":n,"scriptPubKey":"hex","redeemScript":"hex","witnessScript":"hex","amount":amount},...] "sighashtype" )
unloadwallet ( "wallet_name" )
+
#unloadwallet ( "wallet_name" )
walletcreatefundedpsbt [{"txid":"hex","vout":n,"sequence":n},...] [{"address":amount},{"data":"hex"},...] ( locktime options bip32derivs )
+
#walletcreatefundedpsbt [{"txid":"hex","vout":n,"sequence":n},...] [{"address":amount},{"data":"hex"},...] ( locktime options bip32derivs )
walletlock
+
#walletlock
walletpassphrase "passphrase" timeout
+
#walletpassphrase "passphrase" timeout
walletpassphrasechange "oldpassphrase" "newpassphrase"
+
#walletpassphrasechange "oldpassphrase" "newpassphrase"
walletprocesspsbt "psbt" ( sign "sighashtype" bip32derivs )
+
#walletprocesspsbt "psbt" ( sign "sighashtype" bip32derivs )
  
 
== Zmq ==
 
== Zmq ==
getzmqnotifications
+
#getzmqnotifications

Latest revision as of 17:30, 19 November 2021

Accounts

  1. accounthistorycount ( "owner" {"no_rewards":bool,"token":"str","txtype":"str"} )
  2. accounttoaccount "from" {"address":"str"} ( [{"txid":"hex","vout":n},...] )
    1. Explanation: AccountToAccount sends from one account to many accounts. AnyAccountsToAccount can send from many accounts to many accounts
  3. accounttoutxos "from" {"address":"str"} ( [{"txid":"hex","vout":n},...] )
  4. getaccount "owner" ( {"start":"str","including_start":bool,"limit":n} indexed_amounts )
  5. getburninfo
  6. gettokenbalances ( {"start":"str","including_start":bool,"limit":n} indexed_amounts symbol_lookup )
  7. listaccounthistory ( "owner" {"maxBlockHeight":n,"depth":n,"no_rewards":bool,"token":"str","txtype":"str","limit":n} )
  8. listaccounts ( {"start":"str","including_start":bool,"limit":n} verbose indexed_amounts is_mine_only )
  9. listburnhistory ( {"maxBlockHeight":n,"depth":n,"token":"str","txtype":"str","limit":n} )
  10. listcommunitybalances
  11. sendtokenstoaddress {"address":"str"} {"address":"str"} ( "selectionMode" )
  12. sendutxosfrom "from" "to" amount ( "change" )
  13. utxostoaccount {"address":"str"} ( [{"txid":"hex","vout":n},...] )

Blockchain

  1. clearmempool
  2. getbestblockhash
  3. getblock "blockhash" ( verbosity )
  4. getblockchaininfo
  5. getblockcount
  6. getblockfilter "blockhash" ( "filtertype" )
  7. getblockhash height
  8. getblockheader "blockhash" ( verbose )
  9. getblockstats hash_or_height ( stats )
  10. getchaintips
  11. getchaintxstats ( nblocks "blockhash" )
  12. getdifficulty
  13. getgov "name"
  14. getmempoolancestors "txid" ( verbose )
  15. getmempooldescendants "txid" ( verbose )
  16. getmempoolentry "txid"
  17. getmempoolinfo
  18. getrawmempool ( verbose )
  19. gettxout "txid" n ( include_mempool )
  20. gettxoutproof ["txid",...] ( "blockhash" )
  21. gettxoutsetinfo
  22. isappliedcustomtx ( "txid" blockHeight )
  23. listgovs
  24. preciousblock "blockhash"
  25. pruneblockchain height
  26. savemempool
  27. scantxoutset "action" [scanobjects,...]
  28. setgov {"name":"str"} ( [{"txid":"hex","vout":n},...] )
  29. setgovheight {"name":"str"} height ( [{"txid":"hex","vout":n},...] )
  30. verifychain ( checklevel nblocks )
  31. verifytxoutproof "proof"

Control

  1. getmemoryinfo ( "mode" )
  2. getrpcinfo
  3. help ( "command" )
  4. logging ( ["include_category",...] ["exclude_category",...] )
  5. stop
  6. uptime

Generating

  1. generatetoaddress nblocks "address" ( maxtries )

Icxorderbook

  1. icx_claimdfchtlc ( {"dfchtlcTx":"str","seed":"str"} [{"txid":"hex","vout":n},...] )
  2. icx_closeoffer "offerTx" ( [{"txid":"hex","vout":n},...] )
  3. icx_closeorder "orderTx" ( [{"txid":"hex","vout":n},...] )
  4. icx_createorder {"tokenFrom|chainFrom":"str","chainTo|tokenTo":"str","ownerAddress":"str","receivePubkey":"str","amountFrom":n,"orderPrice":n,"expiry":n} ( [{"txid":"hex","vout":n},...] )
  5. icx_getorder "orderTx"
  6. icx_listhtlcs {"offerTx":"str","limit":n,"closed":bool}
  7. icx_listorders ( {"token":n,"chain":n,"orderTx":"str","limit":n,"closed":bool} )
  8. icx_makeoffer ( {"orderTx":"str","amount":n,"ownerAddress":"str","receivePubkey":"str","expiry":n} [{"txid":"hex","vout":n},...] )
  9. icx_submitdfchtlc ( {"offerTx":"str","amount":n,"hash":"str","timeout":n} [{"txid":"hex","vout":n},...] )
  10. icx_submitexthtlc ( {"offerTx":"str","amount":n,"htlcScriptAddress":"str","hash":"str","ownerPubkey":"str","timeout":n} [{"txid":"hex","vout":n},...] )

Loan

  1. createloanscheme mincolratio interestrate "id" ( [{"txid":"hex","vout":n},...] )
  2. destroyloanscheme "id" ( ACTIVATE_AFTER_BLOCK [{"txid":"hex","vout":n},...] )
  3. getcollateraltoken "token"
  4. getinterest "id" ( "token" )
  5. getloaninfo
  6. getloanscheme "id"
  7. getloantoken "token"
  8. listcollateraltokens ( {"height":n,"all":bool} )
  9. listloanschemes
  10. listloantokens
  11. paybackloan {"vaultId":"hex","from":"str","amounts":"str"} ( [{"txid":"hex","vout":n},...] )
  12. setcollateraltoken {"token":"str","factor":n,"fixedIntervalPriceId":"hex","activateAfterBlock":n} ( [{"txid":"hex","vout":n},...] )
  13. setdefaultloanscheme "id" ( [{"txid":"hex","vout":n},...] )
  14. setloantoken {"symbol":"str","name":"str","fixedIntervalPriceId":"hex","mintable":bool,"interest":n} ( [{"txid":"hex","vout":n},...] )
  15. takeloan {"vaultId":"hex","to":"str","amounts":"str"} ( [{"txid":"hex","vout":n},...] )
  16. updateloanscheme mincolratio interestrate "id" ( ACTIVATE_AFTER_BLOCK [{"txid":"hex","vout":n},...] )
  17. updateloantoken "token" ( {"symbol":"str","name":"str","fixedIntervalPriceId":"hex","mintable":bool,"interest":n} [{"txid":"hex","vout":n},...] )

Masternodes

  1. createmasternode "ownerAddress" ( "operatorAddress" [{"txid":"hex","vout":n},...] )
  2. getanchorteams ( blockHeight )
  3. getmasternode "mn_id"
  4. getmasternodeblocks ( {"id":"hex","ownerAddress":"str","operatorAddress":"str"} depth )
  5. listanchors
  6. listcriminalproofs ( {"start":"hex","including_start":bool,"limit":n} )
  7. listmasternodes ( {"start":"hex","including_start":bool,"limit":n} verbose )
  8. resignmasternode "mn_id" ( [{"txid":"hex","vout":n},...] )

Mining

  1. getblocktemplate ( "template_request" )
  2. getmininginfo
  3. getmintinginfo
  4. getnetworkhashps ( nblocks height )
  5. prioritisetransaction "txid" ( dummy ) fee_delta
  6. submitblock "hexdata" ( "dummy" )
  7. submitheader "hexdata"

Network

  1. addnode "node" "command"
  2. clearbanned
  3. disconnectnode ( "address" nodeid )
  4. getaddednodeinfo ( "node" )
  5. getconnectioncount
  6. getnettotals
  7. getnetworkinfo
  8. getnodeaddresses ( count )
  9. getpeerinfo
  10. listbanned
  11. ping
  12. setban "subnet" "command" ( bantime absolute )
  13. setnetworkactive state

Oracles

  1. appointoracle "address" [{"currency":"str","token":"str"},...] weightage ( [{"txid":"hex","vout":n},...] )
  2. getfixedintervalprice "fixedIntervalPriceId"
  3. getoracledata "oracleid"
  4. getprice {"currency":"str","token":"str"}
  5. listfixedintervalprices ( {"start":n,"limit":n} )
  6. listlatestrawprices ( {"currency":"str","token":"str"} {"start":"hex","including_start":bool,"limit":n} )
  7. listoracles ( {"start":"hex","including_start":bool,"limit":n} )
  8. listprices ( {"start":n,"including_start":bool,"limit":n} )
  9. removeoracle "oracleid" ( [{"txid":"hex","vout":n},...] )
  10. setoracledata "oracleid" timestamp [{"currency":"str","tokenAmount":"str"},...] ( [{"txid":"hex","vout":n},...] )
  11. updateoracle "oracleid" "address" [{"currency":"str","token":"str"},...] weightage ( [{"txid":"hex","vout":n},...] )

Poolpair

  1. addpoolliquidity {"address":"str"} "shareAddress" ( [{"txid":"hex","vout":n},...] )
  2. compositeswap {"from":"str","tokenFrom":"str","amountFrom":n,"to":"str","tokenTo":"str","maxPrice":n} ( [{"txid":"hex","vout":n},...] )
  3. createpoolpair ( {"tokenA":"str","tokenB":"str","commission":n,"status":bool,"ownerAddress":"str","customRewards":"str","pairSymbol":"str"} [{"txid":"hex","vout":n},...] )
  4. getpoolpair "key" ( verbose )
  5. listpoolpairs ( {"start":n,"including_start":bool,"limit":n} verbose )
  6. listpoolshares ( {"start":n,"including_start":bool,"limit":n} verbose is_mine_only )
  7. poolswap {"from":"str","tokenFrom":"str","amountFrom":n,"to":"str","tokenTo":"str","maxPrice":n} ( [{"txid":"hex","vout":n},...] )
  8. removepoolliquidity "from" "amount" ( [{"txid":"hex","vout":n},...] )
  9. testpoolswap ( {"from":"str","tokenFrom":"str","amountFrom":n,"to":"str","tokenTo":"str","maxPrice":n} )
  10. updatepoolpair ( {"pool":"str","status":bool,"commission":n,"ownerAddress":"str","customRewards":"str"} [{"txid":"hex","vout":n},...] )

Rawtransactions

  1. analyzepsbt "psbt"
  2. combinepsbt ["psbt",...]
  3. combinerawtransaction ["hexstring",...]
  4. converttopsbt "hexstring" ( permitsigdata iswitness )
  5. createpsbt [{"txid":"hex","vout":n,"sequence":n},...] [{"address":amount},{"data":"hex"},...] ( locktime replaceable)
  6. createrawtransaction [{"txid":"hex","vout":n,"sequence":n},...] [{"address":amount},{"data":"hex"},...] ( locktime replaceable )
  7. decodepsbt "psbt"
  8. decoderawtransaction "hexstring" ( iswitness )
  9. decodescript "hexstring"
  10. finalizepsbt "psbt" ( extract )
  11. fundrawtransaction "hexstring" ( options iswitness )
  12. getrawtransaction "txid" ( verbose "blockhash" )
  13. joinpsbts ["psbt",...]
  14. sendrawtransaction "hexstring" ( maxfeerate )
  15. signrawtransactionwithkey "hexstring" ["privatekey",...] ( [{"txid":"hex","vout":n,"scriptPubKey":"hex","redeemScript":"hex","witnessScript":"hex","amount":amount},...] "sighashtype" )
  16. testmempoolaccept ["rawtx",...] ( maxfeerate )
  17. utxoupdatepsbt "psbt" ( ["",{"desc":"str","range":n or [n,n]},...] )

Spv

  1. spv_claimhtlc "scriptaddress" "destinationaddress" "seed" ( feerate )
  2. spv_createanchor ( [{"txid":"hex","vout":n,"amount":n,"privkey":"str"},...] ) "rewardAddress" ( send feerate )
  3. spv_createanchortemplate "rewardAddress"
  4. spv_createhtlc "receiverPubkey" "ownerPubkey" "timeout" ( "seed" )
  5. spv_decodehtlcscript "redeemscript"
  6. spv_dumpprivkey "address"
  7. spv_estimateanchorcost ( feerate )
  8. spv_getaddresspubkey "address"
  9. spv_getalladdresses
  10. spv_getbalance
  11. spv_getfeerate
  12. spv_gethtlcseed "address"
  13. spv_getnewaddress
  14. spv_getpeers
  15. spv_getrawtransaction "txid"
  16. spv_gettxconfirmations "txhash"
  17. spv_listanchorauths
  18. spv_listanchorrewardconfirms
  19. spv_listanchorrewards
  20. spv_listanchors ( minBtcHeight maxBtcHeight minConfs maxConfs )
  21. spv_listanchorspending
  22. spv_listanchorsunrewarded
  23. spv_listhtlcoutputs ( "address" )
  24. spv_listreceivedbyaddress ( minconf "address_filter" )
  25. spv_listtransactions
  26. spv_refundhtlc "scriptaddress" "destinationaddress" ( feerate )
  27. spv_refundhtlcall "destinationaddress" ( feerate )
  28. spv_rescan ( height )
  29. spv_sendrawtx "rawtx"
  30. spv_sendtoaddress "address" amount ( feerate )
  31. spv_syncstatus
  32. spv_validateaddress "address"

Tokens

  1. createtoken ( {"symbol":"str","name":"str","isDAT":bool,"decimal":n,"limit":n,"mintable":bool,"tradeable":bool,"collateralAddress":"str"} [{"txid":"hex","vout":n},...] )
  2. decodecustomtx "hexstring" ( iswitness )
  3. getcustomtx "txid" ( "blockhash" )
  4. gettoken "key"
  5. listtokens ( {"start":n,"including_start":bool,"limit":n} verbose )
  6. minttokens "amounts" ( [{"txid":"hex","vout":n},...] )
  7. updatetoken "token" ( {"symbol":"str","name":"str","isDAT":bool,"mintable":bool,"tradeable":bool,"finalize":bool} [{"txid":"hex","vout":n},...] )

Util

  1. createmultisig nrequired ["key",...] ( "address_type" )
  2. deriveaddresses "descriptor" ( range )
  3. estimatesmartfee conf_target ( "estimate_mode" )
  4. getdescriptorinfo "descriptor"
  5. signmessagewithprivkey "privkey" "message"
  6. validateaddress "address"
  7. verifymessage "address" "signature" "message"

Vault

  1. closevault "vaultId" "to" ( [{"txid":"hex","vout":n},...] )
  2. createvault "ownerAddress" ( "loanSchemeId" [{"txid":"hex","vout":n},...] )
  3. deposittovault "vaultId" "from" "amount" ( [{"txid":"hex","vout":n},...] )
  4. getvault "vaultId"
  5. listauctionhistory ( "owner" {"maxBlockHeight":n,"vaultId":"hex","index":n,"limit":n} )
  6. listauctions ( {"start":obj,"including_start":bool,"limit":n} )
  7. listvaults ( {"ownerAddress":"str","loanSchemeId":"str","state":"str","verbose":bool} {"start":"hex","including_start":bool,"limit":n} )
  8. placeauctionbid "vaultId" index "from" "amount" ( [{"txid":"hex","vout":n},...] )
  9. updatevault "vaultId" {"ownerAddress":"hex","loanSchemeId":"str"} ( [{"txid":"hex","vout":n},...] )
  10. withdrawfromvault "vaultId" "to" "amount" ( [{"txid":"hex","vout":n},...] )

Wallet

  1. abandontransaction "txid"
  2. abortrescan
  3. addmultisigaddress nrequired ["key",...] ( "label" "address_type" )
  4. backupwallet "destination"
  5. bumpfee "txid" ( options )
  6. createwallet "wallet_name" ( disable_private_keys blank "passphrase" avoid_reuse )
  7. dumpprivkey "address"
  8. dumpwallet "filename"
  9. encryptwallet "passphrase"
  10. getaddressesbylabel "label"
  11. getaddressinfo "address"
  12. getbalance ( "dummy" minconf include_watchonly avoid_reuse with_tokens )
  13. getbalances ( with_tokens )
  14. getnewaddress ( "label" "address_type" )
  15. getrawchangeaddress ( "address_type" )
  16. getreceivedbyaddress "address" ( minconf )
  17. getreceivedbylabel "label" ( minconf )
  18. gettransaction "txid" ( include_watchonly )
  19. getunconfirmedbalance ( with_tokens )
  20. getwalletinfo ( with_tokens )
  21. importaddress "address" ( "label" rescan p2sh )
  22. importmulti "requests" ( "options" )
  23. importprivkey "privkey" ( "label" rescan )
  24. importprunedfunds "rawtransaction" "txoutproof"
  25. importpubkey "pubkey" ( "label" rescan )
  26. importwallet "filename"
  27. keypoolrefill ( newsize )
  28. listaddressgroupings
  29. listlabels ( "purpose" )
  30. listlockunspent
  31. listreceivedbyaddress ( minconf include_empty include_watchonly "address_filter" )
  32. listreceivedbylabel ( minconf include_empty include_watchonly )
  33. listsinceblock ( "blockhash" target_confirmations include_watchonly include_removed )
  34. listtransactions ( "label" count skip include_watchonly exclude_custom_tx )
  35. listunspent ( minconf maxconf ["address",...] include_unsafe query_options )
  36. listwalletdir
  37. listwallets
  38. loadwallet "filename"
  39. lockunspent unlock ( [{"txid":"hex","vout":n},...] )
  40. removeprunedfunds "txid"
  41. rescanblockchain ( start_height stop_height )
  42. sendmany "" {"address":amount} ( minconf "comment" ["address",...] replaceable conf_target "estimate_mode" )
  43. sendtoaddress "address" amount ( "comment" "comment_to" subtractfeefromamount replaceable conf_target "estimate_mode"avoid_reuse )
  44. sethdseed ( newkeypool "seed" )
  45. setlabel "address" "label"
  46. settxfee amount
  47. setwalletflag "flag" ( value )
  48. signmessage "address" "message"
  49. signrawtransactionwithwallet "hexstring" ( [{"txid":"hex","vout":n,"scriptPubKey":"hex","redeemScript":"hex","witnessScript":"hex","amount":amount},...] "sighashtype" )
  50. unloadwallet ( "wallet_name" )
  51. walletcreatefundedpsbt [{"txid":"hex","vout":n,"sequence":n},...] [{"address":amount},{"data":"hex"},...] ( locktime options bip32derivs )
  52. walletlock
  53. walletpassphrase "passphrase" timeout
  54. walletpassphrasechange "oldpassphrase" "newpassphrase"
  55. walletprocesspsbt "psbt" ( sign "sighashtype" bip32derivs )

Zmq

  1. getzmqnotifications