marshal

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: ISC Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGraphStateResult

func GetGraphStateResult(gs *meerdag.GraphState) *json.GetGraphStateResult

func MarshJsonCoinbaseVout

func MarshJsonCoinbaseVout(transaction *types.Tx, 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(block meerdag.IBlock, b *types.SerializedBlock, inclTx bool, fullTx bool,
	params *params.Params, confirmations int64, children []*hash.Hash, 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