Estimate Transaction Smart Fee

Through this endpoint, customers can estimate the approximate fee per kilobyte needed for a transaction to begin confirmation within the confirmationTarget blocks when possible. After which it will return the number of blocks for which the estimate is valid.

Single Result - This endpoint returns only one single result. GET /blockchain-data/{blockchain}/{network}/estimate-transaction-smart-fee

Path Parameters

  • Required
    blockchain string
    Example : bitcoin
    Possible Values : bitcoin litecoin dash
  • Required
    network string
    Example : testnet
    Possible Values : testnet mainnet

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
  • Optional
    confirmationTarget integer

    Integer representation of confirmation target in blocks that estimation will be valid for

    Example : 2
  • Optional
    estimateMode string

    String representation of the address

    Example : economical
    Possible Values : economical conservative

Response schema

200 400 401 402 403 409 415 422 429 500 501
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 : 2021-03-20
  • 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
        confirmationTarget integer

        Represents the confirmation target in blocks

        Example : 2
      • Required
        feeRate string

        Represents the Fee Rate value.

        Example : 0.00001
      • Required
        unit string

        Defines the fee unit.

        Example : BTC

Credits Cost : 10 Credits For 1 Result(s)

Try it out

Request Example

GET
https://rest.cryptoapis.io/blockchain-data/bitcoin/testnet/estimate-transaction-smart-fee?context=yourExampleString&confirmationTarget=2&estimateMode=economical
Headers
Content-Type: application/json
X-API-Key: my-api-key

Response Example

{
    "apiVersion": "2021-03-20",
    "requestId": "601c1710034ed6d407996b30",
    "context": "yourExampleString",
    "data": {
        "item": {
            "confirmationTarget": 2,
            "feeRate": "0.00001",
            "unit": "BTC"
        }
    }
}