marshal

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: ISC Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshJsonCoinbaseVout added in v0.10.1

func MarshJsonCoinbaseVout(tx *types.Transaction, filterAddrMap map[string]struct{}, params *params.Params, coinbaseAmout types.AmountMap) []json.Vout

func MarshJsonVin

func MarshJsonVin(tx *types.Transaction) []json.Vin

func MarshJsonVout

func MarshJsonVout(tx *types.Transaction, filterAddrMap map[string]struct{}, params *params.Params) []json.Vout

func MarshalJsonBlock

func MarshalJsonBlock(b *types.SerializedBlock, inclTx bool, fullTx bool,
	params *params.Params, confirmations int64, children []*hash.Hash, state bool, isOrdered bool, coinbaseAmout types.AmountMap, coinbaseFee types.AmountMap) (json.OrderedResult, error)

RPCMarshalBlock converts the given block to the RPC output which depends on fullTx. If inclTx is true transactions are returned. When fullTx is true the returned block contains full transaction details, otherwise it will only contain transaction hashes.

func MarshalJsonTransaction

func MarshalJsonTransaction(transaction *types.Tx, params *params.Params, blkHashStr string,
	confirmations int64, coinbaseAmout types.AmountMap, state bool) (json.TxRawResult, error)

func MarshalJsonTx

func MarshalJsonTx(tx *types.Tx, params *params.Params, blkHashStr string,
	confirmations int64, coinbaseAmout types.AmountMap, state bool) (json.TxRawResult, error)

func MessageToHex

func MessageToHex(tx *types.Transaction) (string, error)

messageToHex serializes a message to the wire protocol encoding using the latest protocol version and returns a hex-encoded string of the result.

Types

This section is empty.

Jump to

Keyboard shortcuts

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