hopr_chain_rpc::client

Function create_rpc_client_to_anvil

Source
pub fn create_rpc_client_to_anvil<R: HttpPostRequestor>(
    backend: R,
    anvil: &AnvilInstance,
    signer: &ChainKeypair,
) -> Arc<SignerMiddleware<Provider<JsonRpcProviderClient<R, SimpleJsonRpcRetryPolicy>>, Wallet<SigningKey>>>
Expand description

Used for testing. Creates Ethers RPC client to the local Anvil instance.