Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultJSONRPCVersion = "2.0"
DefaultJSONRPCVersion ...
View Source
const DefaultLocalRelayerEndpoint = "http://localhost:7799"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) SubmitTransaction ¶
func (c *Client) SubmitTransaction(req *common.SubmitTransactionRequest) (*common.SubmitTransactionResponse, error)
Cancel calls relayer_submitTransaction.
type Error ¶
type Error struct { Message string `json:"message"` ErrorCode ErrCode `json:"code"` Data map[string]interface{} `json:"data"` }
Error is a struct that holds the error message and the error code for a error
type Request ¶
type Request struct { JSONRPC string `json:"jsonrpc"` Method string `json:"method"` Params json.RawMessage `json:"params"` ID uint64 `json:"id"` }
Request represents a JSON-RPC request
type Response ¶
type Response struct { Version string `json:"jsonrpc"` Result json.RawMessage `json:"result"` Error *Error `json:"error"` ID *json.RawMessage `json:"id"` }
Response is the JSON format of a response
Click to show internal directories.
Click to hide internal directories.