BTC Accelerator API Documentation

Overview

The BTC Accelerator API allows users to check the status of Bitcoin transactions by providing a transaction ID (TXID). The API will return a JSON response containing transaction details and cost information.

Base URL

https://www.btcaccelerator.io/apitx.php?txid={txid}

Endpoint

Get Transaction Status

  • Method: GET
  • URL: https://www.btcaccelerator.io/apitx.php?txid={txid}
  • Parameters:
    • txid: (string) The transaction ID for which you want to check the status.

Example Request

GET https://www.btcaccelerator.io/apitx.php?txid=c6bf8defda88fb7e4b8c48324cdf4eec75a3781564284059b6dfb79267813476

Example Response

Success Response

{
    "status": "success",
    "filename": "tmp/c6bf8defda88fb7e4b8c48324cdf4eec75a3781564284059b6dfb79267813476.json"
}

Data File URL

The API response includes a filename that points to a JSON file containing detailed transaction information:

https://www.btcaccelerator.io/tmp/c6bf8defda88fb7e4b8c48324cdf4eec75a3781564284059b6dfb79267813476.json

Transaction Data Structure

Once the filename is retrieved, you can fetch the transaction details using the following URL:

GET https://www.btcaccelerator.io/tmp/c6bf8defda88fb7e4b8c48324cdf4eec75a3781564284059b6dfb79267813476.json

Example Transaction Data Response

{
    "code": 0,
    "msg": "",
    "data": {
        "txid": "c6bf8defda88fb7e4b8c48324cdf4eec75a3781564284059b6dfb79267813476",
        "sumVByte": 169,
        "price": 3.53528004,
        "cost": 0.00059746,
        "originCost": 0.00074683,
        "prevByteList": [],
        "vByte": 169
    }
}

Response Fields

  • code: (integer) Response code indicating the success or failure of the request.
  • msg: (string) Message providing additional information.
  • data: (object) Contains the following fields:
    • txid: (string) The transaction ID.
    • sumVByte: (integer) The total virtual bytes of the transaction.
    • price: (float) The current price per byte.
    • cost: (float) The cost to accelerate the transaction.
    • originCost: (float) The original cost before acceleration.
    • prevByteList: (array) A list of previous byte costs.
    • vByte: (integer) The size of the transaction in virtual bytes.

Error Response

If the transaction has already been confirmed, the API will return the following response:

{
    "code": -6000011,
    "msg": "This transaction has been confirmed.",
    "data": null
}
  • code: (integer) -6000011 indicates that the transaction is confirmed.
  • msg: A message stating that the transaction has been confirmed.
  • data: (null) No additional data is provided.

 

For more information on how to use the BTC Accelerator API, please refer to this documentation. If you have any questions, feel free to reach out. [email protected]