This is an essential method for transactions involving a compressed asset. For instance, when transferring a compressed NFT, you must return the proof and tree ID for the transaction to succeed.
Additional preparation is needed on the root of a transaction; you can check out in our examples repository.