(ctx context.Context, conn *jsonrpc2.Conn, req *jsonrpc2.Request)
| 36 | } |
| 37 | |
| 38 | func 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 | |
| 54 | type bpGetTransactionListOfBlockParams struct { |
| 55 | BlockHeight int `json:"height"` |
nothing calls this directly
no test coverage detected