Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cpurta/go-raiden-client
A Raiden node client written in Go
https://github.com/cpurta/go-raiden-client
blockchain ethereum micropayments raiden-client raiden-network
Last synced: about 2 months ago
JSON representation
A Raiden node client written in Go
- Host: GitHub
- URL: https://github.com/cpurta/go-raiden-client
- Owner: cpurta
- License: mit
- Created: 2019-07-03T15:19:40.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-10T17:14:08.000Z (about 5 years ago)
- Last Synced: 2024-07-31T20:27:04.702Z (5 months ago)
- Topics: blockchain, ethereum, micropayments, raiden-client, raiden-network
- Language: Go
- Size: 50.8 KB
- Stars: 8
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- awesome-raiden - Go Raiden Client - A Raiden node client written in Go (Developer Resources / 🛠️ Hacks and More Tools for Devs)
- awesome-raiden-old - Golang client library - ticker) (⚡ Developer Resources / Hackathon)
README
# go-raiden-client
[![GoDoc](https://godoc.org/github.com/cpurta/go-raiden-client?status.svg)](https://godoc.org/github.com/cpurta/go-raiden-client)
[![CircleCI](https://circleci.com/gh/cpurta/go-raiden-client.svg?style=svg)](https://circleci.com/gh/cpurta/go-raiden-client)
[![Coverage Status](https://coveralls.io/repos/github/cpurta/go-raiden-client/badge.svg?branch=master)](https://coveralls.io/github/cpurta/go-raiden-client?branch=master)A client for a Raiden node written in Go. This is meant to be used for backend
development environments where you are able to connect to running Raiden node(s).## Getting Started
Get the Raiden client within your go path by using `go get github.com/cpurta/go-raiden-client`.
You can then start writing some code using the client. Here is an example that will
connect to a locally running Raiden node and get our Ethereum address that the node
is using.```go
package mainimport (
"context"
"log"
"net/http""github.com/cpurta/go-raiden-client/config"
"github.com/ethereum/go-ethereum/common"
)func main() {
var (
err error
raidenConfig = &config.Config{
Host: "http://localhost:5001",
APIVersion: "v1",
}raidenClient = NewClient(raidenConfig, http.DefaultClient)
address common.Address
)// get our token address from the raiden node
if address, err = raidenClient.Address().Get(context.TODO()); err != nil {
log.Println("there was an error getting raiden address:", err.Error())
}log.Println("raiden address:", address.Hex())
}
```## Contributing
If you notice some issues please feel free to create one in the repo with as much
detailed information on how you encountered your issues and any error messages. If
you would like to add on features feel free to fork and submit a pull request.## LICENSE
Distributed under the [MIT License](./LICENSE)