Save
Saving
  • B
    bingying

    The return value of the action when you explicitly returned using Return or ReturnArray will be written in the transaction_trace table. And you will read it using a interface of U3.js, Here is an example:
    0_1538666225246_80d1a24b-be55-4a3c-984c-c24bc60746c0-image.png
    The return value you will find in this result:

     {"transaction_id":"51e8a285c132b885b05fa78ea54fd2c7e5f5f75e08d6d058b0b74e707611921e","processed":{"id":"51e8a285c132b885b05fa78ea54fd2c7e5f5f75e08d6d058b0b74e707611921e","receipt":{"status":"executed","cpu_usage_us":29559,"net_usage_words":16},"elapsed":29559,"net_usage":128,"scheduled":false,"action_traces":[{"receipt":{"receiver":"ben","act_digest":"9839013db4fb255dcbae0c2ae11150f562519d8eb35cc00cbe48dc10b3099282","global_sequence":5572,"recv_sequence":7,"auth_sequence":[["ben",13]],"code_sequence":3,"abi_sequence":3},"act":{"account":"ben","name":"hi","authorization":[{"actor":"ben","permission":"active"}],"data":{"name":"ben","age":30,"msg":"It is a test"},"hex_data":"000000000000a63a1e0000000c497420697320612074657374"},"elapsed":23652,"cpu_usage":0,"console":"hello, name = ben age = 30 msg = It is a test","total_cpu_usage":0,"trx_id":"51e8a285c132b885b05fa78ea54fd2c7e5f5f75e08d6d058b0b74e707611921e","return_value":"call hi() succeed.","inline_traces":[]}],"except":null}}
    

    posted in Activity read more