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.
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:
| Action | Purpose | Parameters |
|---|---|---|
| getbestblockhash | Returns the hash of the best tip block in the most-work fully-validated chain. | No parameters |
| getblock | If 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) |
| getblockchaininfo | Returns an object containing various state info regarding blockchain processing. | No parameters |
| getblockcount | Returns the height of the most-work fully-validated chain. The genesis block has height 0. | No parameters |
| getblockfilter | Retrieve a BIP 157 content filter for a particular block. | blockhash (string) required filtertype (string) |
| getblockhash | Returns hash of block in best-block-chain at height provided. | height (number) required |
| getblockheader | If 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) |
| getblockstats | Compute 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) |
| getchaintips | Return information about all known tips in the block tree, including the main chain as well as orphaned branches. | No parameters |
| getchaintxstats | Compute statistics about the total number and rate of transactions in the chain. | nblocks (number) blockhash (string) |
| getdifficulty | Returns the proof-of-work difficulty as a multiple of the minimum difficulty. | No parameters |
| getmempoolancestors | If txid is in the mempool, returns all in-mempool ancestors. | txid (string) required verbose (boolean) |
| getmempooldescendants | If txid is in the mempool, returns all in-mempool descendants. | txid (string) required verbose (boolean) |
| getmempoolentry | Returns mempool data for given transaction | txid (string) required |
| getmempoolinfo | Returns details on the active state of the TX memory pool. | No parameters |
| getrawmempool | Returns 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) |
| gettxout | Returns details about an unspent transaction output. | txid (string) required n (number) required include_mempool (boolean) |
| gettxoutproof | Returns 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) |
| gettxoutsetinfo | Returns statistics about the unspent transaction output set. Note this call may take some time. | hash_type (string) |
| preciousblock | Treats 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 |
| pruneblockchain | Deletes block files up to the given height. Only works on a node started with -prune. | height (number) required |
| savemempool | Dumps the mempool to disk. It will fail until the previous dump is fully loaded. | No parameters |
| scantxoutset | EXPERIMENTAL 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 pubkey | action (string) required scanobjects (array) |
| verifychain | Verifies blockchain database. | checklevel (number) nblocks (number) |
| verifytxoutproof | 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 | proof (string) required |
| getmemoryinfo | Returns an object containing information about memory usage. | mode (string) |
| getrpcinfo | Returns details of the RPC server. | No parameters |
| help | List all commands, or get help for a specified command. | command (string) |
| logging | Gets 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) |
| uptime | Returns the total uptime of the server. | No parameters |
| generateblock | Mine a block with a set of ordered transactions immediately to a specified address or descriptor before the RPC call returns | output (string) required transactions (array) required |
| generatetoaddress | Mine blocks immediately to a specified address before the RPC call returns | nblocks (number) required address (string) required maxtries (number) |
| generatetodescriptor | Mine blocks immediately to a specified descriptor before the RPC call returns | num_blocks (number) required descriptor (string) required maxtries (number) |
| getblocktemplate | If 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/ma | template_request: { . mode (string) . capabilities (array) . rules (array) } (object) |
| getmininginfo | Returns a json object containing mining-related information. | No parameters |
| getnetworkhashps | Returns 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) |
| prioritisetransaction | Accepts the transaction into mined blocks at a higher or lower priority | txid (string) required dummy (number) fee_delta (number) required |
| submitblock | Attempts to submit new block to network. See https://en.bitcoin.it/wiki/BIP_0022 for full specification. | hexdata (string) required dummy (string) |
| submitheader | Decode 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 |
| addnode | Attempts 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 |
| clearbanned | Clear all banned IPs. | No parameters |
| disconnectnode | Immediately 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) |
| getaddednodeinfo | Returns information about the given added node, or all added nodes note that onetry addnodes are not listed here | node (string) |
| getconnectioncount | Returns the number of connections to other nodes. | No parameters |
| getnettotals | Returns information about network traffic, including bytes in, bytes out, and current time. | No parameters |
| getnetworkinfo | Returns an object containing various state info regarding P2P networking. | No parameters |
| getnodeaddresses | Return known addresses which can potentially be used to find new nodes in the network | count (number) |
| getpeerinfo | Returns data about each connected network node as a json array of objects. | No parameters |
| listbanned | List all manually banned IPs/Subnets. | No parameters |
| ping | Requests that a ping be sent to all other nodes, to measure ping time. | No parameters |
| setban | Attempts to add or remove an IP/Subnet from the banned list. | subnet (string) required command (string) required bantime (number) absolute (boolean) |
| setnetworkactive | Disable/enable all p2p network activity. | state (boolean) required |
| analyzepsbt | Analyzes and provides information about the current status of a PSBT and its inputs | psbt (string) required |
| combinepsbt | Combine multiple partially signed Litecoin transactions into one transaction. Implements the Combiner role. | txs (array) required |
| combinerawtransaction | Combine multiple partially signed transactions into one transaction. The combined transaction may be another partially signed transaction or a fully signed transaction. | txs (array) required |
| converttopsbt | 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. | hexstring (string) required permitsigdata (boolean) iswitness (boolean) |
| createpsbt | Creates a transaction in the Partially Signed Transaction format. Implements the Creator role. | inputs (array) required outputs (array) required locktime (number) replaceable (boolean) |
| createrawtransaction | Create 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) |
| decodepsbt | Return a JSON object representing the serialized, base64-encoded partially signed Litecoin transaction. | psbt (string) required |
| decoderawtransaction | Return a JSON object representing the serialized, hex-encoded transaction. | hexstring (string) required iswitness (boolean) |
| decodescript | Decode a hex-encoded script. | hexstring (string) required |
| finalizepsbt | 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. Implements the Finalizer and Extractor roles. | psbt (string) required extract (boolean) |
| fundrawtransaction | If 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 previ | hexstring (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) |
| getrawtransaction | Return 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 transactions | txid (string) required verbose (boolean) blockhash (string) |
| joinpsbts | 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. | txs (array) required |
| sendrawtransaction | Submit 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 |
| testmempoolaccept | Returns 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 |
| utxoupdatepsbt | Updates all segwit inputs and outputs in a PSBT with data from output descriptors, the UTXO set or the mempool. | psbt (string) required descriptors (array) |
| createmultisig | Creates 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) |
| deriveaddresses | Derives 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 or | descriptor (string) required range |
| estimatesmartfee | 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. | conf_target (number) required estimate_mode (string) |
| getdescriptorinfo | Analyses a descriptor. | descriptor (string) required |
| getindexinfo | Returns the status of one or all available indices currently running in the node. | index_name (string) |
| validateaddress | Return information about the given litecoin address. | address (string) required |
| verifymessage | Verify a signed message | address (string) required signature (string) required message (string) required |
| abandontransaction | Mark 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 |
| abortrescan | Stops current wallet rescan triggered by an RPC call, e.g. by an importprivkey call. Note: Use 'getwalletinfo' to query the scanning progress. | No parameters |
| addmultisigaddress | Add 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) |
| backupwallet | Safely copies current wallet file to destination, which can be a directory or a path with filename. | destination (string) required |
| bumpfee | Bumps 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 out | txid (string) required options: { . conf_target (number) . fee_rate . replaceable (boolean) . estimate_mode (string) } (object) |
| createwallet | Creates and loads a new wallet. | wallet_name (string) required disable_private_keys (boolean) blank (boolean) avoid_reuse (boolean) descriptors (boolean) load_on_startup (boolean) |
| getaddressesbylabel | Returns the list of addresses assigned the specified label. | label (string) required |
| getaddressinfo | Return 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 |
| getbalance | Returns 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) |
| getbalances | Returns an object with all balances in LTC. | No parameters |
| getnewaddress | Returns 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) |
| getrawchangeaddress | Returns a new Litecoin address, for receiving change. This is for use with raw transactions, NOT normal use. | address_type (string) |
| getreceivedbyaddress | Returns the total amount received by the given address in transactions with at least minconf confirmations. | address (string) required minconf (number) |
| getreceivedbylabel | Returns the total amount received by addresses with label in transactions with at least minconf confirmations. | label (string) required minconf (number) |
| gettransaction | Get detailed information about in-wallet transaction txid | txid (string) required include_watchonly (boolean) verbose (boolean) |
| getunconfirmedbalance | DEPRECATED Identical to getbalances.mine.untrusted_pending | No parameters |
| getwalletinfo | Returns an object containing various wallet state info. | No parameters |
| importaddress | 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. 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 thi | address (string) required label (string) rescan (boolean) p2sh (boolean) |
| importdescriptors | 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. 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 |
| importmulti | 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. 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 w | requests (array) required options: { . rescan (boolean) } (object) |
| importprunedfunds | 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. | rawtransaction (string) required txoutproof (string) required |
| importpubkey | 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. 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' t | pubkey (string) required label (string) rescan (boolean) |
| importwallet | Imports 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 |
| keypoolrefill | Fills the keypool. Requires wallet passphrase to be set with walletpassphrase call if wallet is encrypted. | newsize (number) |
| listaddressgroupings | 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 | No parameters |
| listlabels | Returns the list of all labels, or labels that are assigned to addresses with a specific purpose. | purpose (string) |
| listlockunspent | Returns list of temporarily unspendable outputs. See the lockunspent call to lock and unlock transactions for spending. | No parameters |
| listreceivedbyaddress | List balances by receiving address. | minconf (number) include_empty (boolean) include_watchonly (boolean) address_filter (string) |
| listreceivedbylabel | List received transactions by label. | minconf (number) include_empty (boolean) include_watchonly (boolean) |
| listsinceblock | Get 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) |
| listtransactions | If 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) |
| listunspent | Returns 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) |
| listwalletdir | Returns a list of wallets in the wallet directory. | No parameters |
| listwallets | Returns a list of currently loaded wallets. For full information on the wallet, use 'getwalletinfo' | No parameters |
| listwallettransactions | Returns 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) |
| loadwallet | Loads 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) |
| lockunspent | Updates 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 a | unlock (boolean) required transactions (array) |
| psbtbumpfee | Bumps 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 w | txid (string) required options: { . conf_target (number) . fee_rate . replaceable (boolean) . estimate_mode (string) } (object) |
| removeprunedfunds | Deletes 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 |
| rescanblockchain | Rescan the local blockchain for wallet related transactions. Note: Use 'getwalletinfo' to query the scanning progress. | start_height (number) stop_height (number) |
| send | EXPERIMENTAL 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) |
| sendmany | Send 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) |
| sendtoaddress | Send 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) |
| setlabel | Sets the label associated with the given address. | address (string) required label (string) required |
| settxfee | Set 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 |
| setwalletflag | Change the state of the given wallet flag for a wallet. | flag (string) required value (boolean) |
| signmessage | Sign 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 |
| signrawtransactionwithwallet | Sign 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) |
| unloadwallet | Unloads 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) |
| upgradewallet | Upgrade 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) |
| walletcreatefundedpsbt | Creates 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) |
| walletlock | Removes 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 |
| walletprocesspsbt | Update 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) |
| getzmqnotifications | Returns information about the active ZeroMQ notifications. | No parameters |
| rest_tx | Given 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_block | Given 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_notxdetails | Given 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_headers | Given 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_blockhashbyheight | Given 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_chaininfo | Returns 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_getutxos | Queries 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_checkmempool | Queries 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_info | Returns 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_contents | Returns 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 |