Skip to main content
PATCH
/
platform
/
admin
/
blockchains
/
gas-station-defaults
cURL
curl --request PATCH \
  --url https://api.example.com/platform/admin/blockchains/gas-station-defaults \
  --header 'Content-Type: application/json' \
  --data '
{
  "blockchainId": 42,
  "minimumGasBalance": 0.25,
  "maxGasBalance": 10,
  "refillAmount": 2.5,
  "maxRefillAmount": 5
}
'
{
  "isSuccess": true,
  "isFailure": false,
  "error": null,
  "value": {
    "id": 42,
    "name": "Example"
  }
}

Query Parameters

api-version
string | null

Body

application/json

Request to update default gas station thresholds for a blockchain network.

blockchainId
integer<int64>

Identifier of the blockchain to apply the defaults to.

Example:

42

minimumGasBalance
number<decimal>

Minimum balance that triggers a refill operation.

Example:

0.25

maxGasBalance
number<decimal>

Maximum balance allowed after a refill.

Example:

10

refillAmount
number<decimal>

Default amount of gas to add during a refill.

Example:

2.5

maxRefillAmount
number<decimal>

Maximum amount of gas that can be added in a single refill.

Example:

5

Response

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:
{ "success": true }