MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / bpGetTransactionList

Function bpGetTransactionList

api/transactions.go:38–52  ·  view source on GitHub ↗
(ctx context.Context, conn *jsonrpc2.Conn, req *jsonrpc2.Request)

Source from the content-addressed store, hash-verified

36}
37
38func bpGetTransactionList(ctx context.Context, conn *jsonrpc2.Conn, req *jsonrpc2.Request) (
39 result interface{}, err error,
40) {
41 params := ctx.Value("_params").(*bpGetTransactionListParams)
42 model := models.TransactionsModel{}
43 transactions, pagination, err := model.GetTransactionList(params.Since, params.Page, params.Size)
44 if err != nil {
45 return nil, err
46 }
47 result = &BPGetTransactionListResponse{
48 Transactions: transactions,
49 Pagination: pagination,
50 }
51 return result, nil
52}
53
54type bpGetTransactionListOfBlockParams struct {
55 BlockHeight int `json:"height"`

Callers

nothing calls this directly

Calls 2

GetTransactionListMethod · 0.95
ValueMethod · 0.80

Tested by

no test coverage detected