Get XRP (Ripple) Block Details By Block Height

Through this endpoint customers can obtain basic information about a given XRP block (a block on the XRP blockchain), specifically by using the height parameter. These block details could include the hash of the specific, the previous and the next block, its transactions count, etc.

Since XRP is a different blockchain than Bitcoin and Ethereum, it isn't unified.

Single Result - This endpoint returns only one single result. GET /blockchain-data/xrp-specific/{network}/blocks/height/{blockHeight}

Path Parameters

  • 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", are test networks.

    Example : testnet
    Possible Values : mainnet testnet
  • Required
    blockHeight string

    Represents the number of blocks in the blockchain preceding this specific block. Block numbers have no gaps. A blockchain usually starts with block 0 called the "Genesis block".

    Example : 15886156

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.

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 : 2.0
  • 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 : You can add any text here
  • Required
    data object
    • Required
      item object
      • Required
        blockHash string

        Represents the hash of the block, which is its unique identifier. It represents a cryptographic digital fingerprint made by hashing the block header twice through the SHA256 algorithm.

        Example : 1ab0614d2a438da8b23086cbceef7d443edbd295d9c7619fc8a19c7618bc22c9
      • Required
        blockHeight integer

        Represents the number of blocks in the blockchain preceding this specific block. Block numbers have no gaps. A blockchain usually starts with block 0 called the "Genesis block".

        Example : 15886156
      • Required
        nextBlockHash string

        Represents the hash of the next block. When this is the last block of the blockchain this value will be an empty string.

        Example : 738cf04b9e32826395a8445aa44ec6bbb83f2cc296d94201625f3a3d6ff85a5a
      • Required
        previousBlockHash string

        Represents the hash of the previous block, also known as the parent block.

        Example : dcf6ade36e1d5f30b3e52605692ff47123f290f4c8915cbf5a6b7c3541f2354e
      • Required
        timestamp integer

        Defines the exact date/time when this block was mined in Unix Timestamp.

        Example : 1616069434
      • Required
        totalCoins object

        Represents the total Coins of the block as a string.

        • Required
          amount string

          Represents the total amount of all Coins of the block as a string.

          Example : 22.0012
        • Required
          unit string

          Represents the unit of total Coins of the block as a string.

          Example : Drops
      • Required
        totalFees object

        Defines the total fees included in the specific block.

        • Required
          amount string

          Defines the amount of all fees included in the specific block.

          Example : 0.004487
        • Required
          unit string

          Defines the unit of all fees included in the specific block.

          Example : XRP
      • Required
        transactionsCount integer

        Represents the total number of all transactions as part of this block.

        Example : 0

Credits Cost : 5 Credits For 1 Result(s)

Try it out

Request Example

GET
https://rest.cryptoapis.io/v2/blockchain-data/xrp-specific/testnet/blocks/height/15886156
Headers
Host: https://rest.cryptoapis.io/v2
Content-Type: application/json
X-API-Key: my-api-key

Response Example

{
    "apiVersion": "2.0",
    "requestId": "601c1710034ed6d407996b30",
    "context": "You can add any text here",
    "data": {
        "item": {
            "blockHash": "1ab0614d2a438da8b23086cbceef7d443edbd295d9c7619fc8a19c7618bc22c9",
            "blockHeight": 15886156,
            "nextBlockHash": "738cf04b9e32826395a8445aa44ec6bbb83f2cc296d94201625f3a3d6ff85a5a",
            "previousBlockHash": "dcf6ade36e1d5f30b3e52605692ff47123f290f4c8915cbf5a6b7c3541f2354e",
            "timestamp": 1616069434,
            "totalCoins": {
                "amount": "22.0012",
                "unit": "Drops"
            },
            "totalFees": {
                "amount": "0.004487",
                "unit": "XRP"
            },
            "transactionsCount": 0
        }
    }
}