Documentation ¶
Overview ¶
* go lang wrapper over cryptapi endpoints * @author - Joseph Folayan * @email - folayanjoey@gmail.com * @github - github.com\joey1123455
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Convert ¶
* Convert - This method allows you to easily convert prices from FIAT to Crypto or even between cryptocurrencies * @coin - currency to convert to * @value - the amount to convert * @from - currency to convert from * returns - json response and error
func EstTransactionFee ¶
* EstTransactionFee - returns the estimated value for a crypto transaction * @coin - the coin being transacted in * @adress - no of address being credited * @priority - credit priority settings * returns - response data or error
Types ¶
type Crypt ¶
type Crypt struct { Coin string OwnAddress string CallBack string Params map[string]string CaParams map[string]string PaymentAddrs string }
* Crypt - an instance representing the connection to the crypt api * @Coin - the currency to transact in * @OwnAddress - the wallet to recieve payment * @CallBack - url to send the request status * @Params - url querry parrams * @CaParams - querry params * @PaymentAddrs - the wallet to send payment to
func InitCryptWrapper ¶
* InitCryptWrapper - creates the crypt request instance * @coin - the currency to transact in * @ownAddress - the wallet to recieve payment * @callBack - url to send the request status * @paymentAddrs - the wallet to send payment to * @params - url querry parrams * @caParams - querry params * returns - ptr to crypt instance
func (*Crypt) CheckLogs ¶
* CheckLogs - provides logs for transactions sent to a payment wallet * @w - ptr to crypt instance (reciever method) * returns - logs or error
func (*Crypt) GenPaymentAdress ¶
* GenPaymentAdress - creates the address for customer to pay too * @w - crypt instance (reciever method) * returns - payment wallet or error
type CryptWrapper ¶
type CryptWrapper interface { }
* CryptWrapper - an interface defining the crypt api library * @GenPaymentAdress - returns a payment wallet address * @CheckLogs - checks payment logs for requets * @GenQR - generates a qr code for payment