diff --git a/api/service/explorer/structs.go b/api/service/explorer/structs.go index 9979ce16c..62227fa57 100644 --- a/api/service/explorer/structs.go +++ b/api/service/explorer/structs.go @@ -1,6 +1,7 @@ package explorer import ( + "encoding/hex" "math/big" "strconv" @@ -72,5 +73,6 @@ func GetTransaction(tx *types.Transaction, accountBlock *types.Block) *Transacti To: msg.To().Hex(), Value: msg.Value(), Bytes: strconv.Itoa(int(tx.Size())), + Data: hex.EncodeToString(tx.Data()), } }