Get Transaction Details By Transaction ID From Callback

This endpoint creates a shortcut to obtain information from Blockchain data by going through Blockchain Events and a specific Event Subscription. It provides data for a specific transaction from the Event it takes part in by providing the transactionId attribute. It applies only for Events related to that user.

Single Result - This endpoint returns only one single result. GET /blockchain-events/{blockchain}/{network}/transactions/{transactionId}

Path Parameters

  • Required
    blockchain string

    Represents the specific blockchain protocol name, e.g. Ethereum, Bitcoin, etc.

    Example : bitcoin
    Possible Values : bitcoin ethereum bitcoin-cash litecoin dash dogecoin zcash ethereum-classic binance-smart-chain zilliqa xrp tron
  • 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 ropsten mordor nile
  • Required
    transactionId string

    Represents the unique identifier of a transaction, i.e. it could be transactionId in UTXO-based protocols like Bitcoin, and transaction hash in Ethereum blockchain.

    Example : 8888f6c8168ff69aaf6438ab185c690e8c76c63e5f9c472c1c86f08406ea74f2

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

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 : 2021-03-20
  • 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
      item object
      • Required
        index integer

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

        Example : 44
      • 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 : 00000000cc8c79e1a80d14873ee7e319f8d2525354be26ace50796444a1e0764
      • 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 : 2105197
      • Required
        recipients array

        Represents a list of recipient addresses with the respective amounts. In account-based protocols like Ethereum there is only one address in this list.

        • Required
          address string

          The address which receives this transaction. In UTXO-based protocols like Bitcoin there could be several senders while in account-based protocols like Ethereum there is always only one recipient.

          Example : 2NGHH9qxCADY5eTNFUKobi1xiMWoW6FYSCd
        • Required
          amount string

          Represents the amount received to this address.

          Example : 0.00001600
      • Required
        senders array

        Represents a list of sender addresses with the respective amounts. In account-based protocols like Ethereum there is only one address in this list.

        • Required
          address string

          Represents the address which sends this transaction. In UTXO-based protocols like Bitcoin there could be several senders while in account-based protocols like Ethereum there is always only one sender.

          Example : mtFYoSowT3i649wnBDYjCjewenh8AuofQb
        • Required
          amount string

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

          Example : 0.00002000
      • 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 : 1637751304
      • 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 : 8888f6c8168ff69aaf6438ab185c690e8c76c63e5f9c472c1c86f08406ea74f2
      • Required
        fee object
        • Required
          amount string

          When isConfirmed is True - Defines the amount of the transaction fee When isConfirmed is False - For ETH-based blockchains this attribute represents the max fee value.

          Example : 0.00000300
        • Required
          unit string

          Defines the unit of the fee.

          Example : BTC
      • Required
        isConfirmed boolean

        Represents the state of the transaction whether it is confirmed or not confirmed.

        Example : True
      • Required
        blockchainSpecific object One Of
        object
        • Required
          locktime integer

          Represents the time at which a particular transaction can be added to the blockchain.

          Example : 0
        • Required
          size integer

          Represents the total size of this transaction.

          Example : 223
        • Required
          vSize integer

          Represents the virtual size of this transaction.

          Example : 223
        • Required
          version integer

          Represents the transaction version number.

          Example : 2
        • Required
          vin array

          Represents the transaction inputs.

          • Required
            addresses array

            2N5PcdirZUzKF9bWuGdugNuzcQrCbBudxv1

            Example : mtFYoSowT3i649wnBDYjCjewenh8AuofQb
          • Optional
            coinbase string

            Represents the coinbase hex.

            Example : 0399991d20706f6f6c2e656e6a6f79626f646965732e636f6d20393963336532346234374747a53e994c4a000001
          • Required
            scriptSig object

            Specifies the required signatures.

            • Required
              asm string

              The asm strands for assembly, which is the symbolic representation of the Bitcoin's Script language op-codes.

              Example : 304402202eb16569b2c1f5898c1ab5b23d41e0783ae37943bc6745784fb810f955deafbd02203562872c3a3c7c2423a752f27ba6ae01e66ffc56fe8e463a90498dd5659f8d90
            • Required
              hex string

              Represents the hex of the public key of the address.

              Example : 47304402202eb16569b2c1f5898c1ab5b23d41e0783ae37943bc6745784fb810f955deafbd02203562872c3a3c7c2423a752f27ba6ae01e66ffc56fe8e463a90498dd5659f8d90012102275753690ab58df3c923001e94d407e30b03e60b1f2461729a1dd4f37ebe2469
            • Required
              type string

              Represents the script type of the reference transaction identifier.

              Example : pubkeyhash
          • Required
            sequence integer

            Represents the script sequence number.

            Example : 4294967295
          • Optional
            txid string

            Represents the reference transaction identifier.

            Example : fd572c11a7e3eb39251746a9b2f4f53d5218b7cd0fb6e82ba48e678211d677c9
          • Required
            txinwitness array

            Represents an array hex-encoded witness data (if there is any) as strings.

            Example : mtFYoSowT3i649wnBDYjCjewenh8AuofQb
          • Optional
            value string

            Represents the sent/received amount.

            Example : 0.00002
          • Optional
            vout integer

            It refers to the index of the output address of this transaction. The index starts from 0.

            Example : 1
        • Required
          vout array

          Represents the transaction outputs.

          • Required
            isSpent boolean

            Defines whether the output is spent or not.

            Example : False
          • Required
            scriptPubKey object

            Represents the script public key.

            • Required
              addresses array

              Represents the addresses which send the amount.

              Example : 2MzakdGTEp8SMWEHKwKM4HYv6uNCBXtHpkV
            • Required
              asm string

              Represents the assembly of the script public key of the address.

              Example : OP_HASH160 507a5bd8cac1d9efdf4c0a4bfacb3e0abb4f8d15 OP_EQUAL
            • Required
              hex string

              Represents the hex of the script public key of the address.

              Example : a914507a5bd8cac1d9efdf4c0a4bfacb3e0abb4f8d1587
            • Required
              reqSigs integer

              Represents the required signatures.

              Example : 1
            • Required
              type string

              Represents the script type.

              Example : scripthash
          • Required
            value string

            Represents the sent/received amount.

            Example : 0.00014400

