package
0.1.7-beta
Repository: https://github.com/dmitrymomot/solana.git
Documentation: pkg.go.dev

# Functions

AmountToFloat64 converts amount lamports to float64 with given decimals.
AmountToString converts amount lamports to string with given decimals.
AmountToUint64 converts amount from float64 to uint64 with given decimals.
Base58ToBytes converts base58 string to bytes.
Base64ToBytes converts base64 string to bytes.
BytesToBase64 converts bytes to base64 string.
DecodeTransaction returns a transaction from a base64 encoded transaction.
EncodeTransaction returns a base64 encoded transaction.
Float64ToString converts float64 to string with minimum number of decimals.
GetFileTypeByURI returns the file type of the given URI.
GetVarType returns the type of the given variable as a string.
IntAmountToFloat64 converts int64 amount lamports to float64 with given decimals.
MapToStruct converts a map to a struct.
NewStakedError creates a new StakedError instance.
Pointer converts any type to a pointer.
PrettyPrint returns a pretty-printed string representation of a struct or a map.
PrettyString returns a pretty-printed string representation of a struct or a map.
StackErrors wraps multiple errors into a single error.
TrimRightZeros trims trailing zeros from string.
Trim string between two substrings and return the string without it and substrings.
WrapError wraps the rpc.JsonRpcError to a standard error.

# Structs

StakedError is a struct that holds multiple errors and returns them as a single error.