Get Wallet Transaction Details By Transaction ID

Through this endpoint users can obtain Wallet transaction information by providing a transactionId. Customers can receive information only for a transaction that has been made from their own wallet.

Single Result - This endpoint returns only one single result. GET /wallet-as-a-service/wallets/{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 litecoin bitcoin-cash ethereum-classic dogecoin dash zcash binance-smart-chain 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 : 3e081861494aed897e589cdeab5d9e628d985e571ed1c19896d1aa698cce9d80

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 : 21
      • Required
        isConfirmed boolean

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

        Example : True
      • Optional
        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 : 0000000000503b5200a935cfa9e7740783b5f2292aaad3bf273554abfb3d91ce
      • Optional
        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 : 1250283
      • Required
        recipients string

        String representation of the transaction to address

      • Required
        senders string

        String representation of the transaction from address

      • 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 : 1636972451
      • 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 : c58148bb37b9be020338e427784580b58e0b497ce32d7eddf812de6a1a0d3133
      • 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 : 3e081861494aed897e589cdeab5d9e628d985e571ed1c19896d1aa698cce9d80
      • 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.00003812
        • Required
          unit string
          Example : BTC
      • 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 : 591
        • Required
          vSize integer

          Represents the virtual size of this transaction.

          Example : 347
        • Required
          version integer

          Represents the transaction version number.

          Example : 2
        • Required
          vin array

          Object Array representation of transaction inputs

          • Required
            addresses array

            Represents the addresses which send/receive the amount.

            Example : 2NDxh6gwyx33zCxocteVXo9znPny1GrUuHF
          • Optional
            coinbase string

            Represents the coinbase hex.

            Example : 0399991d20706f6f6c2e656e6a6f79626f646965732e636f6d20393963336532346234374747a53e994c4a000001
          • Required
            scriptSig object

            Object representation of the script

            • Required
              asm string

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

              Example : 00148b3ed2c15710b61a43cb354a7e637dc6bbd448ce
            • Required
              hex string

              Represents the hex of the public key of the address.

              Example : 1600148b3ed2c15710b61a43cb354a7e637dc6bbd448ce
            • Required
              type string

              Represents the script type of the reference transaction identifier.

              Example : scripthash
          • Required
            sequence integer

            Represents the script sequence number.

            Example : 4294967295
          • Required
            txid string

            Represents the reference transaction identifier.

            Example : 48bd74754b71181d4d2092fc24477f89fa7dfea8059b140a179bac2267048832
          • Optional
            txinwitness array

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

            Example : 3045022100ee88c1b067d5756831343059a3632106b218ef158fe062725c69a2a21b1504af02207c95262daaefdf9c46f55e53cc42fa152bd874a5ea54dd155a4f2624782be1af01
          • Optional
            value string

            Represents the sent/received amount.

            Example : 0.00001681
          • Required
            vout integer

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

            Example : 0
        • Required
          vout array

          Represents the transaction outputs.

          • Required
            isSpent boolean

            Defines whether the output is spent or not.

            Example : False
          • Required
            scriptPubKey object

            Object representation of the script

            • Required
              addresses array

              Represents the addresses which send the amount.

              Example : 2NGHH9qxCADY5eTNFUKobi1xiMWoW6FYSCd
            • Required
              asm string

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

              Example : OP_HASH160 fcae5de86db6ca7121f44a0a01fd2d3b85137e07 OP_EQUA
            • Required
              hex string

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

              Example : a914fcae5de86db6ca7121f44a0a01fd2d3b85137e0787
            • Optional
              reqSigs integer

              Represents the required signatures.

              Example : 1
            • Required
              type string

              Represents the script type.

              Example : witness_v0_keyhash
          • Required
            value string

            Represents the sent/received amount.

            Example : 0.00004069

Credits Cost : 1 Credits For 1 Result(s)

Try it out

Request Example

GET
https://rest.cryptoapis.io/wallet-as-a-service/wallets/bitcoin/testnet/transactions/3e081861494aed897e589cdeab5d9e628d985e571ed1c19896d1aa698cce9d80?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": 21,
            "isConfirmed": true,
            "minedInBlockHash": "0000000000503b5200a935cfa9e7740783b5f2292aaad3bf273554abfb3d91ce",
            "minedInBlockHeight": 1250283,
            "recipients": "",
            "senders": "",
            "timestamp": 1636972451,
            "transactionHash": "c58148bb37b9be020338e427784580b58e0b497ce32d7eddf812de6a1a0d3133",
            "transactionId": "3e081861494aed897e589cdeab5d9e628d985e571ed1c19896d1aa698cce9d80",
            "fee": {
                "amount": "0.00003812",
                "unit": "BTC"
            },
            "blockchainSpecific": {
                "locktime": 0,
                "size": 591,
                "vSize": 347,
                "version": 2,
                "vin": [
                    {
                        "addresses": [
                            "2NDxh6gwyx33zCxocteVXo9znPny1GrUuHF"
                        ],
                        "coinbase": "0399991d20706f6f6c2e656e6a6f79626f646965732e636f6d20393963336532346234374747a53e994c4a000001",
                        "scriptSig": {
                            "asm": "00148b3ed2c15710b61a43cb354a7e637dc6bbd448ce",
                            "hex": "1600148b3ed2c15710b61a43cb354a7e637dc6bbd448ce",
                            "type": "scripthash"
                        },
                        "sequence": 4294967295,
                        "txid": "48bd74754b71181d4d2092fc24477f89fa7dfea8059b140a179bac2267048832",
                        "txinwitness": [
                            "3045022100ee88c1b067d5756831343059a3632106b218ef158fe062725c69a2a21b1504af02207c95262daaefdf9c46f55e53cc42fa152bd874a5ea54dd155a4f2624782be1af01"
                        ],
                        "value": "0.00001681",
                        "vout": 0
                    }
                ],
                "vout": [
                    {
                        "isSpent": false,
                        "scriptPubKey": {
                            "addresses": [
                                "2NGHH9qxCADY5eTNFUKobi1xiMWoW6FYSCd"
                            ],
                            "asm": "OP_HASH160 fcae5de86db6ca7121f44a0a01fd2d3b85137e07 OP_EQUA",
                            "hex": "a914fcae5de86db6ca7121f44a0a01fd2d3b85137e0787",
                            "reqSigs": 1,
                            "type": "witness_v0_keyhash"
                        },
                        "value": "0.00004069"
                    }
                ]
            }
        }
    }
}