blockchain

package
v0.0.0-...-eace32e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset struct {
	Data string `json:"data"`
}

Asset - Lisk transaction asset

type Client

type Client struct {
	NodeURL          string
	RecipientAddress string
}

Client - Lisk blockchain client

func (Client) GetValidTransactions

func (c Client) GetValidTransactions(offset int) []Transaction

GetValidTransactions - Returns valid transactions

type Transaction

type Transaction struct {
	Amount    string `json:"amount"`
	Asset     Asset  `json:"asset"`
	Timestamp int    `json:"timestamp"`
}

Transaction - Lisk transaction

func MakeTransaction

func MakeTransaction() Transaction

MakeTransaction - Creates a default transaction

Jump to

Keyboard shortcuts

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