EOSIO / eosio.contracts

Smart contracts that provide some of the basic functions of the EOSIO blockchain
https://eosio.github.io/eosio.contracts/latest
MIT License
325 stars 574 forks source link

how to parse the transaction detail information from inline actions? #516

Closed harr1wei closed 3 years ago

harr1wei commented 4 years ago

just like this tx, https://www.eosx.io/tx/515981cbee0f48c1e07a5464c37681176c02160c92eb9ea4094117f49b2b2236?listView=raw

harr1wei commented 4 years ago

this is a tx which is created by smart contract, but how can I parse the 'from' 'to' 'coin' 'amount' in the raw data?

deckb commented 4 years ago

You can use the eosjs library and either deserializeActionData or the deserializeAction functions.

harr1wei commented 4 years ago

You can use the eosjs library and either deserializeActionData or the deserializeAction functions.

ok,thanks,I'll try.