First, you need to get a transaction where LBTC minted or using Etherscan find MessageDelivered event.arrow-up-right
MessageDelivered
Make sure the caller is the AssetRouter address.
AssetRouter
Using nonce from event find related transaction on Ledger querying:
nonce
Find UTXOSpent event
UTXOSpent
Decode value of tx_id from Base64 to Hex.arrow-up-right
value
tx_id
Change the ordering of bytes.arrow-up-right
The big endian result is txid. Vout from event is number of output.
txid
Vout
Last updated 1 hour ago
https://mainnet-rpc.lombard-fi.com/tx_search?query="ledger.gmp.MessageSent.nonce='\"77\"'"&prove=true