30 Compute Units.
Note:
ABI rules
Example: Parameter and return value encoding and decoding
Parameters
owner_address- String - Required - Address that triggers the contract, converted to a hex stringcontract_address- String - Required - Contract address, converted to a hex stringfunction_selector- String - Function call, must not be left blankparameter- String - 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.data- String - The data for interacting with smart contracts, including the contract function and parameters. You can choose to use this field, or you can choose to use function_selector and parameter for contract interaction. When both of data and function_selector exist, function_selector is preferredfee_limit- int32 - Required - Maximum TRX consumption, measured in SUN (1 TRX = 1,000,000 SUN).call_value- int64 - Amount of TRX transferred with this transaction, measured in SUN (1 TRX = 1,000,000 SUN).call_token_value- int64 - Amount of TRC10 token transferred with this transactiontoken_id- int64 - TRC10 token idpermission_id- int32 - Optional, for multi-signaturevisible- boolean - Optional. Specifies whether the address is in Base58 format (default: false)
Returns
Transaction object - JSON object: Unsigned transaction, please refer to the Transaction chapter for the fields contained in it. Since the transaction type isTriggerSmartContract, the fields contained in raw_data.contract[0].parameter.value in the transaction are as follows: