package
0.0.0-20240610110821-095633c8b6be
Repository: https://github.com/shantanu-hashcash/go.git
Documentation: pkg.go.dev

# Functions

DecodeDiagnosticEvents returns the decoded events.
DiagnosticEventsToSlice transforms the base64 diagnostic events into a slice of individual base64-encoded diagnostic events.

# Constants

DeadState represents the state value returned by hcnet-core when a ledger entry is dead.
LiveState represents the state value returned by hcnet-core when a ledger entry is live.
PreflightStatusError represents the status value returned by hcnet-core when an error occurred from processing a preflight request.
PreflightStatusOk represents the status value returned by hcnet-core when a preflight request succeeded.
TXStatusDuplicate represents the status value returned by hcnet-core when a submitted transaction is a duplicate.
TXStatusError represents the status value returned by hcnet-core when an error occurred from submitting a transaction.
TXStatusPending represents the status value returned by hcnet-core when a transaction has been accepted for processing.
TXStatusTryAgainLater represents the status value returned by hcnet-core when a submitted transaction was not included in the previous 4 ledgers and get banned for being added in the next few ledgers.

# Structs

GetLedgerEntryResponse is the response from Hcnet Core for the getLedgerEntry endpoint.
InfoResponse is the json response returned from hcnet-core's /info endpoint.
LedgerInfo is the part of the hcnet-core's info json response.
PreflightResponse is the response from Hcnet Core for the preflight endpoint.
TXResponse represents the response returned from a submission request sent to hcnet-core's /tx endpoint.