ledgerstate

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: Apache-2.0, BSD-2-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrNotAllowedToPledgeManaToNode defines an unsupported node to pledge mana to.
	ErrNotAllowedToPledgeManaToNode = errors.New("not allowed to pledge mana to node")
)

Functions

func GetAddress

func GetAddress(c echo.Context) error

GetAddress is the handler for the /ledgerstate/addresses/:address endpoint.

func GetAddressUnspentOutputs

func GetAddressUnspentOutputs(c echo.Context) error

GetAddressUnspentOutputs is the handler for the /ledgerstate/addresses/:address/unspentOutputs endpoint.

func GetBranch

func GetBranch(c echo.Context) (err error)

GetBranch is the handler for the /ledgerstate/branch/:branchID endpoint.

func GetBranchChildren

func GetBranchChildren(c echo.Context) (err error)

GetBranchChildren is the handler for the /ledgerstate/branch/:branchID/childBranches endpoint.

func GetBranchConflicts

func GetBranchConflicts(c echo.Context) (err error)

GetBranchConflicts is the handler for the /ledgerstate/branch/:branchID/conflicts endpoint.

func GetOutput

func GetOutput(c echo.Context) (err error)

GetOutput is the handler for the /ledgerstate/outputs/:outputID endpoint.

func GetOutputConsumers

func GetOutputConsumers(c echo.Context) (err error)

GetOutputConsumers is the handler for the /ledgerstate/outputs/:outputID/consumers endpoint.

func GetOutputMetadata

func GetOutputMetadata(c echo.Context) (err error)

GetOutputMetadata is the handler for the /ledgerstate/outputs/:outputID/metadata endpoint.

func GetTransaction

func GetTransaction(c echo.Context) (err error)

GetTransaction is the handler for the /ledgerstate/transactions/:transactionID endpoint.

func GetTransactionAttachments

func GetTransactionAttachments(c echo.Context) (err error)

GetTransactionAttachments is the handler for the ledgerstate/transactions/:transactionID/attachments endpoint.

func GetTransactionConsensusMetadata added in v0.5.7

func GetTransactionConsensusMetadata(c echo.Context) (err error)

GetTransactionConsensusMetadata is the handler for the ledgerstate/transactions/:transactionID/consensus endpoint.

func GetTransactionInclusionState added in v0.6.0

func GetTransactionInclusionState(c echo.Context) (err error)

GetTransactionInclusionState is the handler for the ledgerstate/transactions/:transactionID/inclusionState endpoint.

func GetTransactionMetadata

func GetTransactionMetadata(c echo.Context) (err error)

GetTransactionMetadata is the handler for the ledgerstate/transactions/:transactionID/metadata endpoint.

func Plugin

func Plugin() *node.Plugin

Plugin returns the plugin as a singleton.

func PostAddressUnspentOutputs added in v0.6.0

func PostAddressUnspentOutputs(c echo.Context) error

PostAddressUnspentOutputs is the handler for the /ledgerstate/addresses/unspentOutputs endpoint.

func PostTransaction added in v0.6.0

func PostTransaction(c echo.Context) error

PostTransaction sends a transaction.

Types

This section is empty.

Jump to

Keyboard shortcuts

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