output

package
v0.75.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package output provides functions dealing with transaction outputs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAssetID

func GetAssetID(out Output) []byte

GetAssetID returns the asset ID (256 bit BE value in a 32 byte slice) of the given output. It uses `Neo.Output.GetAssetId` syscall.

func GetScriptHash

func GetScriptHash(out Output) []byte

GetScriptHash returns the script hash (receiver's address represented as 20 byte slice containing 160 bit BE value) of the given output. It uses `Neo.Output.GetScriptHash` syscall.

func GetValue

func GetValue(out Output) int

GetValue returns the value (asset quantity) of the given output. It uses `Neo.Output.GetValue` syscall.

Types

type Output

type Output struct{}

Output is an opaque data structure that can only be created by transaction.GetOutputs and it represents transaction's output. It's similar to Neo .net framework's TransactionOutput.

Jump to

Keyboard shortcuts

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