diff --git a/modules/bitcoin/bitcoind-rpc-public-whitelist.nix b/modules/bitcoin/bitcoind-rpc-public-whitelist.nix new file mode 100644 index 0000000..a5749fd --- /dev/null +++ b/modules/bitcoin/bitcoind-rpc-public-whitelist.nix @@ -0,0 +1,70 @@ +# RPC calls that are safe for public use +# Vendored from nix-bitcoin - do not fetch from upstream at runtime +[ + "echo" + "getinfo" + "getindexinfo" + "help" + "ping" + "uptime" + # Blockchain + "getbestblockhash" + "getblock" + "getblockchaininfo" + "getblockcount" + "getblockfilter" + "getblockfrompeer" + "getblockhash" + "getblockheader" + "getblockstats" + "getchaintips" + "getchaintxstats" + "getdeploymentinfo" + "getdifficulty" + "getmempoolancestors" + "getmempooldescendants" + "getmempoolentry" + "getmempoolinfo" + "getrawmempool" + "gettxout" + "gettxoutproof" + "gettxoutsetinfo" + "scantxoutset" + "verifytxoutproof" + # Mining + "getblocktemplate" + "getmininginfo" + "getnetworkhashps" + # Network + "getnetworkinfo" + "getnodeaddresses" + "getpeerinfo" + # Rawtransactions + "analyzepsbt" + "combinepsbt" + "combinerawtransaction" + "converttopsbt" + "createpsbt" + "createrawtransaction" + "decodepsbt" + "decoderawtransaction" + "decodescript" + "finalizepsbt" + "fundrawtransaction" + "getrawtransaction" + "joinpsbts" + "sendrawtransaction" + "signrawtransactionwithkey" + "testmempoolaccept" + "utxoupdatepsbt" + # Util + "createmultisig" + "deriveaddresses" + "estimatesmartfee" + "getdescriptorinfo" + "signmessagewithprivkey" + "validateaddress" + "verifymessage" + # Zmq + "getzmqnotifications" +]