Skip to main content
GET
/
tenant
/
{tenantId}
/
admin
/
blockchain
/
{blockchainId}
/
update
/
gas-station-defaults
Get Blockchain Gas Station Defaults
curl --request GET \
  --url https://api.example.com/tenant/{tenantId}/admin/blockchain/{blockchainId}/update/gas-station-defaults
{
  "isSuccess": true,
  "isFailure": false,
  "error": null,
  "value": {
    "id": 42,
    "name": "Example"
  }
}

Description

Fetches the default gas station configuration settings for a specific blockchain within a tenant’s environment, including balance thresholds and refill amounts.

Input

  • tenantId (long, required) - The unique identifier of the tenant.
  • blockchainId (long, required) - The unique identifier of the blockchain.

Output

Returns an UpdateGasStationDefaultsRequest containing the current gas station default settings.

Examples

Request
GET /api/tenant/1024/admin/blockchain/1/gasstation/defaults
Response (200 OK)
{
  "minGasBalance": "0.1",
  "maxGasBalance": "1.0",
  "refillAmount": "0.5",
  "maxRefillAmount": "2.0"
}

Errors

  • 400 Bad Request: Invalid tenant or blockchain identifier.
  • 401 Unauthorized: The caller is not authenticated.
  • 403 Forbidden: The caller is not authorized to view gas station defaults.
  • 404 Not Found: The tenant or blockchain could not be found.
  • 500 Internal Server Error: An unexpected server error occurred.

Notes

Gas station defaults control automatic wallet refill behavior for blockchain operations.

Path Parameters

tenantId
integer<int64>
required

The unique identifier of the tenant.

blockchainId
integer<int64>
required

The unique identifier of the blockchain.

Query Parameters

api-version
string | null

Response

Gas station defaults retrieved successfully.

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:
{
"blockchainId": 42,
"minimumGasBalance": 0.25,
"maxGasBalance": 10,
"refillAmount": 2.5,
"maxRefillAmount": 5
}