Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BalanceResponse ¶
type BalanceResponse struct {
*http.Response
Success bool `json:"success"`
Error *string `json:"error"`
Data []BalanceResult `json:"data"`
Trace []string `json:"_trace,omitempty"`
}
BalanceResponse response from the api call. It includes the http response plus the result
type BalanceResult ¶
type BalanceResult struct {
Name string `json:"name"`
LBC float64 `json:"lbc"`
Satoshi uint64 `json:"satoshi"`
}
BalanceResult result from the api call to send funds
type Client ¶
Client dispendium client for making calls to dispendium api
func (Client) Balance ¶
func (c Client) Balance() (*BalanceResponse, error)
Balance sends funds to an address
func (Client) SendFunds ¶
func (c Client) SendFunds(args SendFundsArgs) (*SendFundsResponse, error)
SendFunds sends funds to an address
type SendFundsArgs ¶
SendFundsArgs Arguments for sending funds via dispendium
type SendFundsResponse ¶
type SendFundsResponse struct {
*http.Response
Success bool `json:"success"`
Error *string `json:"error"`
Data *SendResult `json:"data"`
Trace []string `json:"_trace,omitempty"`
}
SendFundsResponse response from the api call. It includes the http response plus the result
type SendResult ¶
type SendResult struct {
LBCAmount float64 `json:"lbc_amount"`
SatoshiAmount uint64 `json:"satoshi_amount"`
TxHash string `json:"tx_id"`
}
SendResult result from the api call to send funds
Click to show internal directories.
Click to hide internal directories.