tstellar

package
v0.0.0-...-8e195c6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Balance

func Balance(pubkey string) bool

Balance prints the complete balance of an account

func IsTxnAddr

func IsTxnAddr(txnoraddr string) int

IsTxnAddr checks if input is address or txnid and return 1 for txnid, 2 for address and 0 for invalid type

func IsValidPubKey

func IsValidPubKey(pubkey string) bool

IsValidPubKey checks if it is a valid public key

func IsValidSecKey

func IsValidSecKey(seckey string) bool

IsValidSecKey checks if it is a valid secret key

func Records

func Records(publickey string, paging string) string

Types

type BlockData

type BlockData struct {
	Links struct {
		Self horizon.Link `json:"self"`
		Next horizon.Link `json:"next"`
		Prev horizon.Link `json:"prev"`
	} `json:"_links"`
	Embedded struct {
		Records []account `json:"records"`
	} `json:"_embedded"`
}

BlockData is structure of Data from JSON

func ReadBlockchain

func ReadBlockchain(publickey string, pagingtoken string) (BlockData, error)

ReadBlockchain inputs public key and outputs the relevent content based struct

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL