Function relayer_rpc

Source
pub async fn relayer_rpc<J, RR, TR, NR, NFR, SR, TCR, PR>(
    relayer_id: String,
    request: Value,
    state: ThinDataAppState<J, RR, TR, NR, NFR, SR, TCR, PR>,
) -> Result<HttpResponse, ApiError>
Expand description

Performs a JSON-RPC call through a specific relayer.

§Arguments

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

§Returns

The result of the JSON-RPC call.