Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alvin-reyes/nem-go-sdk

Simple NIS1/NEM Wrapper written in GO
https://github.com/alvin-reyes/nem-go-sdk

golang nem nem-blockchain

Last synced: 25 days ago
JSON representation

Simple NIS1/NEM Wrapper written in GO

Awesome Lists containing this project

README

        

# NEM/NIS Go Wrapper - Simple NEM/NIS1 Wrapper written in Go.

A Simple NEM NIS1 Wrapper written in Go. Basic functions are available such as:

Features:

+ Generation of Account and Lookup
+ Transaction Lookup
+ Blockchain Lookup
+ Node Information Lookup
+ Namespace and Mosaics Lookup
+ Address Generator (with Vanity check)

To follow:

+ CLI Capability
+ Initiated and Sign offline Transactions
+ Initiate and Announce transactions
+ Websocket Monitoring

## How to use

```go
package main

import (
"github.com/nem-sdk-go/nembc"
)

func main() {

// create the instance.
newNisConnection := nembc.NewNisConnection("http://104.128.226.60:7890/",nembc.Testnet)

// Get account information
newNisConnection.AccountApi.AccountGet("TC5KTUA4TTSSCSFQX2DOMCI2BUEHO2CSE4ZCITPM")

// Get namespace and mosaic information
newNisConnection.NamespaceMosaicsApi.GetNamespaceRootPage("roopage")

// Blockchain Api endpoint
newNisConnection.BlockchainApi.GetChainHeight()

// NisApi Heart Beat
newNisConnection.NisApi.GetHeartBeat()

// Node Information
newNisConnection.NodeApi.GetNodeInfo()

// Transaction Api
newNisConnection.TransactionApi.TransactionPrepareAnnounce()

}
```

## Contribution
The library/tool is far from finish. We need a few contributors to finish some of the tasks at hand. Please check the Issues tab for more details.

## Reference
Some of the features, code and functions are directly referenced from https://nem-toolchain.github.io/.

## Author
BramBear (Alvin Reyes)