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.

GET /blockchain-data/xrp/{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", "rinkeby" 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

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 : 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
      • Optional
        additionalData string

        Represents any additional data that may be needed.

        Example : r4CmvbkDWGt9AZmkfuubmiSdsxGZFxAKBY
      • Required
        index integer

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

        Example : 3
      • Required
        minedInBlockHash string

        Represents the hash of the block where this transaction was mined/confirmed for first time. The hash is defined as a cryptographic digital fingerprint made by hashing the block header twice through the SHA256 algorithm.

        Example : e8f6c4cfef0895ac6f8268cc6ecf0eb159eee4a249d78c344d1a832d4bdd645d
      • 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
        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

          Defines the amount of the sent funds as a string.

          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.

      • 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
        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
        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
Try it out

Request Example

GET
https://rest.cryptoapis.io/v2/blockchain-data/xrp/testnet/blocks/hash/14754656235f865a74eba27791fd41a47bdfe07fe811ff6d78f53db32e129e39/transactions
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": {
            "additionalData": "r4CmvbkDWGt9AZmkfuubmiSdsxGZFxAKBY",
            "index": 3,
            "minedInBlockHash": "e8f6c4cfef0895ac6f8268cc6ecf0eb159eee4a249d78c344d1a832d4bdd645d",
            "minedInBlockHeight": 15971358,
            "recipients": [
                {
                    "address": "rNUY3X3HovAXuTesTbMh8PAX6CM5V2RzMY",
                    "amount": "0.0001"
                }
            ],
            "senders": [
                {
                    "address": "rPmPErQe4g9725pcNxJpuvKkdqTESTQ6Tu",
                    "amount": "0.0001"
                }
            ],
            "sequence": 32568,
            "status": "",
            "timestamp": 236589,
            "transactionHash": "ba3bc1337071c8e73b441fe12a1911f4365d7ea82cace7c8ecba3ee9f364978b",
            "type": "Payment",
            "fee": {
                "amount": "2.0325",
                "unit": "XRP"
            },
            "offer": {
                "amount": "8.2365",
                "unit": "XRP"
            },
            "receive": {
                "amount": "6.2354",
                "unit": "XRP"
            },
            "value": {
                "amount": "22.023",
                "unit": "XRP"
            }
        }
    }
}