Перейти к содержанию

Fee Info ETH-like service

Server address: https://cloud.spatium.net/fee-info-eth-like/v1

Swagger

For this server address, the following blockchain (chain) fee information is available:

  • eth;
  • ftm;
  • avax;
  • matic;
  • bsc;
  • etc;
  • op.

Transaction fee

Information about the fee size for sending transactions or smart contract execution on the blockchain network. The service provides three fee values:

  • slow: less fee value, more transaction confirmation time;
  • normal: medium fee value, medium transaction confirmation time;
  • fast: more fee value, less transaction confirmation time.

Fee info caching

The end user (client) receives a transaction fee from the service in the form of static JSON files.

Historical

Swagger ETH-like Fee Info History

Request structure

/static/fee-info-history-{period}-{chain}-{network}.json

Response structure

[
  {
    "date": number,
    "feeInfo": {
      "fast": string,
      "normal": string,
      "slow": string
    }
  }
]

Request example

https://cloud.spatium.net/fee-info-eth-like/v1/static/fee-info-history-day-eth-livenet.json

Response example

fee-info-history-day-eth-livenet.json
[
    {
        "date": 1688124604,
        "feeInfo": {
            "fast": "26000000000",
            "normal": "23000000000",
            "slow": "23000000000"
        }
    },
    {
        "date": 1688126400,
        "feeInfo": {
            "fast": "29000000000",
            "normal": "29000000000",
            "slow": "29000000000"
        }
    },
    {
        "date": 1688128201,
        "feeInfo": {
            "fast": "36000000000",
            "normal": "33000000000",
            "slow": "32000000000"
        }
    },
    {
        "date": 1688130001,
        "feeInfo": {
            "fast": "44000000000",
            "normal": "39000000000",
            "slow": "39000000000"
        }
    },
    {
        "date": 1688131800,
        "feeInfo": {
            "fast": "34000000000",
            "normal": "32000000000",
            "slow": "32000000000"
        }
    }
]

Latest

Swagger ETH-like Fee Info Latest

Request structure

/static/fee-info-{network}.json

Response structure

{
  "{chain}": {
    "date": number,
    "feeInfo": {
      "fast": string,
      "normal": string,
      "slow": string
    }
  },
  "{chain}": {
    "date": number,
    "feeInfo": {
      "fast": string,
      "normal": string,
      "slow": string
    }
  }
}

Request example

https://cloud.spatium.net/fee-info-eth-like/v1/static/fee-info-livenet.json

Response example

fee-info-livenet.json
{
  "matic": {
    "date": 1688586661,
    "feeInfo": {
      "fast": "105700000000",
      "normal": "105200000000",
      "slow": "80700000000"
    }
  },
  "eth": {
    "date": 1688586661,
    "feeInfo": {
      "fast": "49000000000",
      "normal": "48000000000",
      "slow": "48000000000"
    }
  },
  "avax": {
    "date": 1688586661,
    "feeInfo": {
      "fast": "27500000000000000000",
      "normal": "25000000000000000000",
      "slow": "22500000000000000000"
    }
  },
  "bsc": {
    "date": 1688586661,
    "feeInfo": {
      "fast": "3000000000",
      "normal": "3000000000",
      "slow": "3000000000"
    }
  },
  "ftm": {
    "date": 1688586661,
    "feeInfo": {
      "fast": "53399300000",
      "normal": "50000000000",
      "slow": "50000000000"
    }
  }
}