Get Fee Recommendations

Through this endpoint customers can obtain fee recommendations. Our fees recommendations are based on Mempool data which makes them much more accurate than fees based on already mined blocks. Calculations are done in real time live. Using this endpoint customers can get gas price for Ethereum, fee per byte for Bitcoin, etc.

Single Result - This endpoint returns only one single result. GET /blockchain-data/{blockchain}/{network}/mempool/fees

Path Parameters

  • Required
    blockchain string

    Represents the specific blockchain protocol name, e.g. Ethereum, Bitcoin, etc.

    Example : bitcoin
    Possible Values : bitcoin ethereum ethereum-classic bitcoin-cash dogecoin dash litecoin binance-smart-chain zcash xrp
  • Required
    network string

    Represents the name of the blockchain network used; blockchain networks are usually identical as technology and software, but they differ in data, e.g. - "mainnet" is the live network with actual data while networks like "testnet", "goerli" are test networks.

    Example : testnet
    Possible Values : mainnet testnet mordor sepolia

Query parameters

  • Optional
    context string

    In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. context is specified by the user.

    Example : yourExampleString

Response schema

200 400 401 402 403 404 409 415 422 429 500
HTTP Status Code: 200
Content-Type: application/json

The request has been successful.

  • Object :

  • Required
    apiVersion string

    Specifies the version of the API that incorporates this endpoint.

    Example : 2023-04-25
  • Required
    requestId string

    Defines the ID of the request. The requestId is generated by Crypto APIs and it's unique for every request.

    Example : 601c1710034ed6d407996b30
  • Optional
    context string

    In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. context is specified by the user.

    Example : yourExampleString
  • Required
    data object
    • Required
      item object
      • Required
        unit string

        Currency unit

        Example : BTC
      • Required
        fast string

        Fast fee per byte calculated from unconfirmed transactions

        Example : 0.000025
      • Required
        slow string

        Slow fee per byte calculated from unconfirmed transactions

        Example : 0.000010
      • Required
        standard string

        Standard fee per byte calculated from unconfirmed transactions

        Example : 0.000015
      • Required
        feeCushionMultiplier string

        Fee cushion multiplier used to multiply the base fee

        Example : 1.2

Credits Cost : 500 Credits For 1 Result(s)

Try it out

Request Example

GET
https://rest.cryptoapis.io/blockchain-data/bitcoin/testnet/mempool/fees?context=yourExampleString
Headers
Content-Type: application/json
X-API-Key: my-api-key

Response Example

{
    "apiVersion": "2023-04-25",
    "requestId": "601c1710034ed6d407996b30",
    "context": "yourExampleString",
    "data": {
        "item": {
            "unit": "BTC",
            "fast": "0.000025",
            "slow": "0.000010",
            "standard": "0.000015",
            "feeCushionMultiplier": "1.2"
        }
    }
}