Documentation ¶
Index ¶
- Constants
- type MoneyBackendClient
- func (c *MoneyBackendClient) GetBalance(pubKey []byte, includeDCBills bool) (uint64, error)
- func (c *MoneyBackendClient) GetBlockHeight() (uint64, error)
- func (c *MoneyBackendClient) GetProof(billId []byte) (*block.Bills, error)
- func (c *MoneyBackendClient) ListBills(pubKey []byte) (*money.ListBillsResponse, error)
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 ¶
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)
Click to show internal directories.
Click to hide internal directories.