CovenantSQL: Index | Files | Directories

package api

import ""


Package Files

blocks.go service.go transactions.go

func Serve Uses

func Serve(addr, dbFile string) error

Serve runs an API server on the specified address and database file.

func StopService Uses

func StopService()

StopService stops the API server.

type BPGetBlockListResponse Uses

type BPGetBlockListResponse struct {
    Blocks     []*models.Block    `json:"blocks"`
    Pagination *models.Pagination `json:"pagination"`

BPGetBlockListResponse is the response for method bp_getBlockList.

type BPGetTransactionListResponse Uses

type BPGetTransactionListResponse struct {
    Transactions []*models.Transaction `json:"transactions"`
    Pagination   *models.Pagination    `json:"pagination"`

BPGetTransactionListResponse is the response for method bp_getTransactionList.



Package api imports 9 packages (graph). Updated 2019-06-24. Refresh now. Tools for package owners.