Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Auth ¶
Auth - store all the details required for wapi to work
var Credentials Auth
Credentials - Store all the data required for wapi to work.
type CheckBalanceRequest ¶
type CheckBalanceRequest struct { APIKey string `json:"apikey"` // This one is set by function Username string `json:"username"` // This one is set by function Action string `json:"action"` // This one is set by function Currency string `json:"currency"` Data struct { Address string `json:"address"` } `json:"data"` }
CheckBalanceRequest - pass this to CheckBalance function
type CheckBalanceResponse ¶
type CheckBalanceResponse struct { OK bool `json:"ok"` Balance float64 `json:"balance"` Received float64 `json:"received"` // This is empty, unless error Code string `json:"code"` Message string `json:"message"` }
CheckBalanceResponse - This is what you can get back
func CheckBalance ¶
func CheckBalance(req CheckBalanceRequest) CheckBalanceResponse
CheckBalance is used to check balance of one address
type GetNewAddressRequest ¶
type GetNewAddressRequest struct { APIKey string `json:"apikey"` // This one is set by function Username string `json:"username"` // This one is set by function Action string `json:"action"` // This one is set by function Currency string `json:"currency"` Data struct{} `json:"data"` }
GetNewAddressRequest - pass this to CheckBalance function
type GetNewAddressResponse ¶
type GetNewAddressResponse struct { OK bool `json:"ok"` Address string `json:"address"` // This is empty, unless error Code string `json:"code"` Message string `json:"message"` }
GetNewAddressResponse - This is what you can get back
func GetNewAddress ¶
func GetNewAddress(req GetNewAddressRequest) GetNewAddressResponse
GetNewAddress is used to generate new deposit address
type SendToAddressRequest ¶
type SendToAddressRequest struct { APIKey string `json:"apikey"` // This one is set by function Username string `json:"username"` // This one is set by function Action string `json:"action"` // This one is set by function Currency string `json:"currency"` Data struct { Amount float64 `json:"amount"` Address string `json:"address"` } `json:"data"` }
SendToAddressRequest - pass this to CheckBalance function
type SendToAddressResponse ¶
type SendToAddressResponse struct { OK bool `json:"ok"` TXID string `json:"txid"` // This is empty, unless error Code string `json:"code"` Message string `json:"message"` }
SendToAddressResponse - This is what you can get back
func SendToAddress ¶
func SendToAddress(req SendToAddressRequest) SendToAddressResponse
SendToAddress is used to send money to some address
Source Files ¶
Click to show internal directories.
Click to hide internal directories.