wallet/triggerconstantcontract

Invoke the readonly function (modified by the view or pure modifier) of a contract for contract data query; or Invoke the non-readonly function of a contract for predicting whether the transaction can be successfully executed and estimating the energy consumption; or estimate the energy consumption of contract deployment

Path Params
string
required
Defaults to public
Body Params
string
required
Defaults to TLJZu4jfTCezrMEeqKs8k2L1LABiHgMyaH

Owner address that triggers the contract. If visible=true, use base58check format, otherwise use hex format. For constant call you can use the all-zero address.

string
required
Defaults to TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t

Smart contract address. If visible=true, use base58check format, otherwise use hex format.

string
Defaults to transfer(address,uint256)

Function call, must not be left blank.

string
Defaults to a9059cbb000000000000000000000000b6d1f15c7af75d46340e7f5d3f872c14424cb32e000000000000000000000000000000000000000000000000000000000000271a

Parameter encoding needs to be in accordance with the ABI rules, the rules are more complicated, users can use the ethers library to encode,For details, please refer to the document-Guide-Smart Contract-Best Practice-Parameter Encoding and Decoding.

boolean
required
Defaults to true

Optional.Whehter the address is in base58 format.

Response

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