Skip to main content

Litecoin

Litecoin Core node JSON-RPC and REST APIs: blocks, transactions, mempool, UTXO set, fee estimates, network and mining status, address and descriptor utilities, PSBTs, and wallet balances, addresses and payments.

Litecoin Logo

Authentication​

This connector uses Token-based authentication.

info

Set up your connection in the Abstra Console before using it in your workflows.

How to use​

Using the Smart Chat​

Execute the action "CHOOSE_ONE_ACTION_BELOW" from my connector "YOUR_CONNECTOR_NAME" using the params "PARAMS_HERE".

Using the Web Editor​

from abstra.connectors import run_connection_action

result = run_connection_action(
connection_name="your_connection_name",
action_name="your_action_name",
params={
"param1": "value1",
"param2": "value2"
})

Available Actions​

This connector provides 139 actions:

ActionPurposeParameters
getbestblockhashReturns the hash of the best tip block in the most-work fully-validated chain.No parameters
getblockIf verbosity is 0, returns a string that is serialized, hex-encoded data for block 'hash'. If verbosity is 1, returns an Object with information about block hash. If verbosity is 2, returns an Object with information about block hash and information about each transaction.blockhash (string) required
verbosity (number)
getblockchaininfoReturns an object containing various state info regarding blockchain processing.No parameters
getblockcountReturns the height of the most-work fully-validated chain. The genesis block has height 0.No parameters
getblockfilterRetrieve a BIP 157 content filter for a particular block.blockhash (string) required
filtertype (string)
getblockhashReturns hash of block in best-block-chain at height provided.height (number) required
getblockheaderIf verbose is false, returns a string that is serialized, hex-encoded data for blockheader 'hash'. If verbose is true, returns an Object with information about blockheader hash.blockhash (string) required
verbose (boolean)
getblockstatsCompute per block statistics for a given window. All amounts are in satoshis. It won't work for some heights with pruning.hash_or_height required
stats (array)
getchaintipsReturn information about all known tips in the block tree, including the main chain as well as orphaned branches.No parameters
getchaintxstatsCompute statistics about the total number and rate of transactions in the chain.nblocks (number)
blockhash (string)
getdifficultyReturns the proof-of-work difficulty as a multiple of the minimum difficulty.No parameters
getmempoolancestorsIf txid is in the mempool, returns all in-mempool ancestors.txid (string) required
verbose (boolean)
getmempooldescendantsIf txid is in the mempool, returns all in-mempool descendants.txid (string) required
verbose (boolean)
getmempoolentryReturns mempool data for given transactiontxid (string) required
getmempoolinfoReturns details on the active state of the TX memory pool.No parameters
getrawmempoolReturns all transaction ids in memory pool as a json array of string transaction ids. Hint: use getmempoolentry to fetch a specific transaction from the mempool.verbose (boolean)
mempool_sequence (boolean)
gettxoutReturns details about an unspent transaction output.txid (string) required
n (number) required
include_mempool (boolean)
gettxoutproofReturns a hex-encoded proof that 'txid' was included in a block. NOTE: By default this function only works sometimes. This is when there is an unspent output in the utxo for this transaction. To make it always work, you need to maintain a transaction index, using the -txindex command line option or specify the block in which the transaction is included manually by blockhash.txids (array) required
blockhash (string)
gettxoutsetinfoReturns statistics about the unspent transaction output set. Note this call may take some time.hash_type (string)
preciousblockTreats a block as if it were received before others with the same work. A later preciousblock call can override the effect of an earlier one. The effects of preciousblock are not retained across restarts.blockhash (string) required
pruneblockchainDeletes block files up to the given height. Only works on a node started with -prune.height (number) required
savemempoolDumps the mempool to disk. It will fail until the previous dump is fully loaded.No parameters
scantxoutsetEXPERIMENTAL warning: this call may be removed or changed in future releases. Scans the unspent transaction output set for entries that match certain output descriptors. Examples of output descriptors are: addraddress Outputs whose scriptPubKey corresponds to the specified address does not include P2PK rawhex script Outputs whose scriptPubKey equals the specified hex scripts combopubkey P2PK, P2PKH, P2WPKH, and P2SH-P2WPKH outputs for the given pubkey pkhpubkey P2PKH outputs for the given pubkeyaction (string) required
scanobjects (array)
verifychainVerifies blockchain database.checklevel (number)
nblocks (number)
verifytxoutproofVerifies 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 chainproof (string) required
getmemoryinfoReturns an object containing information about memory usage.mode (string)
getrpcinfoReturns details of the RPC server.No parameters
helpList all commands, or get help for a specified command.command (string)
loggingGets and sets the logging configuration. When called without an argument, returns the list of categories with status that are currently being debug logged or not. When called with arguments, adds or removes categories from debug logging and return the lists above. The arguments are evaluated in order 'include', 'exclude'. If an item is both included and excluded, it will thus end up being excluded. The valid logging categories are: net, tor, mempool, http, bench, zmq, walletdb, rpc, estimatefee,include (array)
exclude (array)
uptimeReturns the total uptime of the server.No parameters
generateblockMine a block with a set of ordered transactions immediately to a specified address or descriptor before the RPC call returnsoutput (string) required
transactions (array) required
generatetoaddressMine blocks immediately to a specified address before the RPC call returnsnblocks (number) required
address (string) required
maxtries (number)
generatetodescriptorMine blocks immediately to a specified descriptor before the RPC call returnsnum_blocks (number) required
descriptor (string) required
maxtries (number)
getblocktemplateIf the request parameters include a 'mode' key, that is used to explicitly select between the default 'template' request or a 'proposal'. It returns data needed to construct a block to work on. For full specification, see BIPs 22, 23, 9, and 145: https://github.com/bitcoin/bips/blob/master/bip-0022.mediawiki https://github.com/bitcoin/bips/blob/master/bip-0023.mediawiki https://github.com/bitcoin/bips/blob/master/bip-0009.mediawiki getblocktemplate_changes https://github.com/bitcoin/bips/blob/matemplate_request: {
. mode (string)
. capabilities (array)
. rules (array)
} (object)
getmininginfoReturns a json object containing mining-related information.No parameters
getnetworkhashpsReturns the estimated network hashes per second based on the last n blocks. Pass in blocks to override of blocks, -1 specifies since last difficulty change. Pass in height to estimate the network speed at the time when a certain block was found.nblocks (number)
height (number)
prioritisetransactionAccepts the transaction into mined blocks at a higher or lower prioritytxid (string) required
dummy (number)
fee_delta (number) required
submitblockAttempts to submit new block to network. See https://en.bitcoin.it/wiki/BIP_0022 for full specification.hexdata (string) required
dummy (string)
submitheaderDecode the given hexdata as a header and submit it as a candidate chain tip if valid. Throws when the header is invalid.hexdata (string) required
addnodeAttempts to add or remove a node from the addnode list. Or try a connection to a node once. Nodes added using addnode or -connect are protected from DoS disconnection and are not required to be full nodes/support SegWit as other outbound peers are though such peers will not be synced from.node (string) required
command (string) required
clearbannedClear all banned IPs.No parameters
disconnectnodeImmediately disconnects from the specified peer node. Strictly one out of 'address' and 'nodeid' can be provided to identify the node. To disconnect by nodeid, either set 'address' to the empty string, or call using the named 'nodeid' argument only.address (string)
nodeid (number)
getaddednodeinfoReturns information about the given added node, or all added nodes note that onetry addnodes are not listed herenode (string)
getconnectioncountReturns the number of connections to other nodes.No parameters
getnettotalsReturns information about network traffic, including bytes in, bytes out, and current time.No parameters
getnetworkinfoReturns an object containing various state info regarding P2P networking.No parameters
getnodeaddressesReturn known addresses which can potentially be used to find new nodes in the networkcount (number)
getpeerinfoReturns data about each connected network node as a json array of objects.No parameters
listbannedList all manually banned IPs/Subnets.No parameters
pingRequests that a ping be sent to all other nodes, to measure ping time.No parameters
setbanAttempts to add or remove an IP/Subnet from the banned list.subnet (string) required
command (string) required
bantime (number)
absolute (boolean)
setnetworkactiveDisable/enable all p2p network activity.state (boolean) required
analyzepsbtAnalyzes and provides information about the current status of a PSBT and its inputspsbt (string) required
combinepsbtCombine multiple partially signed Litecoin transactions into one transaction. Implements the Combiner role.txs (array) required
combinerawtransactionCombine multiple partially signed transactions into one transaction. The combined transaction may be another partially signed transaction or a fully signed transaction.txs (array) required
converttopsbtConverts 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.hexstring (string) required
permitsigdata (boolean)
iswitness (boolean)
createpsbtCreates a transaction in the Partially Signed Transaction format. Implements the Creator role.inputs (array) required
outputs (array) required
locktime (number)
replaceable (boolean)
createrawtransactionCreate a transaction spending the given inputs and creating new outputs. Outputs can be addresses or data. Returns hex-encoded raw transaction. Note that the transaction's inputs are not signed, and it is not stored in the wallet or transmitted to the network.inputs (array) required
outputs (array) required
locktime (number)
replaceable (boolean)
decodepsbtReturn a JSON object representing the serialized, base64-encoded partially signed Litecoin transaction.psbt (string) required
decoderawtransactionReturn a JSON object representing the serialized, hex-encoded transaction.hexstring (string) required
iswitness (boolean)
decodescriptDecode a hex-encoded script.hexstring (string) required
finalizepsbtFinalize 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. Implements the Finalizer and Extractor roles.psbt (string) required
extract (boolean)
fundrawtransactionIf the transaction has no inputs, they will be automatically selected to meet its out value. It will add at most one change output to the outputs. No existing outputs will be modified unless 'subtractFeeFromOutputs' is specified. Note that inputs which were signed may need to be resigned after completion since in/outputs have been added. The inputs added will not be signed, use signrawtransactionwithkey or signrawtransactionwithwallet for that. Note that all existing inputs must have their previhexstring (string) required
options: {
. add_inputs (boolean)
. changeAddress (string)
. changePosition (number)
. change_type (string)
. includeWatching (boolean)
. lockUnspents (boolean)
. fee_rate
. feeRate
. subtractFeeFromOutputs (array)
. replaceable (boolean)
. conf_target (number)
. estimate_mode (string)
} (object)
iswitness (boolean)
getrawtransactionReturn the raw transaction data. By default this function only works for mempool transactions. When called with a blockhash argument, getrawtransaction will return the transaction if the specified block is available and the transaction is found in that block. When called without a blockhash argument, getrawtransaction will return the transaction if it is in the mempool, or if -txindex is enabled and the transaction is in a block in the blockchain. Hint: Use gettransaction for wallet transactionstxid (string) required
verbose (boolean)
blockhash (string)
joinpsbtsJoins 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.txs (array) required
sendrawtransactionSubmit a raw transaction serialized, hex-encoded to local node and network. Note that the transaction will be sent unconditionally to all peers, so using this for manual rebroadcast may degrade privacy by leaking the transaction's origin, as nodes will normally not rebroadcast non-wallet transactions already in their mempool. Also see createrawtransaction and signrawtransactionwithkey calls.hexstring (string) required
maxfeerate
testmempoolacceptReturns result of mempool acceptance tests indicating if raw transaction serialized, hex-encoded would be accepted by mempool. This checks if the transaction violates the consensus or policy rules. See sendrawtransaction call.rawtxs (array) required
maxfeerate
utxoupdatepsbtUpdates all segwit inputs and outputs in a PSBT with data from output descriptors, the UTXO set or the mempool.psbt (string) required
descriptors (array)
createmultisigCreates a multi-signature address with n signature of m keys required. It returns a json object with the address and redeemScript.nrequired (number) required
keys (array) required
address_type (string)
deriveaddressesDerives one or more addresses corresponding to an output descriptor. Examples of output descriptors are: pkhpubkey P2PKH outputs for the given pubkey wpkhpubkey Native segwit P2PKH outputs for the given pubkey shmultin,pubkey,pubkey,... P2SH-multisig outputs for the given threshold and pubkeys rawhex script Outputs whose scriptPubKey equals the specified hex scripts In the above, pubkey either refers to a fixed public key in hexadecimal notation, or to an xpub/xprv optionally followed by one ordescriptor (string) required
range
estimatesmartfeeEstimates 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.conf_target (number) required
estimate_mode (string)
getdescriptorinfoAnalyses a descriptor.descriptor (string) required
getindexinfoReturns the status of one or all available indices currently running in the node.index_name (string)
validateaddressReturn information about the given litecoin address.address (string) required
verifymessageVerify a signed messageaddress (string) required
signature (string) required
message (string) required
abandontransactionMark in-wallet transaction txid 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. It only works on transactions which are not included in a block and are not currently in the mempool. It has no effect on transactions which are already abandoned.txid (string) required
abortrescanStops current wallet rescan triggered by an RPC call, e.g. by an importprivkey call. Note: Use 'getwalletinfo' to query the scanning progress.No parameters
addmultisigaddressAdd an nrequired-to-sign multisignature address to the wallet. Requires a new wallet backup. Each key is a Litecoin address or hex-encoded public key. This functionality is only intended for use with non-watchonly addresses. See importaddress for watchonly p2sh address support. If 'label' is specified, assign address to that label.nrequired (number) required
keys (array) required
label (string)
address_type (string)
backupwalletSafely copies current wallet file to destination, which can be a directory or a path with filename.destination (string) required
bumpfeeBumps the fee of an opt-in-RBF transaction T, replacing it with a new transaction B. An opt-in RBF transaction with the given txid must be in the wallet. The command will pay the additional fee by reducing change outputs or adding inputs when necessary. It may add a new change output if one does not already exist. All inputs in the original transaction will be included in the replacement transaction. The command will fail if the wallet or mempool contains a transaction that spends one of T's outtxid (string) required
options: {
. conf_target (number)
. fee_rate
. replaceable (boolean)
. estimate_mode (string)
} (object)
createwalletCreates and loads a new wallet.wallet_name (string) required
disable_private_keys (boolean)
blank (boolean)
avoid_reuse (boolean)
descriptors (boolean)
load_on_startup (boolean)
getaddressesbylabelReturns the list of addresses assigned the specified label.label (string) required
getaddressinfoReturn information about the given litecoin address. Some of the information will only be present if the address is in the active wallet.address (string) required
getbalanceReturns the total available balance. The available balance is what the wallet considers currently spendable, and is thus affected by options which limit spendability such as -spendzeroconfchange.dummy (string)
minconf (number)
include_watchonly (boolean)
avoid_reuse (boolean)
getbalancesReturns an object with all balances in LTC.No parameters
getnewaddressReturns a new Litecoin address for receiving payments. If 'label' is specified, it is added to the address book so payments received with the address will be associated with 'label'.label (string)
address_type (string)
getrawchangeaddressReturns a new Litecoin address, for receiving change. This is for use with raw transactions, NOT normal use.address_type (string)
getreceivedbyaddressReturns the total amount received by the given address in transactions with at least minconf confirmations.address (string) required
minconf (number)
getreceivedbylabelReturns the total amount received by addresses with label in transactions with at least minconf confirmations.label (string) required
minconf (number)
gettransactionGet detailed information about in-wallet transaction txidtxid (string) required
include_watchonly (boolean)
verbose (boolean)
getunconfirmedbalanceDEPRECATED Identical to getbalances.mine.untrusted_pendingNo parameters
getwalletinfoReturns an object containing various wallet state info.No parameters
importaddressAdds 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. Note: This call can take over an hour to complete if rescan is true, during that time, other rpc calls may report that the imported address exists but related transactions are still missing, leading to temporarily incorrect/bogus balances and unspent outputs until rescan completes. If you have the full public key, you should call importpubkey instead of thiaddress (string) required
label (string)
rescan (boolean)
p2sh (boolean)
importdescriptorsImport descriptors. This will trigger a rescan of the blockchain based on the earliest timestamp of all descriptors being imported. Requires a new wallet backup. Note: This call can take over an hour to complete if using an early timestamp; during that time, other rpc calls may report that the imported keys, addresses or scripts exist but related transactions are still missing.requests (array) required
importmultiImport 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. If an address/script is imported without all of the private keys required to spend from that address, it will be watchonly. The 'watchonly' option must be set to true in this case or a warning will be returned. Conversely, if all the private keys are provided and the address/script is spendable, the wrequests (array) required
options: {
. rescan (boolean)
} (object)
importprunedfundsImports 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.rawtransaction (string) required
txoutproof (string) required
importpubkeyAdds 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. Hint: use importmulti to import more than one public key. Note: This call can take over an hour to complete if rescan is true, during that time, other rpc calls may report that the imported pubkey exists but related transactions are still missing, leading to temporarily incorrect/bogus balances and unspent outputs until rescan completes. Note: Use 'getwalletinfo' tpubkey (string) required
label (string)
rescan (boolean)
importwalletImports keys from a wallet dump file see dumpwallet. Requires a new wallet backup to include imported keys. Note: Use 'getwalletinfo' to query the scanning progress.filename (string) required
keypoolrefillFills the keypool. Requires wallet passphrase to be set with walletpassphrase call if wallet is encrypted.newsize (number)
listaddressgroupingsLists groups of addresses which have had their common ownership made public by common use as inputs or as the resulting change in past transactionsNo parameters
listlabelsReturns the list of all labels, or labels that are assigned to addresses with a specific purpose.purpose (string)
listlockunspentReturns list of temporarily unspendable outputs. See the lockunspent call to lock and unlock transactions for spending.No parameters
listreceivedbyaddressList balances by receiving address.minconf (number)
include_empty (boolean)
include_watchonly (boolean)
address_filter (string)
listreceivedbylabelList received transactions by label.minconf (number)
include_empty (boolean)
include_watchonly (boolean)
listsinceblockGet all transactions in blocks since block blockhash, or all transactions if omitted. If 'blockhash' is no longer a part of the main chain, transactions from the fork point onward are included. Additionally, if include_removed is set, transactions affecting the wallet which were removed are returned in the 'removed' array.blockhash (string)
target_confirmations (number)
include_watchonly (boolean)
include_removed (boolean)
listtransactionsIf a label name is provided, this will return only incoming transactions paying to addresses with the specified label. Returns up to 'count' most recent transactions skipping the first 'from' transactions.label (string)
count (number)
skip (number)
include_watchonly (boolean)
listunspentReturns array of unspent transaction outputs with between minconf and maxconf inclusive confirmations. Optionally filter to only include txouts paid to specified addresses.minconf (number)
maxconf (number)
addresses (array)
include_unsafe (boolean)
query_options: {
. minimumAmount
. maximumAmount
. maximumCount (number)
. minimumSumAmount
} (object)
listwalletdirReturns a list of wallets in the wallet directory.No parameters
listwalletsReturns a list of currently loaded wallets. For full information on the wallet, use 'getwalletinfo'No parameters
listwallettransactionsReturns the wallet's transactions as they would be displayed in the GUI, newest first. With txid, returns only the entries for that wallet transaction.txid (string)
loadwalletLoads a wallet from a wallet file or directory. Note that all wallet command-line options used when starting litecoind will be applied to the new wallet eg -rescan, etc.filename (string) required
load_on_startup (boolean)
lockunspentUpdates list of temporarily unspendable outputs. Temporarily lock unlock=false or unlock unlock=true specified transaction outputs. If no transaction outputs are specified when unlocking then all current locked transaction outputs are unlocked. A locked transaction output will not be chosen by automatic coin selection, when spending litecoins. Manually selected coins are automatically unlocked. Locks are stored in memory only. Nodes start with zero locked outputs, and the locked output list is aunlock (boolean) required
transactions (array)
psbtbumpfeeBumps the fee of an opt-in-RBF transaction T, replacing it with a new transaction B. Returns a PSBT instead of creating and signing a new transaction. An opt-in RBF transaction with the given txid must be in the wallet. The command will pay the additional fee by reducing change outputs or adding inputs when necessary. It may add a new change output if one does not already exist. All inputs in the original transaction will be included in the replacement transaction. The command will fail if the wtxid (string) required
options: {
. conf_target (number)
. fee_rate
. replaceable (boolean)
. estimate_mode (string)
} (object)
removeprunedfundsDeletes the specified transaction from the wallet. Meant for use with pruned wallets and as a companion to importprunedfunds. This will affect wallet balances.txid (string) required
rescanblockchainRescan the local blockchain for wallet related transactions. Note: Use 'getwalletinfo' to query the scanning progress.start_height (number)
stop_height (number)
sendEXPERIMENTAL warning: this call may be changed in future releases. Send a transaction.outputs (array) required
conf_target (number)
estimate_mode (string)
fee_rate
options: {
. add_inputs (boolean)
. add_to_wallet (boolean)
. change_address (string)
. change_position (number)
. change_type (string)
. conf_target (number)
. estimate_mode (string)
. fee_rate
. include_watching (boolean)
. inputs (array)
. locktime (number)
. lock_unspents (boolean)
. psbt (boolean)
. subtract_fee_from_outputs (array)
. replaceable (boolean)
} (object)
sendmanySend multiple times. Amounts are double-precision floating point numbers. Requires wallet passphrase to be set with walletpassphrase call if wallet is encrypted.dummy (string)
amounts (object) required
minconf (number)
comment (string)
subtractfeefrom (array)
replaceable (boolean)
conf_target (number)
estimate_mode (string)
fee_rate
verbose (boolean)
sendtoaddressSend an amount to a given address. Requires wallet passphrase to be set with walletpassphrase call if wallet is encrypted.address (string) required
amount required
comment (string)
comment_to (string)
subtractfeefromamount (boolean)
replaceable (boolean)
conf_target (number)
estimate_mode (string)
avoid_reuse (boolean)
fee_rate
verbose (boolean)
setlabelSets the label associated with the given address.address (string) required
label (string) required
settxfeeSet the transaction fee per kB for this wallet. Overrides the global -paytxfee command line parameter. Can be deactivated by passing 0 as the fee. In that case automatic fee selection will be used by default.amount required
setwalletflagChange the state of the given wallet flag for a wallet.flag (string) required
value (boolean)
signmessageSign a message with the private key of an address Requires wallet passphrase to be set with walletpassphrase call if wallet is encrypted.address (string) required
message (string) required
signrawtransactionwithwalletSign inputs for raw transaction serialized, hex-encoded. The second optional argument may be null is an array of previous transaction outputs that this transaction depends on but may not yet be in the block chain. Requires wallet passphrase to be set with walletpassphrase call if wallet is encrypted.hexstring (string) required
prevtxs (array)
sighashtype (string)
unloadwalletUnloads the wallet referenced by the request endpoint otherwise unloads the wallet specified in the argument. Specifying the wallet name on a wallet endpoint is invalid.wallet_name (string)
load_on_startup (boolean)
upgradewalletUpgrade the wallet. Upgrades to the latest version if no version number is specified. New keys may be generated and a new wallet backup will need to be made.version (number)
walletcreatefundedpsbtCreates and funds a transaction in the Partially Signed Transaction format. Implements the Creator and Updater roles.inputs (array)
outputs (array) required
locktime (number)
options: {
. add_inputs (boolean)
. changeAddress (string)
. changePosition (number)
. change_type (string)
. includeWatching (boolean)
. lockUnspents (boolean)
. fee_rate
. feeRate
. subtractFeeFromOutputs (array)
. replaceable (boolean)
. conf_target (number)
. estimate_mode (string)
} (object)
bip32derivs (boolean)
walletlockRemoves the wallet encryption key from memory, locking the wallet. After calling this method, you will need to call walletpassphrase again before being able to call any methods which require the wallet to be unlocked.No parameters
walletprocesspsbtUpdate a PSBT with input information from our wallet and then sign inputs that we can sign for. Requires wallet passphrase to be set with walletpassphrase call if wallet is encrypted.psbt (string) required
sign (boolean)
sighashtype (string)
bip32derivs (boolean)
getzmqnotificationsReturns information about the active ZeroMQ notifications.No parameters
rest_txGiven a transaction hash: returns a transaction in binary, hex-encoded binary, or JSON formats. By default, this endpoint will only search the mempool. To query for a confirmed transaction, enable the transaction index via 'txindex=1' command line / configuration option. Part of the unauthenticated REST interface, served on the same host and port as JSON-RPC only when the node runs with -rest.txid (string) required
format (string)
rest_blockGiven a block hash: returns a block, in binary, hex-encoded binary or JSON formats, with the complete transaction details. Responds with 404 if the block doesn't exist. Part of the unauthenticated REST interface, served on the same host and port as JSON-RPC only when the node runs with -rest.blockhash (string) required
format (string)
rest_block_notxdetailsGiven a block hash: returns a block, in binary, hex-encoded binary or JSON formats. The JSON response will only contain the transaction hash instead of the complete transaction details; the option only affects the JSON response. Responds with 404 if the block doesn't exist. Part of the unauthenticated REST interface, served on the same host and port as JSON-RPC only when the node runs with -rest.blockhash (string) required
format (string)
rest_headersGiven a block hash: returns count amount of blockheaders in upward direction. Returns empty if the block doesn't exist or it isn't in the active chain. Part of the unauthenticated REST interface, served on the same host and port as JSON-RPC only when the node runs with -rest.count (integer) required
blockhash (string) required
format (string)
rest_blockhashbyheightGiven a height: returns hash of block in best-block-chain at height provided. Part of the unauthenticated REST interface, served on the same host and port as JSON-RPC only when the node runs with -rest.height (integer) required
format (string)
rest_chaininfoReturns various state info regarding block chain processing chain, blocks, headers, bestblockhash, difficulty, mediantime, verificationprogress, chainwork, pruned, pruneheight, softforks. Only supports JSON as output format. Part of the unauthenticated REST interface, served on the same host and port as JSON-RPC only when the node runs with -rest.No parameters
rest_getutxosQueries the UTXO set for the given outpoints. See BIP64 for input and output serialisation: https://github.com/bitcoin/bips/blob/master/bip-0064.mediawiki. Part of the unauthenticated REST interface, served on the same host and port as JSON-RPC only when the node runs with -rest.outpoints (array) required
format (string)
rest_getutxos_checkmempoolQueries the UTXO set for the given outpoints. See BIP64 for input and output serialisation: https://github.com/bitcoin/bips/blob/master/bip-0064.mediawiki. This variant also takes the mempool into account. Part of the unauthenticated REST interface, served on the same host and port as JSON-RPC only when the node runs with -rest.outpoints (array) required
format (string)
rest_mempool_infoReturns various information about the TX mempool loaded, size, bytes, usage, maxmempool, mempoolminfee. Only supports JSON as output format. Part of the unauthenticated REST interface, served on the same host and port as JSON-RPC only when the node runs with -rest.No parameters
rest_mempool_contentsReturns transactions in the TX mempool. Only supports JSON as output format. Part of the unauthenticated REST interface, served on the same host and port as JSON-RPC only when the node runs with -rest.No parameters