TriggerConstantContract

只读模拟调用合约——查询 view/pure 函数、预演非只读函数、估算能量消耗,不上链、不改状态

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

只读模拟调用合约。查询 view/pure 函数、预演非只读函数、估算能量消耗,不上链、不改状态

📘

不要求交易级 fee_limit

本接口不生成上链交易,也不消耗账户的实际 Bandwidth 或 Energy,请求参数不要求提供 fee_limit。模拟执行仍受节点配置及 TVM 执行时间等保护性限制;调用失败时应检查响应中的 result 和错误信息。


相关资源

Body Params
string
required

交易发起方地址。(格式:Base58 或 Hex)

string

合约地址。(格式:Base58 或 Hex)
示例:TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs

string

函数选择器。
示例:transfer(address,uint256)

string

ABI 编码的函数参数(Hex 字符串)。
示例:000000000000000000000000a614f803b6fd780986a42c78ec9c7f77e6ded13c

string

该字段传递智能合约交互所需的数据,包括被调用的函数及其参数。您可以选择使用包含完整 ABI 编码信息的 data 字段,也可以分别使用 function_selectorparameter 字段。请注意,若 datafunction_selector 同时存在,系统将优先使用 function_selectorparameter 字段进行合约交互。

int64

转入合约的 TRX 数量。(单位:sun)

int64

转入合约的 TRC-10 Token 数量。

int64

TRC-10 Token ID。

boolean
Defaults to true

可选。设为 true 时地址以 Base58 格式返回;设为 false 时以 Hex 格式返回。(默认值:false

Responses

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