chain

package
v0.0.0-...-9668792 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2018 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BlockHeight       = "/api/v1/block/height"
	BlockDetail       = "/api/v1/block/details/height/"
	TransactionDetail = "/api/v1/transaction/"
	INCOME            = "income"
	SPEND             = "spend"
	ELA               = 100000000
	MINEING_ADDR      = "0000000000000000000000000000000000"
	CROSS_CHAIN_FEE   = 10000
)

Variables

This section is empty.

Functions

func CreateRegistedRedeemedScript

func CreateRegistedRedeemedScript(publicKey *crypto.PublicKey) ([]byte, error)

func Sync

func Sync()

Sync sync chain data

Types

type Address_history

type Address_history struct {
	History  []Block_transaction_history
	TotalNum int
}

type Block_transaction_history

type Block_transaction_history struct {
	Txid       string
	Type       string
	Value      int64
	CreateTime int64
	Height     int
	Fee        int64
	Inputs     []string
	Outputs    []string
}

type Did_Property

type Did_Property struct {
	Did          string
	Did_status   int
	Public_key   string
	Property_key string

	Property_value string
	Txid           string
	Block_time     int
	Height         int
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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