Skip to main content
GET
/
platform
/
admin
/
gas_station_admin
/
{walletTenantId}
/
get_wallet_gas_station
Get wallet gas station configuration
curl --request GET \
  --url https://api.example.com/platform/admin/gas_station_admin/{walletTenantId}/get_wallet_gas_station
{
  "isSuccess": true,
  "isFailure": false,
  "error": null,
  "value": {
    "id": 42,
    "name": "Example"
  }
}

Description

Fetches the complete gas station configuration for a wallet tenant, including its gas station status and auto-refuel settings.

Input

  • walletTenantId (long, required) — Route parameter identifying the wallet tenant to query.

Output

Returns a WalletGasStationConfigurationClientModel containing:
  • id (long) — Wallet tenant identifier.
  • isGasStation (bool) — Whether this wallet is configured as a gas station.
  • autoRefuelIsEnabled (bool) — Indicates if auto-refuel is active.
  • autoRefuelMinimumBalance (decimal) — Balance threshold triggering auto-refuel (native chain currency).
  • autoRefuelRefuelAmount (decimal) — Amount added during auto-refuel operations (native chain currency).

Examples

Request
GET /api/platform/admin/gasstation/1001/configuration
Response (200 OK)
{
  "data": {
    "id": 1001,
    "isGasStation": true,
    "autoRefuelIsEnabled": true,
    "autoRefuelMinimumBalance": 0.25,
    "autoRefuelRefuelAmount": 1.5
  },
  "success": true
}

Errors

  • 400 Bad Request: Invalid wallet tenant ID format.
  • 401 Unauthorized: Caller is not authenticated.
  • 403 Forbidden: Caller lacks permission to view gas station configuration.
  • 404 Not Found: Wallet tenant with the specified ID does not exist.
  • 500 Internal Server Error: An unexpected server error occurred.

Notes

Requires platform administrator privileges. Returns default configuration values if no custom configuration has been set for the wallet tenant.

Path Parameters

walletTenantId
integer<int64>
required

Identifier of the wallet tenant to inspect.

Query Parameters

api-version
string | null

Response

Gas station configuration successfully retrieved.

Wrapper for API operation results containing success status, error information, and return value.

isSuccess
boolean

True if the operation completed successfully, false otherwise.

Example:

true

isFailure
boolean

True if the operation failed, false otherwise.

Example:

false

error
object

Error information returned when the operation fails.

Example:
{
"code": "ValidationError",
"message": "The request parameters failed validation.",
"info": [
"The Name field is required.",
"The Id field must be greater than 0."
]
}
value
object

The result value returned when the operation is successful.

Example:
{
"walletTenantId": 1001,
"walletBalance": 12.34,
"walletNetwork": "Ethereum Sepolia",
"walletCoinName": "ETH",
"walletNetworkIcon": "iVBORw0KGgoAAAANSUhEUgAAAAUA",
"walletAddress": "0xAbCDEF0123456789abcdef0123456789AbCdEf0",
"walletName": "Treasury Wallet",
"walletId": 501,
"blockchainId": 42,
"isGasStation": true,
"gasStationWalletCustodianId": 7,
"autoRefuelIsEnabled": true,
"autoRefuelSourceWalletTenantId": 2001,
"autoRefuelMinimumBalance": 0.25,
"autoRefuelRefuelAmount": 1.5,
"connectedGasStationWalletsCount": 3,
"connectedGasStationWalletsWithNestedCount": 5
}