Credits Cost : 5 Credits For 1 Result(s)

Try it out

Request Example

GET
https://rest.cryptoapis.io/blockchain-events/bitcoin/testnet/transactions/8888f6c8168ff69aaf6438ab185c690e8c76c63e5f9c472c1c86f08406ea74f2?context=yourExampleString
Headers
Content-Type: application/json
X-API-Key: my-api-key

Response Example

{
    "apiVersion": "2021-03-20",
    "requestId": "601c1710034ed6d407996b30",
    "context": "yourExampleString",
    "data": {
        "item": {
            "index": 44,
            "minedInBlockHash": "00000000cc8c79e1a80d14873ee7e319f8d2525354be26ace50796444a1e0764",
            "minedInBlockHeight": 2105197,
            "recipients": [
                {
                    "address": "2NGHH9qxCADY5eTNFUKobi1xiMWoW6FYSCd",
                    "amount": "0.00001600"
                }
            ],
            "senders": [
                {
                    "address": "mtFYoSowT3i649wnBDYjCjewenh8AuofQb",
                    "amount": "0.00002000"
                }
            ],
            "timestamp": 1637751304,
            "transactionHash": "8888f6c8168ff69aaf6438ab185c690e8c76c63e5f9c472c1c86f08406ea74f2",
            "fee": {
                "amount": "0.00000300",
                "unit": "BTC"
            },
            "isConfirmed": true,
            "blockchainSpecific": {
                "locktime": 0,
                "size": 223,
                "vSize": 223,
                "version": 2,
                "vin": [
                    {
                        "addresses": [
                            "mtFYoSowT3i649wnBDYjCjewenh8AuofQb"
                        ],
                        "coinbase": "0399991d20706f6f6c2e656e6a6f79626f646965732e636f6d20393963336532346234374747a53e994c4a000001",
                        "scriptSig": {
                            "asm": "304402202eb16569b2c1f5898c1ab5b23d41e0783ae37943bc6745784fb810f955deafbd02203562872c3a3c7c2423a752f27ba6ae01e66ffc56fe8e463a90498dd5659f8d90",
                            "hex": "47304402202eb16569b2c1f5898c1ab5b23d41e0783ae37943bc6745784fb810f955deafbd02203562872c3a3c7c2423a752f27ba6ae01e66ffc56fe8e463a90498dd5659f8d90012102275753690ab58df3c923001e94d407e30b03e60b1f2461729a1dd4f37ebe2469",
                            "type": "pubkeyhash"
                        },
                        "sequence": 4294967295,
                        "txid": "fd572c11a7e3eb39251746a9b2f4f53d5218b7cd0fb6e82ba48e678211d677c9",
                        "txinwitness": [
                            "mtFYoSowT3i649wnBDYjCjewenh8AuofQb"
                        ],
                        "value": "0.00002",
                        "vout": 1
                    }
                ],
                "vout": [
                    {
                        "isSpent": false,
                        "scriptPubKey": {
                            "addresses": [
                                "2MzakdGTEp8SMWEHKwKM4HYv6uNCBXtHpkV"
                            ],
                            "asm": "OP_HASH160 507a5bd8cac1d9efdf4c0a4bfacb3e0abb4f8d15 OP_EQUAL",
                            "hex": "a914507a5bd8cac1d9efdf4c0a4bfacb3e0abb4f8d1587",
                            "reqSigs": 1,
                            "type": "scripthash"
                        },
                        "value": "0.00014400"
                    }
                ]
            }
        }
    }
}