Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature/add_parameter' into feat…
Browse files Browse the repository at this point in the history
…ure/add_parameter
  • Loading branch information
houlei1017 committed Apr 29, 2019
2 parents fbb03ac + 0960af8 commit e9d0f77
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion TRX/Tron-http.md
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,8 @@ Description: Trigger smart contract
demo: curl -X POST http://127.0.0.1:8090/wallet/triggercontract -d '{"contract_address":"4189139CB1387AF85E3D24E212A008AC974967E561","function_selector":"set(uint256,uint256)","parameter":"00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002","fee_limit":10,"call_value":100,"owner_address":"41D1E7A6BC354106CB410E65FF8B181C600FF14292"}'
Parameter contract_address: Contract address, default hexString
Parameter function_selector: Function call, must not leave a blank space
Parameter parameter: The parameter passed to 'function_selector', the format must match with the VM's requirement. You can use a hs tool provided by remix to convert a parameter like [1,2] to the format that VM requires
Parameter parameter: The parameter passed to 'function_selector', the format must match with the VM's requirement. You can use a js tool provided by remix to convert a parameter like [1,2] to the format that VM requires
Parameter parameter_string: The parameter passed to 'function_selector' in text string format, this 'parameter_string' will override 'parameter'. Example: "\"100\", \"TJCnKsPa7y5okkXvQAidZBzqx3QyQ6sxMW\"", if the function call has no parameter, 'parameter_string' should be set ""
Parameter fee_limit: The maximum TRX burns for resource consumption
Parameter call_value: The TRX transfer to the contract for each call
Parameter owner_address: Owner address that triggers the contract, default hexString
Expand Down Expand Up @@ -837,6 +838,7 @@ demo: curl -X POST http://127.0.0.1:8090/wallet/triggerconstantcontract -d '{"c
Parameter contract_address: Smart contract address, defualt hexString
Parameter function_selector: Function call, must not leave a blank space
Parameter parameter: The parameter passed to 'function_selector', the format must match with the VM's requirement. You can use a hs tool provided by remix to convert a parameter like [1,2] to the format that VM requires
Parameter parameter_string: The parameter passed to 'function_selector' in text string format, this 'parameter_string' will override 'parameter'. Example: "\"100\", \"TJCnKsPa7y5okkXvQAidZBzqx3QyQ6sxMW\"", if the function call has no parameter, 'parameter_string' should be set ""
Parameter fee_limit: The maximum TRX burns for resource consumption
Parameter call_value: The TRX transfer to the contract for each call
Parameter owner_address: Owner address that triggers the contract, default hexString
Expand Down

0 comments on commit e9d0f77

Please sign in to comment.