Skip to content

scorum/bitshares-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages