Closed arnuschky closed 5 years ago
Good idea. The RPC wallet has even a method for it.
Temp workaround:
incoming = w.incoming()
def tx_id_in_incoming(incoming, tx_id):
return len(list(filter(lambda i: i.transaction.hash == tx_id, incoming))) >= 1
Edit: adjusted as you may receive multiple payments within one transaction - thanks @emesik
>= 1
as you may receive multiple payments within one transaction.
Implemented in d44d4fd2ac1422527a7d3e64e09a65741280e57c. Needs docs and will be released in 0.6
Is it possible to filter the incoming/outgoing payments by tx id? I am surprised that this works only by payment id - most of the time I only have the tx id.