Skip to main content
POST
/
estimations
/
blockchain_interaction
/
deploy_gas_estimation
Estimates the gas cost for deploying a smart contract to a blockchain.
curl --request POST \
  --url https://api.example.com/estimations/blockchain_interaction/deploy_gas_estimation \
  --header 'Content-Type: application/json' \
  --data '
{
  "tokenConfigurationId": 1024,
  "gasStationWalletCustodianId": 42
}
'
{
  "isSuccess": true,
  "isFailure": false,
  "error": null,
  "value": {
    "id": 42,
    "name": "Example"
  }
}

Body

application/json

Request containing deployment parameters for gas estimation.

Request parameters for estimating gas costs of token deployment.

tokenConfigurationId
integer<int64>

Identifier of the token configuration to be deployed.

Example:

1024

gasStationWalletCustodianId
integer<int64>

Identifier of the gas station wallet custodian that will fund the deployment.

Example:

42

Response

200 - application/json

Gas estimation completed 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:
{ "gasEstimation": 2500000 }