I receive a serialized versioned transaction from a 3rd party API that allows me to list NFTs in specific marketplaces.
However, when I get the response, transmit it to my front-end, sign it, and send it back to my back-end for submission, the blockhash gets invalid, or maybe the received transaction arrives with an invalid blockhash.
In any case, it always ends up getting rejected by the chain with the "blockhash not found" error.
Since the received transaction doesn't include anything but only the instructions, I want to build a new VersionedTransaction and send it to user for signing.
However, I am not sure how to achieve this because AddressLookupTableAddresses and compiled instructions make it difficult to achieve what I want to do.
How to rebuild a versioned transaction from an existing one?
I use both connection and Umi in the project so, any kind of solution is okay!