response

package
v0.0.0-...-4193992 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InvalidParamsCode = -32602
	HederaErrorCode   = -32001
)

see https://json-rpc.readthedocs.io/en/latest/exceptions.html some of the response codes are handled internally in the jrpc2 lib

Variables

View Source
var (
	InvalidParams = jrpc2.Errorf(InvalidParamsCode, "Invalid params")
	InternalError = jrpc2.Errorf(jrpc2.InternalError, "Internal error")
	HederaError   = jrpc2.Errorf(HederaErrorCode, "Hiero error")
)

Functions

func NewHederaPrecheckError

func NewHederaPrecheckError(err hiero.ErrHederaPreCheckStatus) error

func NewHederaReceiptError

func NewHederaReceiptError(err hiero.ErrHederaReceiptStatus) error

Types

type AccountResponse

type AccountResponse struct {
	AccountId string `json:"accountId"`
	Status    string `json:"status"`
}

type ErrorData

type ErrorData struct {
	Status  string `json:"status"`
	Message string `json:"message"`
}

type GenerateKeyResponse

type GenerateKeyResponse struct {
	Key         string   `json:"key"`
	PrivateKeys []string `json:"privateKeys"`
}

type SetupResponse

type SetupResponse struct {
	Message string
	Status  string
}

type TokenResponse

type TokenResponse struct {
	TokenId string `json:"tokenId"`
	Status  string `json:"status"`
}

Jump to

Keyboard shortcuts

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