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

Fee Info BTC-like service

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

Swagger

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

  • btc;
  • ltc;
  • bch.

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 BTC-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-btc-like/v1/static/fee-info-history-day-btc-livenet.json

Response example

fee-info-history-day-btc-livenet.json
[
    {
        "date": 1689229770,
        "feeInfo": {
            "fast": "11.863",
            "normal": "7",
            "slow": "4"
        }
    },
    {
        "date": 1689229800,
        "feeInfo": {
            "fast": "11.863",
            "normal": "7",
            "slow": "4"
        }
    },
    {
        "date": 1689229830,
        "feeInfo": {
            "fast": "12.363",
            "normal": "7",
            "slow": "4"
        }
    },
    {
        "date": 1689231600,
        "feeInfo": {
            "fast": "11.364",
            "normal": "6",
            "slow": "4"
        }
    },
    {
        "date": 1689231630,
        "feeInfo": {
            "fast": "11.364",
            "normal": "6",
            "slow": "4"
        }
    }
]

Latest

Swagger BTC-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-btc-like/v1/static/fee-info-livenet.json

Response example

fee-info-livenet.json
{
  "ltc": {
    "date": 1689287970,
    "feeInfo": {
      "fast": "19.029",
      "normal": "10.006",
      "slow": "1.861"
    }
  },
  "bch": {
    "date": 1689287940,
    "feeInfo": {
      "fast": "2",
      "normal": "2",
      "slow": "2"
    }
  },
  "btc": {
    "date": 1689287970,
    "feeInfo": {
      "fast": "26.5",
      "normal": "15",
      "slow": "7"
    }
  }
}