package
0.0.0-20220620005849-a315113d9162
Repository: https://github.com/mycodeku/transtionhelper.git
Documentation: pkg.go.dev

# Functions

FromGRPCToRosettaError converts a gRPC error to rosetta error.
ListErrors lists all the registered errors.
No description provided by the author
SealAndListErrors seals the registry and lists its errors.
ToRosetta attempts to converting an error into a rosetta error, if the error cannot be converted it will be parsed as unknown.
WrapError wraps the rosetta error with additional context.

# Variables

ErrBadArgument is returned when the request is malformed.
ErrBadGateway is returned when there are problems interacting with the nodes.
ErrCodec is returned when there's an error while marshalling or unmarshalling data.
ErrInternal is returned when the node is experiencing internal errors.
ErrInterpreting is returned when there are errors interpreting the data from the node, most likely related to breaking changes, version incompatibilities.
ErrInvalidAddress is returned when the byte of the address are bad.
Default error list.
ErrInvalidOperation is returned when the operation supplied to rosetta is not a valid one.
ErrInvalidPubkey is returned when the public key is invalid.
ErrInvalidTransaction is returned when the provided hex bytes of a TX are not valid.
ErrNetworkNotSupported is returned when there is an attempt to query a network which is not supported.
ErrNotFound is returned when the required object was not found retry is set to true because something that is not found now might be found later, example: a TX.
ErrNotImplemented is returned when a method is not implemented yet.
ErrOffline is returned when there is an attempt to query an endpoint in offline mode.
ErrUnknown defines an unknown error, if this is returned it means the library is ignoring an error.
ErrUnsupportedCurve is returned when the curve specified is not supported.

# Structs

Error defines an error that can be converted to a Rosetta API error.