Contract.getFootprint(), which prepares a footprint with the ledger keys used by a given contract instance (including its backing WASM code).
Unfortunately, we still need simulation to figure out the fees for our restoration. This, however, can be easily covered by the SDK’s Server.prepareTransaction() helper, which will do simulation and assembly for us.
This guide makes use of the (aptly named)
submitTx function we created in another guide.