Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/proximax-storage/nem2-sdk-go
Official Go SDK for ProximaX/NEM Catapult
https://github.com/proximax-storage/nem2-sdk-go
catapult go lang nem proximax sdk
Last synced: 8 days ago
JSON representation
Official Go SDK for ProximaX/NEM Catapult
- Host: GitHub
- URL: https://github.com/proximax-storage/nem2-sdk-go
- Owner: proximax-storage
- License: apache-2.0
- Created: 2018-07-17T12:14:57.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-28T13:44:02.000Z (almost 6 years ago)
- Last Synced: 2024-06-18T21:40:42.797Z (5 months ago)
- Topics: catapult, go, lang, nem, proximax, sdk
- Language: Go
- Homepage:
- Size: 303 KB
- Stars: 13
- Watchers: 7
- Forks: 9
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# nem2-sdk-go
nem2-sdk-go is a Golang client library for Catapult API
## Usage ##
```go
import "github.com/proximax-storage/nem2-sdk-go/sdk"
```Create a Catapult network configuration
Using the *Testnet* network
```go
conf, err := sdk.NewConfig("http://localhost:3000",sdk.Testnet)
```
Or using the *Mainnet* network
```go
conf, err := sdk.NewConfig("http://localhost:3000",sdk.Mainnet)
```Construct a new Catapult client
```go
client := sdk.NewClient(nil, conf)
```Using the client to call a method from a Service API
```go
// Get the chain height
chainHeight, err := client.Blockchain.GetChainHeight(context.Background())
```## Context ##
A [Context](https://golang.org/pkg/context/) type is the first argument in any service method for specifying
deadlines, cancelation signals, and other request-scoped values
```go
// Get the chain height
chainHeight, err := client.Blockchain.GetChainHeight(context.Background())
```## Wiki / Examples ##
Examples are in the `examples` folder
For more examples, go to our [wiki](https://github.com/proximax-storage/nem2-sdk-go/wiki)
## Core Contributors ##
+ [@Wondertan](https://github.com/Wondertan)
+ [@ruslanBik4](https://github.com/ruslanBik4)
+ [@slackve](https://github.com/slackve)
+ [@brambear](https://github.com/alvin-reyes)
+ [@carlocayos](https://github.com/carlocayos)## Contribution ##
We'd love to get more people involved in the project. Please feel free to raise any issues or PR and we'll review your contribution.Copyright (c) 2018 ProximaX Limited