import { default } from "https://deno.land/x/bitcoin_rpc@v1.0.3/mod.ts";
Methods
Mark in-wallet transaction as abandoned This will mark this transaction and all its in-wallet descendants as abandoned which will allow for their inputs to be respent. It can be used to replace “stuck” or evicted transactions. https://developer.bitcoin.org/reference/rpc/abandontransaction.html
Stops current wallet rescan triggered by an RPC call, e.g. by an importprivkey call. https://developer.bitcoin.org/reference/rpc/abortrescan.html
Add an nrequired-to-sign multisignature address to the wallet. Requires a new wallet backup. https://developer.bitcoin.org/reference/rpc/addmultisigaddress.html
Attempts to add or remove a node from the addnode list. https://developer.bitcoin.org/reference/rpc/addnode.html
Analyzes and provides information about the current status of a PSBT and its inputs https://developer.bitcoin.org/reference/rpc/analyzepsbt.html
Safely copies current wallet file to destination, which can be a directory or a path with filename. https://developer.bitcoin.org/reference/rpc/backupwallet.html
Bumps the fee of an opt-in-RBF transaction T, replacing it with a new transaction B. https://developer.bitcoin.org/reference/rpc/bumpfee.html
Clear all banned IPs. https://developer.bitcoin.org/reference/rpc/clearbanned.html
Combine multiple partially signed Bitcoin transactions into one transaction. https://developer.bitcoin.org/reference/rpc/combinepsbt.html
Combine multiple partially signed transactions into one transaction. https://developer.bitcoin.org/reference/rpc/combinerawtransaction.html
Converts a network serialized transaction to a PSBT. This should be used only with createrawtransaction and fundrawtransaction createpsbt and walletcreatefundedpsbt should be used for new applications. https://developer.bitcoin.org/reference/rpc/converttopsbt.html
Creates a multi-signature address with n signature of m keys required. https://developer.bitcoin.org/reference/rpc/createmultisig.html
Creates a transaction in the Partially Signed Transaction format. https://developer.bitcoin.org/reference/rpc/createpsbt.html
Create a transaction spending the given inputs and creating new outputs. https://developer.bitcoin.org/reference/rpc/createrawtransaction.html
Creates and loads a new wallet. https://developer.bitcoin.org/reference/rpc/createwallet.html
Return a JSON object representing the serialized, base64-encoded partially signed Bitcoin transaction. https://developer.bitcoin.org/reference/rpc/decodepsbt.html
Return a JSON object representing the serialized, hex-encoded transaction. https://developer.bitcoin.org/reference/rpc/decoderawtransaction.html
Decode a hex-encoded script. https://developer.bitcoin.org/reference/rpc/decodescript.html
Derives one or more addresses corresponding to an output descriptor. https://developer.bitcoin.org/reference/rpc/deriveaddresses.html
Immediately disconnects from the specified peer node. https://developer.bitcoin.org/reference/rpc/disconnectnode.html
Reveals the private key corresponding to ‘address’. https://developer.bitcoin.org/reference/rpc/dumpprivkey.html
Dumps all wallet keys in a human-readable format to a server-side file. This does not allow overwriting existing files. https://developer.bitcoin.org/reference/rpc/dumpwallet.html
Encrypts the wallet with ‘passphrase’. This is for first time encryption. https://developer.bitcoin.org/reference/rpc/encryptwallet.html
Estimates the approximate fee per kilobyte needed for a transaction to begin confirmation within conf_target blocks if possible and return the number of blocks for which the estimate is valid. Uses virtual transaction size as defined in BIP 141 (witness data is discounted). https://developer.bitcoin.org/reference/rpc/estimatesmartfee.html
Finalize the inputs of a PSBT. If the transaction is fully signed, it will produce a network serialized transaction which can be broadcast with sendrawtransaction. Otherwise a PSBT will be created which has the final_scriptSig and final_scriptWitness fields filled for inputs that are complete. https://developer.bitcoin.org/reference/rpc/finalizepsbt.html
If the transaction has no inputs, they will be automatically selected to meet its out value. https://developer.bitcoin.org/reference/rpc/fundrawtransaction.html
Mine a block with a set of ordered transactions immediately to a specified address or descriptor (before the RPC call returns) https://developer.bitcoin.org/reference/rpc/generateblock.html
Mine blocks immediately to a specified address (before the RPC call returns) https://developer.bitcoin.org/reference/rpc/generatetoaddress.html
Mine blocks immediately to a specified descriptor (before the RPC call returns) https://developer.bitcoin.org/reference/rpc/generatetodescriptor.html
Returns information about the given added node, or all added nodes (note that onetry addnodes are not listed here) https://developer.bitcoin.org/reference/rpc/getaddednodeinfo.html
Return information about the given bitcoin address. https://developer.bitcoin.org/reference/rpc/getaddressinfo.html
Returns the total available balance. https://developer.bitcoin.org/reference/rpc/getbalance.html
Returns an object with all balances in BTC. https://developer.bitcoin.org/reference/rpc/getbalances.html
Returns the hash of the best (tip) block in the most-work fully-validated chain. https://developer.bitcoin.org/reference/rpc/getbestblockhash.html
If verbosity is 0, returns a string that is serialized, hex-encoded data for block ‘hash’. https://developer.bitcoin.org/reference/rpc/getblock.html
Returns an object containing various state info regarding blockchain processing. https://developer.bitcoin.org/reference/rpc/getblockchaininfo.html
Returns the height of the most-work fully-validated chain. https://developer.bitcoin.org/reference/rpc/getblockcount.html
Retrieve a BIP 157 content filter for a particular block. https://developer.bitcoin.org/reference/rpc/getblockfilter.html
Returns hash of block in best-block-chain at height provided. https://developer.bitcoin.org/reference/rpc/getblockhash.html
If verbose is false, returns a string that is serialized, hex-encoded data for blockheader ‘hash’. https://developer.bitcoin.org/reference/rpc/getblockheader.html
Compute per block statistics for a given window. All amounts are in satoshis. https://developer.bitcoin.org/reference/rpc/getblockstats.html
If the request parameters include a ‘mode’ key, that is used to explicitly select between the default ‘template’ request or a ‘proposal’. https://developer.bitcoin.org/reference/rpc/getblocktemplate.html
Return information about all known tips in the block tree, including the main chain as well as orphaned branches. https://developer.bitcoin.org/reference/rpc/getchaintips.html
Compute statistics about the total number and rate of transactions in the chain. https://developer.bitcoin.org/reference/rpc/getchaintxstats.html
Returns the number of connections to other nodes. https://developer.bitcoin.org/reference/rpc/getconnectioncount.html
Analyses a descriptor. https://developer.bitcoin.org/reference/rpc/getdescriptorinfo.html
Returns the proof-of-work difficulty as a multiple of the minimum difficulty. https://developer.bitcoin.org/reference/rpc/getdifficulty.html
Returns the status of one or all available indices currently running in the node. https://developer.bitcoin.org/reference/rpc/getindexinfo.html
Returns an object containing information about memory usage. https://developer.bitcoin.org/reference/rpc/getmemoryinfo.html
If txid is in the mempool, returns all in-mempool ancestors. https://developer.bitcoin.org/reference/rpc/getmempoolancestors.html
If txid is in the mempool, returns all in-mempool descendants. https://developer.bitcoin.org/reference/rpc/getmempooldescendants.html
Returns mempool data for given transaction https://developer.bitcoin.org/reference/rpc/getmempoolentry.html
Returns details on the active state of the TX memory pool. https://developer.bitcoin.org/reference/rpc/getmempoolinfo.html
Returns a json object containing mining-related information. https://developer.bitcoin.org/reference/rpc/getmininginfo.html
Returns information about network traffic, including bytes in, bytes out, and current time. https://developer.bitcoin.org/reference/rpc/getnettotals.html
Returns the estimated network hashes per second based on the last n blocks. https://developer.bitcoin.org/reference/rpc/getnetworkhashps.html
Returns an object containing various state info regarding P2P networking. https://developer.bitcoin.org/reference/rpc/getnetworkinfo.html
Returns a new Bitcoin address for receiving payments. https://developer.bitcoin.org/reference/rpc/getnewaddress.html
Return known addresses which can potentially be used to find new nodes in the network https://developer.bitcoin.org/reference/rpc/getnodeaddresses.html
Returns data about each connected network node as a json array of objects. https://developer.bitcoin.org/reference/rpc/getpeerinfo.html
Returns a new Bitcoin address, for receiving change. https://developer.bitcoin.org/reference/rpc/getrawchangeaddress.html
Returns all transaction ids in memory pool as a json array of string transaction ids. https://developer.bitcoin.org/reference/rpc/getrawmempool.html
Return the raw transaction data. https://developer.bitcoin.org/reference/rpc/getrawtransaction.html
Returns the total amount received by the given address in transactions with at least minconf confirmations. https://developer.bitcoin.org/reference/rpc/getreceivedbyaddress.html
Returns the total amount received by addresses with in transactions with at least [minconf] confirmations. https://developer.bitcoin.org/reference/rpc/getreceivedbylabel.html
Returns details of the RPC server. https://developer.bitcoin.org/reference/rpc/getrpcinfo.html
Get detailed information about in-wallet transaction https://developer.bitcoin.org/reference/rpc/gettransaction.html
Returns details about an unspent transaction output. https://developer.bitcoin.org/reference/rpc/gettxout.html
Returns a hex-encoded proof that “txid” was included in a block. https://developer.bitcoin.org/reference/rpc/gettxoutproof.html
Returns statistics about the unspent transaction output set. https://developer.bitcoin.org/reference/rpc/gettxoutsetinfo.html
DEPRECATED Identical to getbalances().mine.untrusted_pending https://developer.bitcoin.org/reference/rpc/getunconfirmedbalance.html
Returns an object containing various wallet state info. https://developer.bitcoin.org/reference/rpc/getwalletinfo.html
List all commands, or get help for a specified command. https://developer.bitcoin.org/reference/rpc/help.html
Adds an address or script (in hex) that can be watched as if it were in your wallet but cannot be used to spend. Requires a new wallet backup. https://developer.bitcoin.org/reference/rpc/importaddress.html
Import descriptors. This will trigger a rescan of the blockchain based on the earliest timestamp of all descriptors being imported. Requires a new wallet backup. https://developer.bitcoin.org/reference/rpc/importdescriptors.html
Import addresses/scripts (with private or public keys, redeem script (P2SH)), optionally rescanning the blockchain from the earliest creation time of the imported scripts. Requires a new wallet backup. https://developer.bitcoin.org/reference/rpc/importmulti.html
Adds a private key (as returned by dumpprivkey) to your wallet. Requires a new wallet backup. https://developer.bitcoin.org/reference/rpc/importprivkey.html
Imports funds without rescan. Corresponding address or script must previously be included in wallet. Aimed towards pruned wallets. The end-user is responsible to import additional transactions that subsequently spend the imported outputs or rescan after the point in the blockchain the transaction is included. https://developer.bitcoin.org/reference/rpc/importprunedfunds.html
Adds a public key (in hex) that can be watched as if it were in your wallet but cannot be used to spend. Requires a new wallet backup. https://developer.bitcoin.org/reference/rpc/importpubkey.html
Imports keys from a wallet dump file (see dumpwallet). Requires a new wallet backup to include imported keys. https://developer.bitcoin.org/reference/rpc/importwallet.html
Joins multiple distinct PSBTs with different inputs and outputs into one PSBT with inputs and outputs from all of the PSBTs No input in any of the PSBTs can be in more than one of the PSBTs. https://developer.bitcoin.org/reference/rpc/joinpsbts.html
Fills the keypool. https://developer.bitcoin.org/reference/rpc/keypoolrefill.html
Lists groups of addresses which have had their common ownership made public by common use as inputs or as the resulting change in past transactions https://developer.bitcoin.org/reference/rpc/listaddressgroupings.html
List all manually banned IPs/Subnets. https://developer.bitcoin.org/reference/rpc/listbanned.html
Returns the list of all labels, or labels that are assigned to addresses with a specific purpose. https://developer.bitcoin.org/reference/rpc/listlabels.html
Returns list of temporarily unspendable outputs. https://developer.bitcoin.org/reference/rpc/listlockunspent.html
List balances by receiving address. https://developer.bitcoin.org/reference/rpc/listreceivedbyaddress.html
List received transactions by label. https://developer.bitcoin.org/reference/rpc/listreceivedbylabel.html
Get all transactions in blocks since block [blockhash], or all transactions if omitted. https://developer.bitcoin.org/reference/rpc/listsinceblock.html
If a label name is provided, this will return only incoming transactions paying to addresses with the specified label. https://developer.bitcoin.org/reference/rpc/listtransactions.html
Returns array of unspent transaction outputs with between minconf and maxconf (inclusive) confirmations. https://developer.bitcoin.org/reference/rpc/listunspent.html
Returns a list of wallets in the wallet directory. https://developer.bitcoin.org/reference/rpc/listwalletdir.html
Returns a list of currently loaded wallets. https://developer.bitcoin.org/reference/rpc/listwallets.html
Loads a wallet from a wallet file or directory. https://developer.bitcoin.org/reference/rpc/loadwallet.html
Updates list of temporarily unspendable outputs. https://developer.bitcoin.org/reference/rpc/lockunspent.html
Gets and sets the logging configuration. https://developer.bitcoin.org/reference/rpc/logging.html
Requests that a ping be sent to all other nodes, to measure ping time. https://developer.bitcoin.org/reference/rpc/ping.html
Treats a block as if it were received before others with the same work. https://developer.bitcoin.org/reference/rpc/preciousblock.html
Accepts the transaction into mined blocks at a higher (or lower) priority https://developer.bitcoin.org/reference/rpc/prioritisetransaction.html
Bumps the fee of an opt-in-RBF transaction T, replacing it with a new transaction B. https://developer.bitcoin.org/reference/rpc/psbtbumpfee.html
Deletes the specified transaction from the wallet. Meant for use with pruned wallets and as a companion to importprunedfunds. This will affect wallet balances. https://developer.bitcoin.org/reference/rpc/removeprunedfunds.html
Make a request to the Bitcoin JSON RPC.
Rescan the local blockchain for wallet related transactions. https://developer.bitcoin.org/reference/rpc/rescanblockchain.html
Dumps the mempool to disk. It will fail until the previous dump is fully loaded. https://developer.bitcoin.org/reference/rpc/savemempool.html
EXPERIMENTAL warning: this call may be removed or changed in future releases. https://developer.bitcoin.org/reference/rpc/scantxoutset.html
EXPERIMENTAL warning: this call may be changed in future releases. https://developer.bitcoin.org/reference/rpc/send.html
Send multiple times. Amounts are double-precision floating point numbers. https://developer.bitcoin.org/reference/rpc/sendmany.html
Submit a raw transaction (serialized, hex-encoded) to local node and network. https://developer.bitcoin.org/reference/rpc/sendrawtransaction.html
Send an amount to a given address. https://developer.bitcoin.org/reference/rpc/sendtoaddress.html
Attempts to add or remove an IP/Subnet from the banned list. https://developer.bitcoin.org/reference/rpc/setban.html
Set or generate a new HD wallet seed. Non-HD wallets will not be upgraded to being a HD wallet. Wallets that are already HD will have a new HD seed set so that new keys added to the keypool will be derived from this new seed. https://developer.bitcoin.org/reference/rpc/sethdseed.html
Sets the label associated with the given address. https://developer.bitcoin.org/reference/rpc/setlabel.html
Disable/enable all p2p network activity. https://developer.bitcoin.org/reference/rpc/setnetworkactive.html
Set the transaction fee per kB for this wallet. Overrides the global -paytxfee command line parameter. https://developer.bitcoin.org/reference/rpc/settxfee.html
Change the state of the given wallet flag for a wallet. https://developer.bitcoin.org/reference/rpc/setwalletflag.html
Sign a message with the private key of an address Requires wallet passphrase to be set with walletpassphrase call if wallet is encrypted. https://developer.bitcoin.org/reference/rpc/signmessage.html
Sign a message with the private key of an address https://developer.bitcoin.org/reference/rpc/signmessagewithprivkey.html
Sign inputs for raw transaction (serialized, hex-encoded). https://developer.bitcoin.org/reference/rpc/signrawtransactionwithkey.html
Sign inputs for raw transaction (serialized, hex-encoded). https://developer.bitcoin.org/reference/rpc/signrawtransactionwithwallet.html
Request a graceful shutdown of Bitcoin Core. https://developer.bitcoin.org/reference/rpc/stop.html
Attempts to submit new block to network. https://developer.bitcoin.org/reference/rpc/submitblock.html
Decode the given hexdata as a header and submit it as a candidate chain tip if valid. https://developer.bitcoin.org/reference/rpc/submitheader.html
Returns result of mempool acceptance tests indicating if raw transaction (serialized, hex-encoded) would be accepted by mempool. https://developer.bitcoin.org/reference/rpc/testmempoolaccept.html
Unloads the wallet referenced by the request endpoint otherwise unloads the wallet specified in the argument. https://developer.bitcoin.org/reference/rpc/unloadwallet.html
Upgrade the wallet. Upgrades to the latest version if no version number is specified. https://developer.bitcoin.org/reference/rpc/upgradewallet.html
Returns the total uptime of the server. https://developer.bitcoin.org/reference/rpc/uptime.html
Updates all segwit inputs and outputs in a PSBT with data from output descriptors, the UTXO set or the mempool. https://developer.bitcoin.org/reference/rpc/utxoupdatepsbt.html
Return information about the given bitcoin address. https://developer.bitcoin.org/reference/rpc/validateaddress.html
Verifies blockchain database. https://developer.bitcoin.org/reference/rpc/verifychain.html
Verify a signed message https://developer.bitcoin.org/reference/rpc/verifymessage.html
Verifies that a proof points to a transaction in a block, returning the transaction it commits to and throwing an RPC error if the block is not in our best chain https://developer.bitcoin.org/reference/rpc/verifytxoutproof.html
Creates and funds a transaction in the Partially Signed Transaction format. https://developer.bitcoin.org/reference/rpc/walletcreatefundedpsbt.html
Removes the wallet encryption key from memory, locking the wallet. https://developer.bitcoin.org/reference/rpc/walletlock.html
Stores the wallet decryption key in memory for ‘timeout’ seconds. https://developer.bitcoin.org/reference/rpc/walletpassphrase.html
Changes the wallet passphrase from ‘oldpassphrase’ to ‘newpassphrase’. https://developer.bitcoin.org/reference/rpc/walletpassphrasechange.html
Update a PSBT with input information from our wallet and then sign inputs that we can sign for. https://developer.bitcoin.org/reference/rpc/walletprocesspsbt.html