Skip to main content

Module rpc

Module rpc 

Source
Expand description

RPC testing utilities.

Macrosยง

shuffled_list ๐Ÿ”’

Structsยง

ShuffledList ๐Ÿ”’

Enumsยง

RpcMethodRejection ๐Ÿ”’

Constantsยง

MONAD_SYSTEM_ADDRESS ๐Ÿ”’

Staticsยง

ARBITRUM_URLS ๐Ÿ”’
DRPC_KEYS ๐Ÿ”’
ETHERSCAN_KEYS ๐Ÿ”’
HTTP_ARCHIVE_DOMAINS ๐Ÿ”’
HTTP_DOMAINS ๐Ÿ”’
WS_ARCHIVE_DOMAINS ๐Ÿ”’
WS_DOMAINS ๐Ÿ”’

Functionsยง

canonicalize_monad_system_receipt ๐Ÿ”’
canonicalize_monad_system_response ๐Ÿ”’
canonicalize_monad_system_result ๐Ÿ”’
canonicalize_monad_system_transaction ๐Ÿ”’
debug_url ๐Ÿ”’
Basic redaction for debugging RPC URLs.
env_rpc_url ๐Ÿ”’
Returns the RPC URL configured in the var environment variable, if it is set and non-empty.
next_archive_url ๐Ÿ”’
Returns a URL that has access to archive state.
next_etherscan_api_key
Returns the next etherscan api key.
next_http_archive_rpc_url
Returns an HTTP URL that has access to archive state
next_http_rpc_endpoint
Returns the next mainnet rpc URL in inline
next_rpc_endpoint
Returns the next HTTP RPC URL.
next_url ๐Ÿ”’
next_url_inner ๐Ÿ”’
next_ws_archive_rpc_url
Returns a websocket URL that has access to archive state
next_ws_endpoint
Returns the next WS RPC URL.
next_ws_rpc_endpoint
Returns the next mainnet rpc URL in inline
parse_rpc_quantity ๐Ÿ”’
rpc_endpoints
the RPC endpoints used during tests
spawn_canonical_monad_system_rpc
Spawns an RPC proxy that presents one transaction as a canonical Monad protocol envelope.
spawn_rpc_proxy_canned_method
Spawns an RPC proxy that answers method with result instead of forwarding it upstream.
spawn_rpc_proxy_internal_error_after
Spawns an RPC proxy that returns a JSON-RPC internal error for method after forwarding successful_calls requests.
spawn_rpc_proxy_method_not_found_before
Spawns an RPC proxy that returns method-not-found for the first unavailable_calls requests to method.
spawn_rpc_proxy_rejecting_method ๐Ÿ”’
spawn_rpc_proxy_rejecting_method_after
Spawns an RPC proxy that rejects method after forwarding successful_calls requests.
spawn_rpc_proxy_rejecting_method_when_enabled
Spawns an RPC proxy whose rejection of method can be enabled after startup.