rusty-kaspa
rusty-kaspa copied to clipboard
Implement UTXO Return Address RPC command
GetUtxoReturnAddress
Input: txid
and accepting_block_daa_score
Output: return_address
-> Option<Address>
Notes:
- When this call finds an address, it is guaranteed that the address is from the first input of the transaction that produced your UTXO. If the algorithm cannot find a return address (there are many reasons why it might not be able to), it will return
None
Proto
GetUtxoReturnAddressRequestMessage getUtxoReturnAddressRequest = 1112;
GetUtxoReturnAddressResponseMessage getUtxoReturnAddressResponse = 1113;