Concordium / concordium-java-sdk

A Java SDK for interacting with the Concordium Blockchain.
https://developer.concordium.software/concordium-java-sdk/javadoc/concordium-sdk/apidocs
Apache License 2.0
6 stars 3 forks source link

Add offline transaction energy estimation #333

Closed Radiokot closed 5 months ago

Radiokot commented 5 months ago

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)

limemloh commented 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.

Radiokot commented 5 months ago

Found out it is already there: Payload.java