List XRP (Ripple) Transactions By Block Hash

This endpoint will list transactions by an attribute blockHash. The transactions listed will detail additional information such as hash, addresses, time of creation in Unix timestamp, etc.

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

List of Results - This endpoint returns multiple objects which means pagination is applicable. GET /blockchain-data/xrp-specific/{network}/blocks/hash/{blockHash}/transactions

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

    Example : testnet
    Possible Values : mainnet testnet
  • 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 : 14754656235f865a74eba27791fd41a47bdfe07fe811ff6d78f53db32e129e39

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
    limit integer

    Defines how many items should be returned in the response per page basis.

    Default : 50
    Example : 50
  • Optional
    offset integer

    The starting index of the response items, i.e. where the response should start listing the returned items.

    Default : 0
    Example : 0

Response schema

200 400 401 402 403 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
      limit integer

      Defines how many items should be returned in the response per page basis.

      Example : 50
    • Required
      offset integer

      The starting index of the response items, i.e. where the response should start listing the returned items.

      Example : 0
    • Required
      total integer

      Defines the total number of items returned in the response.

      Example : 100
    • Required
      items array
      Example : Array ( )
      • Optional
        additionalData string

        Represents any additional data that may be needed.

        Example : r4CmvbkDWGt9AZmkfuubmiSdsxGZFxAKBY
      • Optional
        destinationTag integer
        Example : 3999472835
      • Required
        index integer

        Represents the index position of the transaction in the specific block.

        Example : 3
      • Required
        minedInBlockHeight integer

        Represents the hight of the block where this transaction was mined/confirmed for first time. The height is defined as the number of blocks in the blockchain preceding this specific block.

        Example : 15971358
      • Required
        offer object
        • Required
          amount string

          Defines the amount of the offer.

          Example : 8.2365
        • Required
          unit string

          Defines the unit of the offer.

          Example : XRP
      • Required
        recipients array

        Represents an object of addresses that receive the transactions.

        • Required
          address string

          Represents the hash of the address that receives the funds.

          Example : rNUY3X3HovAXuTesTbMh8PAX6CM5V2RzMY
        • Required
          amount string

          Defines the amount of the received funds as a string.

          Example : 0.0001
      • Required
        senders array

        Represents an object of addresses that provide the funds.

        • Required
          address string

          Represents the hash of the address that provides the funds.

          Example : rPmPErQe4g9725pcNxJpuvKkdqTESTQ6Tu
        • Required
          amount string

          Represents the total amount sent by this address including the fee.

          Example : 0.0001
      • Required
        sequence integer

        Defines the transaction input's sequence as an integer, which is is used when transactions are replaced with newer versions before LockTime.

        Example : 32568
      • Required
        status string

        Defines the status of the transaction.

        Example : tesSUCCESS
      • Required
        timestamp integer

        Defines the exact date/time in Unix Timestamp when this transaction was mined, confirmed or first seen in Mempool, if it is unconfirmed.

        Example : 236589
      • Required
        transactionHash string

        Represents the same as transactionId for account-based protocols like Ethereum, while it could be different in UTXO-based protocols like Bitcoin. E.g., in UTXO-based protocols hash is different from transactionId for SegWit transactions.

        Example : ba3bc1337071c8e73b441fe12a1911f4365d7ea82cace7c8ecba3ee9f364978b
      • Required
        type string

        Defines the type of the transaction.

        Example : Payment
      • Required
        fee object
        • Required
          amount string

          Defines the amount of the fee.

          Example : 2.0325
        • Required
          unit string

          Defines the unit of the fee.

          Example : XRP
      • Required
        receive object
        • Required
          amount string

          Defines the received amount.

          Example : 6.2354
        • Required
          unit string

          Defines the unit of the received amount.

          Example : XRP
      • Required
        value object
        • Required
          amount string

          Defines the amount of the value.

          Example : 22.023
        • Required
          unit string

          Defines the unit of the value.

          Example : XRP

Credits Cost : 100 Credits For 1 Result(s)

Try it out

Request Example

GET
https://rest.cryptoapis.io/blockchain-data/xrp-specific/testnet/blocks/hash/14754656235f865a74eba27791fd41a47bdfe07fe811ff6d78f53db32e129e39/transactions?context=yourExampleString&limit=50&offset=0
Headers
Content-Type: application/json
X-API-Key: my-api-key

Response Example

{
    "apiVersion": "2023-04-25",
    "requestId": "601c1710034ed6d407996b30",
    "context": "yourExampleString",
    "data": {
        "limit": 50,
        "offset": 0,
        "total": 100,
        "items": [
            {
                "additionalData": "r4CmvbkDWGt9AZmkfuubmiSdsxGZFxAKBY",
                "destinationTag": 3999472835,
                "index": 3,
                "minedInBlockHeight": 15971358,
                "offer": {
                    "amount": "8.2365",
                    "unit": "XRP"
                },
                "recipients": [
                    {
                        "address": "rNUY3X3HovAXuTesTbMh8PAX6CM5V2RzMY",
                        "amount": "0.0001"
                    }
                ],
                "senders": [
                    {
                        "address": "rPmPErQe4g9725pcNxJpuvKkdqTESTQ6Tu",
                        "amount": "0.0001"
                    }
                ],
                "sequence": 32568,
                "status": "tesSUCCESS",
                "timestamp": 236589,
                "transactionHash": "ba3bc1337071c8e73b441fe12a1911f4365d7ea82cace7c8ecba3ee9f364978b",
                "type": "Payment",
                "fee": {
                    "amount": "2.0325",
                    "unit": "XRP"
                },
                "receive": {
                    "amount": "6.2354",
                    "unit": "XRP"
                },
                "value": {
                    "amount": "22.023",
                    "unit": "XRP"
                }
            }
        ]
    }
}