Skip to main content

Blockchain commands

 == Blockchain ==

getbestblockhash

getblock "blockhash" ( verbose )

getblockchaininfo

getblockcount

getblockhash height

getblockheader "hash" ( verbose )

getchaintips

getdifficulty

getmempoolancestors txid (verbose)

getmempooldescendants txid (verbose)

getmempoolentry txid

getmempoolinfo

getrawmempool ( verbose )

gettxout "txid" n ( include_mempool )

gettxoutproof ["txid",...] ( blockhash )

gettxoutsetinfo

preciousblock "blockhash"

pruneblockchain

verifychain ( checklevel nblocks )

verifytxoutproof "proof"


== Control ==

getinfo

getmemoryinfo

help ( "command" )

stop


== Generating ==

generate nblocks ( maxtries )

generatetoaddress nblocks address (maxtries)


== Mining ==

getblocktemplate ( TemplateRequest )

getmininginfo

getnetworkhashps ( nblocks height )

prioritisetransaction <txid> <priority delta> <fee delta>

submitblock "hexdata" ( "jsonparametersobject" )


== Network ==

addnode "node" "add|remove|onetry"

clearbanned

disconnectnode "address"

getaddednodeinfo ( "node" )

getconnectioncount

getnettotals

getnetworkinfo

getpeerinfo

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"

fundrawtransaction "hexstring" ( options )

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 )

dumpprivkey "address"

dumpwallet "filename"

encryptwallet "passphrase"

getaccount "address"

getaccountaddress "account"

getaddressesbyaccount "account"

getbalance ( "account" minconf include_watchonly )

getnewaddress ( "account" )

getrawchangeaddress

getreceivedbyaccount "account" ( minconf )

getreceivedbyaddress "address" ( minconf )

gettransaction "txid" ( include_watchonly )

getunconfirmedbalance

getwalletinfo

importaddress "address" ( "label" rescan p2sh )

importmulti "requests" "options"

importprivkey "plutuscoinprivkey" ( "label" ) ( rescan )

importprunedfunds

importpubkey "pubkey" ( "label" rescan )

importwallet "filename"

keypoolrefill ( newsize )

listaccounts ( minconf include_watchonly)

listaddressgroupings

listlockunspent

listreceivedbyaccount ( minconf include_empty include_watchonly)

listreceivedbyaddress ( minconf include_empty include_watchonly)

listsinceblock ( "blockhash" target_confirmations include_watchonly)

listtransactions ( "account" count skip include_watchonly)

listunspent ( minconf maxconf  ["addresses",...] [include_unsafe] )

lockunspent unlock ([{"txid":"txid","vout":n},...])

move "fromaccount" "toaccount" amount ( minconf "comment" )

removeprunedfunds "txid"

sendfrom "fromaccount" "toaddress" amount ( minconf "comment" "comment_to" )

sendmany "fromaccount" {"address":amount,...} ( minconf "comment" ["address",...] )

sendtoaddress "address" amount ( "comment" "comment_to" subtractfeefromamount )

setaccount "address" "account"

settxfee amount

signmessage "address" "message"


Comments

Popular posts from this blog

[ScreenOS] Snoop and debug flow

Debug flow basic: Understanding debug flow filters: https://kb.juniper.net/InfoCenter/index?page=content&id=KB6709&actp=METADATA Running "debug flow basic": https://kb.juniper.net/InfoCenter/index?page=content&id=KB12208 How do I capture debugging (debug flow) information?: https://kb.juniper.net/InfoCenter/index?page=content&id=KB5536&actp=METADATA When to use 'snoop' and 'debug flow': https://kb.juniper.net/InfoCenter/index?page=content&id=KB5967&actp=METADATA Snoop: How do you use Snoop for troubleshooting?:https://kb.juniper.net/InfoCenter/index?page=content&id=KB5411&actp=METADATA What options are available when configuring snoop?: https://kb.juniper.net/InfoCenter/index?page=content&id=KB6586&actp=METADATA How to apply the logical 'AND' or 'OR' snoop filters: https://kb.juniper.net/InfoCenter/index?page=content&id=KB6707&actp=METADATA How do I interpret the snoop out

[IDP Series] NIC Bypass

The Internal NICBypass helps prevent network outage due to IDP entering a hang state or experiencing high CPU utilization when the IDP device is in inline mode (transparent mode only). The internal NICBypass employs WatchDog Timers to achieve the functionality. The nicBypass script which is located in /usr/idp/device/bin/ prevents the interfaces from going into bypass mode when the IDP is working normally by resetting the watchdog timer. It also restores the interfaces to normal mode if they had gone into Bypass mode. The nicBypass script performs this check and takes the action (if required) every "loopInterval" seconds (the script 'sleeps' for "loopInterval" seconds).  These two parameters can be configured via the idp.cfg file on the IDP Sensor as shown below:                                                                                                                nicBypass.watchdogInterval             10 (secs)  nicBypass.loopInt

[vSRX] Installing on KVM

Two ways VirtManager(GUI) virt install (cli) Other ways (Qemu) On Server: uname -a lscpu (architecture, support virtualization (VT-X), NUMA) lspci / lspci -vvv |grep Ether dmidecode lsmod | grep kvm virsh - qemu:///system list virsh dumpxml <instance ID> (will show configuration file for the VM, similar to .vmx file in vmware) virsh net-list --all virsh domiflist <vm-name> brctl show