jsonrpcmodels

package
v0.0.0-...-cb7fc92 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiWarning

type ApiWarning struct {
	Id      int         `json:"id"`
	Message string      `json:"message"`
	Details interface{} `json:"details,omitempty"`
}

type JsonRpcRequest

type JsonRpcRequest struct {
	Method string         `json:"method"`
	Params [1]interface{} `json:"params,omitempty"`
}

type JsonRpcResponse

type JsonRpcResponse struct {
	Result    json.RawMessage              `json:"result"`
	Warning   string                       `json:"warning,omitempty"`
	Warnings  []client.XRPLResponseWarning `json:"warnings,omitempty"`
	Forwarded bool                         `json:"forwarded,omitempty"`
}

func (JsonRpcResponse) GetError

func (r JsonRpcResponse) GetError() error

func (JsonRpcResponse) GetResult

func (r JsonRpcResponse) GetResult(v any) error

Jump to

Keyboard shortcuts

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