DEFAULT_RETRYABLE_RPC_ERROR_CODES

Documentation for eth_defi.middleware.DEFAULT_RETRYABLE_RPC_ERROR_CODES data.

DEFAULT_RETRYABLE_RPC_ERROR_CODES = (-32603, -32003, -32043, -32005, -32701)

List of ValueError status codes we know we might want to retry after a timeout

This is a self-managed list curated by pain.

JSON-RPC error might be mapped to ValueError if nothing else is available.

Example from Pokt Network:

ValueError: {‘message’: ‘Internal JSON-RPC error.’, ‘code’: -32603}

We assume this is a broken RPC node and Pokt will reroute the the next retried request to some other node.

See GoEthereum error codes https://github.com/ethereum/go-ethereum/blob/master/rpc/errors.go