All Projects → kristjank → ark-go

kristjank / ark-go

Licence: MIT License
Ark GO client for ARK.io blockchain ecosystem #golang #ark #blockchain

Programming Languages

go
31211 projects - #10 most used programming language
Batchfile
5799 projects

Projects that are alternatives of or similar to ark-go

cardano-py
Python3 lib and cli for operating a Cardano Passive Node and using the API's. (PRE-ALPHA)
Stars: ✭ 17 (+21.43%)
Mutual labels:  crypto
cryptocompare
Python3 Wrapper for the CryptoCompare API
Stars: ✭ 147 (+950%)
Mutual labels:  crypto
Cryptography-Guidelines
Guidance on implementing cryptography as a developer.
Stars: ✭ 15 (+7.14%)
Mutual labels:  crypto
algobot
Cryptocurrency trading bot with a graphical user interface with support for simulations, backtests, optimizations, and running live bots.
Stars: ✭ 776 (+5442.86%)
Mutual labels:  crypto
crypto-database
Database for crypto data, supporting several exchanges. Can be used for TA, bots, backtest, realtime trading, etc.
Stars: ✭ 72 (+414.29%)
Mutual labels:  crypto
wechat-payment
微信支付Node.js基础工具库
Stars: ✭ 26 (+85.71%)
Mutual labels:  crypto
secondhand-deal
A campus secondhand trading system based on the vue.js + stylus + koa2 + sequelize ORM + mysql, and typescript is still learning to migrate.🍌
Stars: ✭ 21 (+50%)
Mutual labels:  crypto
provably-fair
Tools for creating and verifying provably fair games.
Stars: ✭ 14 (+0%)
Mutual labels:  crypto
cryptocurrency-icons-font
A webfont for cryptocurrency symbols
Stars: ✭ 21 (+50%)
Mutual labels:  crypto
MoniGoMani
Isn't that what we all want? Our money to go many? Well that's what this framework/strategy hopes to do for you! By giving you & HyperOpt a lot of signals to alter the weights from.
Stars: ✭ 868 (+6100%)
Mutual labels:  crypto
substrate-tcr
A Parity Substrate runtime implementation of a simple Token Curated Registry (TCR)
Stars: ✭ 45 (+221.43%)
Mutual labels:  crypto
uniswap-python
🦄 The unofficial Python client for the Uniswap exchange.
Stars: ✭ 533 (+3707.14%)
Mutual labels:  crypto
Crypto
封装多种CTF和平时常见加密及编码C#类库
Stars: ✭ 20 (+42.86%)
Mutual labels:  crypto
srtdroid
Secure Reliable Transport (SRT) Protocol for Android
Stars: ✭ 35 (+150%)
Mutual labels:  crypto
core
JCrypTool Core Plug-ins
Stars: ✭ 131 (+835.71%)
Mutual labels:  crypto
vickitrix
Trigger crypto trades on GDAX with the Twitter stream
Stars: ✭ 30 (+114.29%)
Mutual labels:  crypto
pg credereum
Prototype of PostgreSQL extension bringing some properties of blockchain to the relational DBMS
Stars: ✭ 52 (+271.43%)
Mutual labels:  crypto
binance-chain-python
Binance chain SDK in Python
Stars: ✭ 22 (+57.14%)
Mutual labels:  crypto
Bitcoin-Stealer
Generate random bitcoin wallets, private keys (seeds) and then check if they match a wallet that contains some kind of balance, and then take it. Node.js
Stars: ✭ 61 (+335.71%)
Mutual labels:  crypto
besu-exflo
A plugin for the Besu enterprise-grade Ethereum client with the aim of making it easier to extract chain data into a variety of different data stores and processing pipelines.
Stars: ✭ 16 (+14.29%)
Mutual labels:  crypto

ARK-Go

GitHub issues GitHub forks GitHub stars GitHub license

Overview

A short intro about the different directories within this repository:

  • /arkcoin - Coin configuration and helper functions
  • /core - API to use the Ark blockchain out of Golang
  • /cmd/arkgopool - Client for delegate profit sharing pools
  • /cmd/arkgoserver - Server for delgates profit sharing pools
  • /raw - Images and other raw files

You can find more information about the different functionalities in their folder.

Why Ark-GO

GoLang is an open source programming language developed by Google and designed for building fast, simple and reliable software. It is not about theoretical concepts such as monads and virtual inheritance, but more about hands-on experience.

Ark-GO is the ARK Ecosystem library client implemented in GOLANG programming language. It implements all most relevant ARK functionalities to help you develop efficient, fast and scalable GOLANG applications built upon ARK platform. It provides also low level access to ARK so you can easily build your application on top of it.

A library demo app: ARKGO-GUI

A demo client app was developed to test the goark library package dependencies. More about the demo gui client: /cmd/arkgopool. It targets delegate and basic account functionalites, plus silent mode - to be able to run automated reward payments.

See the demo console app shell recording here: https://asciinema.org/a/5yndxl794ncfpmjoqftuaiodm?t=8.

How to install?

$> go get github.com/kristjank/ark-go

How to get dependencies?

$> go get ./...

How to get started?

All ark-node services have available reponses have their struct representations. It's best to let the code do the speaking. Every class implementation has it's own test class. So it's best to start learning by looking at actual test code.

Ark-GO Client Usage

First call should be network selection, so all settings can initialize from the peers before going into action. By default MAINNET is active.

Init

GoDoc documentation available on this link

import "github.com/kristjank/ark-go/core"
var arkclient = core.NewArkClient(nil)

Communication

Queries to the blockchain are done with the Query struct parameters:

params := TransactionQueryParams{Limit: 10, SenderID: senderID}

... and the results - reponse is also parametrized.

transResponse, _, err := arkapi.ListTransaction(params)
if transResponse.Success {
		log.Println(t.Name(), "Success, returned", transResponse.Count, "transactions")
	} else {
		t.Error(err.Error())
	}

Other call samples

//usage samples
deleResp, _, _ := arkclient.GetDelegate(params)

//switch networks
arkclient = arkclient.SetActiveConfiguration(core.DEVNET) //or core.MAINNET
//create and send tx
arkapi := NewArkClient(nil)
recepient := "address"
passphrase := "pass"

tx := CreateTransaction(recepient,1,"ARK-GOLang is saying whoop whooop",passphrase, "",0)
payload.Transactions = append(payload.Transactions, tx)
res, httpresponse, err := arkapi.PostTransaction(payload)

More information about ARK Ecosystem and etc

Please, use github issues for questions or feedback. For confidential requests or specific demands, contact us on our public channels.

Authors

Chris ([email protected]), with a lot of help from FX Thoorens [email protected] and ARK Community

Jarunik ([email protected]), with a lot of help from Chris

Support this project

Ark Logo Ark address:AUgTuukcKeE4XFdzaK6rEHMD5FLmVBSmHk

License

License: MIT

Copyright (c) 2017 ARK, chris

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].