Research Article

Trust-Based Smart Contract for Automated Agent to Agent Communication

Table 4

Function cost.

SystemFunctionTransaction cost (eth)Price ($)

ā€‰Deploy contracts0.00379638813.21
ā€‰Agent enrolment0.0002257660.79

Vehicles agent managementaddVehicleAgent0.0003329481.16
getVehicleAgent00
getAllVehicleAgent00

Gas stations managementaddGasStationAgent0.0003015341.05
getGasStationAgent00
getAllGasStation00

Vehicles and gas station communicationPayment0.0002975611.03
sendMessage0.0002448630.85
readMessage00
requestService0.0004701341.63