Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetBundleStatusByTransactionHashResponse ¶
type GetBundleStatusByTransactionHashResponse struct {
TxHash string `json:"txHash"` // "0x0aeb9c61b342f7fc94a10d41c5d30a049a9cfa9ab764c6dd02204a19960ee567"
Status string `json:"status"` // "FAILED_BUNDLE"
Message string `json:"message"` // "Expired - The base fee was to low to execute this transaction, please try again"
Error string `json:"error"` // "max fee per gas less than block base fee"
BlocksCount int `json:"blocksCount"` // 2
ReceivedTimestamp int `json:"receivedTimestamp"` // 1634568851003
StatusTimestamp int `json:"statusTimestamp"` // 1634568873862
}
type HealthResponse ¶
type JsonRpcError ¶
RpcError: https://www.jsonrpc.org/specification#error_object
func (JsonRpcError) Error ¶
func (err JsonRpcError) Error() string
type JsonRpcRequest ¶
type JsonRpcRequest struct {
Id interface{} `json:"id"`
Method string `json:"method"`
Params []interface{} `json:"params"`
Version string `json:"jsonrpc,omitempty"`
}
func NewJsonRpcRequest ¶
func NewJsonRpcRequest(id interface{}, method string, params []interface{}) *JsonRpcRequest
func NewJsonRpcRequest1 ¶
func NewJsonRpcRequest1(id interface{}, method string, param interface{}) *JsonRpcRequest
type JsonRpcResponse ¶
type JsonRpcResponse struct {
Id interface{} `json:"id"`
Result json.RawMessage `json:"result"`
Error *JsonRpcError `json:"error,omitempty"`
Version string `json:"jsonrpc"`
}
func NewJsonRpcResponse ¶
func NewJsonRpcResponse(id interface{}, result json.RawMessage) *JsonRpcResponse
type PrivateTxApiResponse ¶
type PrivateTxApiResponse struct {
Status PrivateTxStatus `json:"status"`
Hash string `json:"hash"`
MaxBlockNumber int `json:"maxBlockNumber"`
}
type PrivateTxStatus ¶
type PrivateTxStatus string
var TxStatusFailed PrivateTxStatus = "FAILED"
var TxStatusIncluded PrivateTxStatus = "INCLUDED"
var TxStatusPending PrivateTxStatus = "PENDING"
var TxStatusUnknown PrivateTxStatus = "UNKNOWN"
type RelayErrorResponse ¶
type RelayErrorResponse struct {
Error string `json:"error"`
}
type TransactionReceipt ¶
Click to show internal directories.
Click to hide internal directories.