All Projects → scorum → bitshares-go

scorum / bitshares-go

Licence: MIT license
Bitshares golang client

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to bitshares-go

bitshares-mobile-app
This is the mobile app for bitshares blockchain
Stars: ✭ 44 (+144.44%)
Mutual labels:  bitshares
PoolTool
A simple Python tool to help anyone use Liquidity Pools on the BitShares blockchain.
Stars: ✭ 17 (-5.56%)
Mutual labels:  bitshares
bitshares wallet
The bitshares wallet app for Android devices.
Stars: ✭ 31 (+72.22%)
Mutual labels:  bitshares
bsips
BitShares Improvement Proposals and Protocols. These technical documents describe the process of updating and improving the BitShares blockchain and technical ecosystem.
Stars: ✭ 63 (+250%)
Mutual labels:  bitshares
go-bitshares
API for Bitshares - supports websocket RPC & Wallet functions
Stars: ✭ 22 (+22.22%)
Mutual labels:  bitshares
DEXBot
Trading Bot for the BitShares Decentralized Exchange
Stars: ✭ 232 (+1188.89%)
Mutual labels:  bitshares
docs.bitshares.org
Please check the new repository https://github.com/bitshares/how.bitshares.works. This repository contains the OLD sources (and the build in a different branch) for docs.bitshares.org
Stars: ✭ 18 (+0%)
Mutual labels:  bitshares

scorum/bitshares-go

Go Report Card GoDoc Build Status

Golang RPC (via websockets) client library for Bitshares and OpenLedger in particular

Usage

import "github.com/scorum/bitshares-go"

Example

client, err := NewClient("wss://bitshares.openledger.info/ws")

// retrieve the current global_property_object
props, err := client.Database.GetDynamicGlobalProperties()

// lookup symbols ids
symbols, err := client.Database.LookupAssetSymbols("OPEN.SCR", "USD")
require.NoError(t, err)

openSCR := symbols[0].ID
USD := symbols[1].ID

// retrieve 5 last filled orders
orders, err := client.History.GetFillOrderHistory(openSCR, USD, 5)

// set a block applied callback
client.Database.SetBlockAppliedCallback(func(blockID string, err error) {
    log.Println(blockID)
})

// cancel all callbacks
client.Database.CancelAllSubscriptions()

Status

The project is in active development but should not be used in production yet.

Supported operations

  • Transfer
  • LimitOrderCreate
  • LimitOrderCancel
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].