func AddressSummaryAction(r *http.Request) api.Response {
	params := struct {
		Address string
	}{}
	err := api.FormValues(r, &params, []*v.FieldRules{
		v.Field(&params.Address, v.Required),
	})
	if err != nil {
		return api.Response{Error: err, Status: http.StatusBadRequest}
	}
	summary, err := db.GetAddressSummary(params.Address)
	if err != nil {
		return api.Response{Error: err, Status: http.StatusInternalServerError}
	}
	return api.Response{Data: summary}
}
AddressSummaryAction returns address details: received, spent, balance
package apiactions
import (
	"fmt"
	"net/http"
	"os/exec"
	"strconv"
	"strings"
	"time"
	"github.com/lbryio/chainquery/db"
	"github.com/lbryio/chainquery/meta"
	"github.com/lbryio/lbry.go/extras/api"
	"github.com/lbryio/lbry.go/extras/errors"
	"github.com/lbryio/lbry.go/extras/travis"
	v "github.com/lbryio/ozzo-validation"
	"github.com/sirupsen/logrus"
)
func ChainQueryStatusAction(r *http.Request) api.Response {
	status, err := db.GetTableStatus()
	if err != nil {
		return api.Response{Error: err}
	}
	return api.Response{Data: status}
}