Closed jeffro256 closed 3 years ago
I have a branch of this branch called get_outs
which you can view on my repo page which, if this branch is merged, I will request another PR. It adds a method outs
to Daemon
and JSONRPCDaemon
which is the "/get_outs" analogue to block
and transactions
.
Sorry for being late with this but I need some more time to review it. Will do it on a spare day soon.
Howdy! I still intend for this PR to happen, but it is incompatible with the one I just requested, which I think will make future development easier. I will work on the branch conflicts and get back to you.
This PR adds a
OneTimeOutput
class to represent the one-time pubic outputs (stealth addresses) on the blockchain that are created as the result of every transaction and which are the inputs to every transaction except for miner transactions. I have also added anoutput_indices
attribute and anoutputs
property to theTransaction
class. Theoutput_indices
attribute is now populated in the_do_get_transactions
method inmonero.backends.jsonrpc
from the RPC response fromget_transactions
. Theoutputs
property ofTransaction
can then be used to retreive available information on the one-time outputs created from the transaction. I added one unit test in "tests/test_transaction.py" to demonstrate this functionality.