Closed Radiokot closed 5 months ago
Most transactions are straight forward to implement. But for the smart contract init- and update-transactions this can only be estimated by running the smart contract using our smart contract execution, which quickly could make this a complex task.
Found out it is already there: Payload.java
Local energy estimation allows determining the transaction fee without making a wallet-proxy request. This helps when the transaction payload is too large to fit into a GET request.
How it is done in Rust:
concordium-rust-sdk/src/types/transactions.rs at 01b00f7a82e62d3642be51282e6a89045727759d · Concordium/concordium-rust-sdk (github.com)