Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

westwallet-golang-api

godoc

westwallet-golang-api is a WestWallet Public API wrapper for Go programming language. Use it for building payment solutions.

Installing

Install with go get:

go get github.com/westwallet/westwallet-golang-api

Create withdrawal example

package main

import (
    "fmt"
    westwallet "github.com/westwallet/westwallet-golang-api"
)
// Sending 0.1 ETH to 0x57689002367b407f031f1BB5Ef2923F103015A32
client := westwallet.APIClient{
    Key:      "your_public_key",
    Secret:   "your_private_key",
}
transaction, err := client.CreateWithdrawal(
    "ETH", "0.1", "0x57689002367b407f031f1BB5Ef2923F103015A32", "", ""
)
fmt.Println(err)
if err != nil {
    panic(err)
}
fmt.Println(transaction)

Generate address example

package main

import (
    "fmt"
    westwallet "github.com/westwallet/westwallet-golang-api"
)
client := westwallet.APIClient{
    Key:      "your_public_key",
    Secret:   "your_private_key",
}
address, err := client.GenerateAddress("BTC", "", "")
if err != nil {
    panic(err)
}
fmt.Println(address.Address)

Documentation

Other languages

Releases

No releases published

Packages

No packages published

Languages