-
Notifications
You must be signed in to change notification settings - Fork 0
SpaceXpanse RPC Methods List
Space Expanse edited this page Apr 2, 2023
·
1 revision
The following is an exhaustive list and can be obtained through the SpaceXpanse QT or Electron wallet console by typing help.
For more information on any given method, type help <command> in the console.
For guidance and help with the most important methods for SpaceXpanse, see the SpaceXpanse RPC Methods tutorial.
Also see Bitcoin Developer Reference for additional information on these methods. Note that the Bitcoin documentation is not completely up to date and some information is missing.
- getbestblockhash
- getblock "blockhash" ( verbosity )
- getblockchaininfo
- getblockcount
- getblockhash height
- getblockheader "hash" ( verbose )
- getblockstats hash_or_height ( stats )
- getchaintips
- getchaintxstats ( nblocks blockhash )
- getdifficulty
- getmempoolancestors txid ( verbose )
- getmempooldescendants txid ( verbose )
- getmempoolentry txid
- getmempoolinfo
- getrawmempool ( verbose )
- gettxout "txid" n ( include_mempool )
- gettxoutproof ["txid",...] ( blockhash )
- gettxoutsetinfo
- preciousblock "blockhash"
- pruneblockchain
- savemempool
- scantxoutset <action> ( <scanobjects> )
- verifychain ( checklevel nblocks )
- verifytxoutproof "proof"
- getmemoryinfo ("mode")
- help ( "command" )
- logging ( <include> <exclude> )
- stop
- uptime
- game_sendupdates "gameid" "fromblock" ("toblock")
- trackedgames ("command" "gameid")
- generate nblocks ( maxtries ) ( algo )
- generatetoaddress nblocks address (maxtries) (algo)
- createauxblock <address>
- creatework <address>
- getauxblock (hash auxpow)
- getblocktemplate ( TemplateRequest )
- getmininginfo
- getnetworkhashps ( nblocks height )
- getwork ((hash) data)
- prioritisetransaction <txid> <dummy value> <fee delta>
- submitauxblock <hash> <auxpow>
- submitblock "hexdata" ( "dummy" )
- submitheader "hexdata"
- submitwork (<hash>) <data>
- name_checkdb
- name_history "name"
- name_list ("name")
- name_pending ("name")
- name_register "name" "value" ("options")
- name_scan ("start" ("count" ("options")))
- name_show "name"
- name_update "name" "value" ("options")
- sendtoname "name" amount ( "comment" "comment_to" subtractfeefromamount replaceable conf_target "estimate_mode")
- addnode "node" "add|remove|onetry"
- clearbanned
- disconnectnode "[address]" [nodeid]
- getaddednodeinfo ( "node" )
- getconnectioncount
- getnettotals
- getnetworkinfo
- getnodeaddresses ( count )
- getpeerinfo
- listbanned
- ping
- setban "subnet" "add|remove" (bantime) (absolute)
- setnetworkactive true|false
- combinepsbt ["psbt",...]
- combinerawtransaction ["hexstring",...]
- converttopsbt "hexstring" ( permitsigdata iswitness )
- createpsbt [{"txid":"id","vout":n},...] [{"address":amount},{"data":"hex"},...] ( locktime ) ( replaceable )
- createrawtransaction [{"txid":"id","vout":n},...] [{"address":amount},{"data":"hex"},...] ( locktime ) ( replaceable )
- decodepsbt "psbt"
- decoderawtransaction "hexstring" ( iswitness )
- decodescript "hexstring"
- finalizepsbt "psbt" ( extract )
- fundrawtransaction "hexstring" ( options iswitness )
- getrawtransaction "txid" ( verbose "blockhash" )
- namerawtransaction "hexstring" vout nameop
- sendrawtransaction "hexstring" ( allowhighfees )
- signrawtransactionwithkey "hexstring" ["privatekey1",...] ( [{"txid":"id","vout":n,"scriptPubKey":"hex","redeemScript":"hex"},...] sighashtype )
- testmempoolaccept ["rawtxs"] ( allowhighfees )
- createmultisig nrequired ["key",...] ( "address_type" )
- estimatesmartfee conf_target ("estimate_mode")
- signmessagewithprivkey "privkey" "message"
- validateaddress "address"
- verifymessage "address" "signature" "message"
- abandontransaction "txid"
- abortrescan
- addmultisigaddress nrequired ["key",...] ( "label" "address_type" )
- backupwallet "destination"
- bumpfee "txid" ( options )
- createwallet "wallet_name" ( disable_private_keys )
- dumpprivkey "address"
- dumpwallet "filename"
- encryptwallet "passphrase"
- getaddressesbylabel "label"
- getaddressinfo "address"
- getbalance ( "(dummy)" minconf include_watchonly )
- getnewaddress ( "label" "address_type" )
- getrawchangeaddress ( "address_type" )
- getreceivedbyaddress "address" ( minconf )
- getreceivedbylabel "label" ( minconf )
- gettransaction "txid" ( include_watchonly )
- getunconfirmedbalance
- getwalletinfo
- importaddress "address" ( "label" rescan p2sh )
- importmulti "requests" ( "options" )
- importprivkey "privkey" ( "label" ) ( rescan )
- importprunedfunds
- importpubkey "pubkey" ( "label" rescan )
- importwallet "filename"
- keypoolrefill ( newsize )
- listaddressgroupings
- listlabels ( "purpose" )
- listlockunspent
- listreceivedbyaddress ( minconf include_empty include_watchonly address_filter )
- listreceivedbylabel ( minconf include_empty include_watchonly)
- listsinceblock ( "blockhash" target_confirmations include_watchonly include_removed )
- listtransactions (dummy count skip include_watchonly)
- listunspent ( minconf maxconf ["addresses",...] [include_unsafe] [query_options])
- listwalletdir
- listwallets
- loadwallet "filename"
- lockunspent unlock ([{"txid":"txid","vout":n},...])
- removeprunedfunds "txid"
- rescanblockchain ("start_height") ("stop_height")
- sendmany "" {"address":amount,...} ( minconf "comment" ["address",...] replaceable conf_target "estimate_mode")
- sendtoaddress "address" amount ( "comment" "comment_to" subtractfeefromamount replaceable conf_target "estimate_mode")
- sethdseed ( "newkeypool" "seed" )
- setlabel "address" "label"
- settxfee amount
- signmessage "address" "message"
- signrawtransactionwithwallet "hexstring" ( [{"txid":"id","vout":n,"scriptPubKey":"hex","redeemScript":"hex"},...] sighashtype )
- unloadwallet ( "wallet_name" )
- walletcreatefundedpsbt [{"txid":"id","vout":n},...] [{"address":amount},{"data":"hex"},...] ( locktime ) ( replaceable ) ( options bip32derivs )
- walletlock
- walletpassphrase "passphrase" timeout
- walletpassphrasechange "oldpassphrase" "newpassphrase"
- walletprocesspsbt "psbt" ( sign "sighashtype" bip32derivs )
Use the sidebar in the right to navigate through the documentation
- Overview
- Step 0: Blockchain Basics
- Step 1: SpaceXpanse Daemon
- Step 2: The Game State Processor
- Step 3a: libspex Component Relationships
- Step 3b: Compile libspex in Windows
- Step 3b: Compile libspex in Ubuntu
- Step 4: Run SpaceXpanse Daemon for Games
- Step 5: Hello World! in C++
- Step 5: Hello World! in C#
- Step 5: Hello World! with SQLite
- Overview
- Tech Specs
- Blockchain Consensus Protocol
- Dual Algo Mining
- Currencies/Tokens
- Daemon Interface
- Games/dApps
- Atomic Trading
- How to Compile libspex in Ubuntu 20.04.03
- How to Compile libspex in Ubuntu 22.04
- How to Compile libspex in Windows
- libspex Component Relationships
- Getting Started with Regtest
- How to Wire Up libspex in C#
- RPC Windows C# Tutorial
- Atomic Transactions Tutorial
- Ships (How to get started playing)