Skip to main content
. 2021 Mar 17;9:44905–44927. doi: 10.1109/ACCESS.2021.3066503

TABLE 2. Gas cost in Ether of the functions in smart contracts.

Function Name Transaction Gas Execution Gas Fastest Execution (Ether) Avg. Execution (Ether) Slow Execution (Ether) Transaction Cost (USD)
RegisterTestingCenter 65893 43021 0.0038218 0.0029652 0.0025039 0.441763077
RegisterDistributor 65927 43055 0.0038238 0.0029667 0.0025052 0.441992436
WasteShiperExists 23900 1220 0.0013862 0.0010755 0.0009082 0.160233726
DistributorlicenseisValid 24878 2198 0.0014429 0.0011195 0.0009454 0.166796922
PlaceOrderRequest 222507 196691 0.0189131 0.015353 0.0106803 1.884325329
GetOrderID 22293 1021 0.001293 0.0010032 0.0008471 0.149453853
ConfirmOrder 71979 48339 0.0041748 0.0032391 0.0027352 0.482571336
GetOrderState 24693 1245 0.0014322 0.0011112 0.0009383 0.165544269
ConfirmReceived 36082 12634 0.0020928 0.0016237 0.0013711 0.241903173
UpdateInventory 43466 20594 0.002521 0.001956 0.0016517 0.291409431
TransferOwnership 62136 39456 0.0036039 0.0027961 0.0023612 0.416586516
UpdateHealthStatus 51285 28477 0.0029745 0.0023078 0.0019488 0.343826784
PlaceShipmentRequest 181512 156464 0.0105277 0.008168 0.0068975 1.216925925
GetShipmentID 22339 1067 0.0012957 0.0010053 0.0008489 0.149771427
ConfirmShipmentRequest 62151 38511 0.0036048 0.0027968 0.0023617 0.416674731
ConfirmShipmentReceiving 40384 16936 0.0023423 0.0018173 0.0015346 0.270749478
GetPenalty 31353 8673 0.0018185 0.0014109 0.0011914 0.210198702
UpdateShipmentStatus 27881 3409 0.0016171 0.0012546 0.0010595 0.186927585
GetWasteState 24583 1135 0.0014258 0.0011062 0.0009342 0.164820906
PenaltyCalculationResult 41538 18858 0.0024092 0.0018692 0.0015784 0.278477112