tspends api endpoint
bgptr opened this issue · 3 comments
bgptr commented
Decrediton needs an API endpoint to get a list of pending tspend transactions
bgptr commented
I'd like to work on this
davecgh commented
I don't see why it would need to get them via dcrdata. The wallet can just request them from either dcrd via RPC (getrawmempool
with the txtype
set to tspend
) when it is not SPV mode or via the p2p network in SPV mode using a getinitstate
message with the type set specifically for treasury spends.
That seems better to me than having Decrediton depend on a centralized source for them.