api: include block height in /tx/:id
@@ -324,6 +324,7 @@ func (s *transaction) getObject(arena *fastjson.Arena) (*fastjson.Value, error)
o.Set("sender", arena.NewString(hex.EncodeToString(s.tx.Sender[:])))
o.Set("status", arena.NewString(s.status))
o.Set("nonce", arena.NewNumberString(strconv.FormatUint(s.tx.Nonce, 10)))
+ o.Set("height", arena.NewNumberString(strconv.FormatUint(s.tx.Block, 10)))
o.Set("tag", arena.NewNumberInt(int(s.tx.Tag)))
o.Set("payload", arena.NewString(base64.StdEncoding.EncodeToString(s.tx.Payload)))
o.Set("signature", arena.NewString(hex.EncodeToString(s.tx.Signature[:])))
