diff options
author | t-bast <bastuc@hotmail.fr> | 2022-04-25 10:29:25 +0200 |
---|---|---|
committer | t-bast <bastuc@hotmail.fr> | 2022-05-05 14:56:48 +0200 |
commit | 418557034055f740951294e7677ae9fd5149ea9b (patch) | |
tree | 3c0137a53cbad899d52ddb6b120b5b61da032bb1 /src/rpc/client.cpp | |
parent | 1ad5d5088d69939b0551de31d6c33c03153697c5 (diff) | |
download | bitcoin-418557034055f740951294e7677ae9fd5149ea9b.tar.xz |
Add RPC to get mempool txs spending outputs
We add an RPC to fetch the mempool transactions spending given outpoints.
Without this RPC, application developers would need to first call
`getrawmempool` which returns a long list of `txid`, then fetch each of
these txs individually to check whether they spend the given outpoint(s).
This RPC can later be enriched to also find confirmed transactions instead
of being restricted to mempool transactions.
Diffstat (limited to 'src/rpc/client.cpp')
-rw-r--r-- | src/rpc/client.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rpc/client.cpp b/src/rpc/client.cpp index 23e9d4074c..ae0d0112ba 100644 --- a/src/rpc/client.cpp +++ b/src/rpc/client.cpp @@ -173,6 +173,7 @@ static const CRPCConvertParam vRPCConvertParams[] = { "setwalletflag", 1, "value" }, { "getmempoolancestors", 1, "verbose" }, { "getmempooldescendants", 1, "verbose" }, + { "gettxspendingprevout", 0, "outputs" }, { "bumpfee", 1, "options" }, { "psbtbumpfee", 1, "options" }, { "logging", 0, "include" }, |