Function ic_evm_utils::request::request

source ·
pub async fn request(
    rpc_service: RpcService,
    json_rpc_payload: String,
    max_response_bytes: u64,
    evm_rpc: EvmRpcCanister,
) -> RequestResult
Expand description

Make a arbitrary request to EVM RPC provider through the EVM RPC canister.

§Arguments

  • rpc_service - The RPC service used to interact with the EVM.
  • json_rpc_payload - The JSON-RPC payload to send.
  • max_response_bytes - The maximum number of response bytes to accept.
  • evm_rpc - The EVM RPC canister.

§Returns

The result of the request.