How to estimate a fee of transaction, is there any Calculation formula?

hai,guys,how to estimate a fee of transaction, is there any Calculation formula? thanks

Hi Abel,

Depending on the type of transaction there are formulas for calculating this.
Note. The cost of executing smart contracts depends on the smart contract code.

See here for how to calculate the costs of a multitude of transactions.

/Emil

how to covert energy transaction to ccd , is there gasprice of blockchain like eth?
image

Hi Abel,

The price for a transaction (in micro CCD) is given by the following equation:

transaction price (in micro ccd) = energyCost * (euro/energy rate) * (microCCD/euro rate)

You can find the euro/energy rate and microccd/euro rate via the gRPC api (GetBlockSummary).
Note the fields in the resulting json are called ‘euroPerEnergy’ and ‘microGTUPerEuro’.

/Emil