chains

Estimates gas for a given on-ledger ISC request

Changed on
post/v1/chains/{chainID}/estimategas-onledger

Request

  • Base URL
    / (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /v1/chains/{chainID}/estimategas-onledger
  • Auth
    none declared

Path parameters

chainIDstring string required

ChainID (Bech32)

Request body

outputBytesstring string required

Serialized Output (Hex)

Example request

{
  "outputBytes": "outputBytes"
}

Response

ReceiptResponse

blockIndexinteger required
errorMessagestring string
gasBudgetstring string required

The gas budget (uint64 as string)

gasBurnedstring string required

The burned gas (uint64 as string)

gasFeeChargedstring string required

The charged gas fee (uint64 as string)

requestIndexinteger required
storageDepositChargedstring string required

Storage deposit charged (uint64 as string)

Example response

{
  "gasBurnLog": [
    {
      "code": 6,
      "gasBurned": 1
    },
    {
      "code": 6,
      "gasBurned": 1
    }
  ],
  "request": {
    "fungibleTokens": {
      "nfts": [
        "nfts",
        "nfts"
      ],
      "baseTokens": "baseTokens",
      "nativeTokens": [
        {
          "amount": "amount",
          "id": "id"
        },
        {
          "amount": "amount",
          "id": "id"
        }
      ]
    },
    "senderAccount": "senderAccount",
    "isOffLedger": true,
    "requestId": "requestId",
    "callTarget": {
      "contractHName": "contractHName",
      "functionHName": "functionHName"
    },
    "gasBudget": "gasBudget",
    "targetAddress": "targetAddress",
    "allowance": {
      "nfts": [
        "nfts",
        "nfts"
      ],
      "baseTokens": "baseTokens",
      "nativeTokens": [
        {
          "amount": "amount",
          "id": "id"
        },
        {
          "amount": "amount",
          "id": "id"
        }
      ]
    },
    "params": {
      "Items": [
        {
          "value": "value",
          "key": "key"
        },
        {
          "value": "value",
          "key": "key"
        }
      ]
    },
    "nft": {
      "owner": "owner",
      "metadata": "metadata",
      "id": "id",
      "issuer": "issuer"
    },
    "isEVM": true
  },
  "blockIndex": 1,
  "rawError": {
    "code": "code",
    "params": [
      "params",
      "params"
    ]
  },
  "requestIndex": 1,
  "storageDepositCharged": "storageDepositCharged",
  "gasFeeCharged": "gasFeeCharged",
  "errorMessage": "errorMessage",
  "gasBudget": "gasBudget",
  "gasBurned": "gasBurned"
}

Changes

    • breaking

      the response's property type changed from string to object, and format from string to no format for status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property to the response with the status

    • breaking

      the response's property type changed from string to object, and format from string to no format for status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property to the response with the status