Documentation ¶
Index ¶
- func GetGraphStateResult(gs *meerdag.GraphState) *json.GetGraphStateResult
- func MarshJsonCoinbaseVout(transaction *types.Tx, filterAddrMap map[string]struct{}, ...) []json.Vout
- func MarshJsonVin(tx *types.Transaction) []json.Vin
- func MarshJsonVout(tx *types.Transaction, filterAddrMap map[string]struct{}, ...) []json.Vout
- func MarshalJsonBlock(block meerdag.IBlock, b *types.SerializedBlock, inclTx bool, fullTx bool, ...) (json.OrderedResult, error)
- func MarshalJsonTransaction(transaction *types.Tx, params *params.Params, blkHashStr string, ...) (json.TxRawResult, error)
- func MarshalJsonTx(tx *types.Tx, params *params.Params, blkHashStr string, confirmations int64, ...) (json.TxRawResult, error)
- func MessageToHex(tx *types.Transaction) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGraphStateResult ¶
func GetGraphStateResult(gs *meerdag.GraphState) *json.GetGraphStateResult
func MarshJsonCoinbaseVout ¶
func MarshJsonVin ¶
func MarshJsonVin(tx *types.Transaction) []json.Vin
func MarshJsonVout ¶
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 MarshalJsonTx ¶
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.
Click to show internal directories.
Click to hide internal directories.