TriggerConstantContract

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

注意

  • triggerconstantcontract 接口用于本地模拟执行合约,不会创建链上交易或改变节点状态。

返回值

字段类型描述
resultReturn执行结果,详细参数参看 EstimateEnergy
energy_usedint64总能量消耗,包括基础和惩罚消耗。
energy_penaltyint64惩罚性能量消耗。
constant_resultstring[]合约调用的结果列表。
transactionTransaction交易对象,详见 GetTransactionByID.

总结:

  • 合约调用能量消耗量:energy_used
  • 合约调用的额外能量消耗量:energy_penalty
  • 合约调用的基础能量消耗量:energy_used-energy_penalty
Body Params
string
required
string
string
string
string
int64
int64
int64
boolean
Defaults to true
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json