openzeppelin_relayer::api::controllers::relayer

Function get_relayer_balance

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

Retrieves the balance of a specific relayer.

§Arguments

  • relayer_id - The ID of the relayer to check balance for.
  • state - The application state containing the relayer repository.

§Returns

The balance of the specified relayer.