NodeRpcError

class NodeRpcError(val code: Int, message: String, val data: String? = null) : NodeRpcException

JSON-RPC error from node (negative error code in response).

Common Error Codes:

  • -32700: Parse error (invalid JSON)

  • -32600: Invalid request (malformed JSON-RPC)

  • -32601: Method not found

  • -32602: Invalid params

  • -32603: Internal error

  • 1010: Invalid transaction (rejected by node)

Recovery:

  • Parse/protocol errors: Don't retry

  • Internal errors: Retry once

  • Invalid transaction: Don't retry (fix transaction)

Constructors

Link copied to clipboard
constructor(code: Int, message: String, data: String? = null)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
val code: Int
Link copied to clipboard
val data: String? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Check if this error is retryable.

Link copied to clipboard
open val message: String?