Skip to content

xyield/xumm-go-client

Repository files navigation

xumm-go-client

example workflow

This is a client written in golang for using the XUMM API. The API docs can be found here.

Installation:

The latest version can be installed using go get :

go get github.com/xyield/xumm-go-client@master

How to use this client

Register your app with the Xumm developer console Set Xumm credentials as environment variables

export XUMM_API_KEY=<key_from_console>
export XUMM_API_SECRET=<secret_from_console>
package main

func main() {
    cfg, err := xumm.NewConfig()
	if err != nil {
		log.Panicln(err)
	}

	client := client.New(cfg)

	pong, err := client.Meta.Ping()

	if err != nil {
		log.Println(err.Error())
	}

    // Do something
}

Contributing

Pre-requisites:
Install pre-commit

Future work

Continue to develop all endpoints
Integration testing in pipeline to connect to Xumm API
Ability to use custom logging library
Ability to use a custom client library