client

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2023 License: AGPL-3.0, ISC Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BalancePath     = "api/v1/balance"
	ListBillsPath   = "api/v1/list-bills"
	ProofPath       = "api/v1/proof"
	BlockHeightPath = "api/v1/block-height"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MoneyBackendClient

type MoneyBackendClient struct {
	BaseUrl    string
	HttpClient http.Client
}

func NewClient

func NewClient(baseUrl string) (*MoneyBackendClient, error)

func (*MoneyBackendClient) GetBalance

func (c *MoneyBackendClient) GetBalance(pubKey []byte, includeDCBills bool) (uint64, error)

func (*MoneyBackendClient) GetBlockHeight

func (c *MoneyBackendClient) GetBlockHeight() (uint64, error)

func (*MoneyBackendClient) GetProof

func (c *MoneyBackendClient) GetProof(billId []byte) (*block.Bills, error)

func (*MoneyBackendClient) ListBills

func (c *MoneyBackendClient) ListBills(pubKey []byte) (*money.ListBillsResponse, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL