Gas Stations

RefreshGasStationBalance

Changed on

Refresh a gas station's cached balance from its provider.

post/v2/vaults/{vault_id}/gasStations/{gas_station_id}:refreshGasStationBalance

Request

Path parameters

vault_idstring required
gas_station_idstring required

Request body

assetstring required

The asset whose balance should be refreshed.

Example request

{
  "asset": "assets/native.ethereum-mainnet"
}

Response

A successful response.

balancestring

The refreshed gas station balance.

balanceAssetstring

The asset of the refreshed balance.

referencedResourcesobject

A mapping of the referenced resources in the message. The key is the resource name and the value is the corresponding resource.

Example response

{
  "balanceAsset": "assets/native.ethereum-mainnet"
}

Changes