Get Latest Mined XRP (Ripple) Block

Through this endpoint customers can fetch the last mined XRP block in the blockchain, along with its details. These could include the hash of the specific, the previous and the next block, its transactions count, its height, etc.

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

GET /blockchain-data/xrp/{network}/blocks/last

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

    Example : testnet
    Possible Values : mainnet testnet

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 : f9b304b7933ef298142fdd58ad2dec414a5267dcbbd8a4fe9fc2c0a5f9dde050
      • 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 : 15975748
      • Required
        previousBlockHash string

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

        Example : de9f9e5b68a1322a16f0d1217cf31765e9101764e6e2f3c7aa058b8c641da37a
      • Required
        timestamp integer

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

        Example : 1616430182
      • Required
        transactionsCount integer

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

        Example : 1
      • Required
        totalCoins object
        • Required
          amount string

          Defines the amount of all coins.

          Example : 22.0012
        • Required
          unit string

          Defines the unit of the amount of all coins.

          Example : XRP
      • Required
        totalFees object
        • Required
          amount string

          Defines the amount of all fees.

          Example : 0.00001
        • Required
          unit string

          Defines the unit of the amount of all fees.

          Example : XRP
Try it out

Request Example

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": "f9b304b7933ef298142fdd58ad2dec414a5267dcbbd8a4fe9fc2c0a5f9dde050",
            "blockHeight": 15975748,
            "previousBlockHash": "de9f9e5b68a1322a16f0d1217cf31765e9101764e6e2f3c7aa058b8c641da37a",
            "timestamp": 1616430182,
            "transactionsCount": 1,
            "totalCoins": {
                "amount": "22.0012",
                "unit": "XRP"
            "totalFees": {
                "amount": "0.00001",
                "unit": "XRP"