openzeppelin_relayer::api::controllers::relayer

Function relayer_rpc

Source
pub async fn relayer_rpc(
    relayer_id: String,
    request: JsonRpcRequest<NetworkRpcRequest>,
    state: ThinData<AppState<JobProducer>>,
) -> Result<HttpResponse, ApiError>
Expand description

Performs a JSON-RPC call through a specific relayer.

§Arguments

  • relayer_id - The ID of the relayer.
  • request - The JSON-RPC request.
  • state - The application state containing the relayer repository.

§Returns

The result of the JSON-RPC call.