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

    Example : testnet
    Possible Values : mainnet testnet 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 : 3cba25201927d4c67d6f572822d6b57e9955ee3200f925943c50004b83820698

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

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

        Example : True
      • 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 : 3cba25201927d4c67d6f572822d6b57e9955ee3200f925943c50004b83820698
      • Required
        index integer

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

        Example : 21
      • 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 : 000000000000001c619036716b67784fbf6c72c43e9e8a140ca882a4f67180ef
      • 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 : 2427497
      • Required
        recipients array

        Object Array representation of transaction receivers

        • Optional
          address string

          String representation of the receiver address

          Example : tb1q7xnacwu6nzamkggg6nzedr4jux8t7u9f3ltvus
        • Optional
          amount string

          String representation of the amount

          Example : 0.01745343
      • Required
        senders array

        String representation of the transaction from address

        • Optional
          address string

          String array representation of the sender address

          Example : tb1qq6qq5kynmzsvt9m6e56qd6xd4zd48xzcjwuyt3
        • Optional
          amount string

          String representation of the amount

          Example : 0.01822484
      • 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 : 1680694323
      • 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 : 3cba25201927d4c67d6f572822d6b57e9955ee3200f925943c50004b83820698
      • 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

          Represents the unit of the fee.

          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 : 100 Credits For 1 Result(s)

Try it out

Request Example

GET
https://rest.cryptoapis.io/wallet-as-a-service/wallets/bitcoin/testnet/transactions/3cba25201927d4c67d6f572822d6b57e9955ee3200f925943c50004b83820698?context=yourExampleString
Headers
Content-Type: application/json
X-API-Key: my-api-key

Response Example

{
    "apiVersion": "2023-04-25",
    "requestId": "601c1710034ed6d407996b30",
    "context": "yourExampleString",
    "data": {
        "item": {
            "isConfirmed": true,
            "transactionId": "3cba25201927d4c67d6f572822d6b57e9955ee3200f925943c50004b83820698",
            "index": 21,
            "minedInBlockHash": "000000000000001c619036716b67784fbf6c72c43e9e8a140ca882a4f67180ef",
            "minedInBlockHeight": 2427497,
            "recipients": [
                {
                    "address": "tb1q7xnacwu6nzamkggg6nzedr4jux8t7u9f3ltvus",
                    "amount": "0.01745343"
                }
            ],
            "senders": [
                {
                    "address": "tb1qq6qq5kynmzsvt9m6e56qd6xd4zd48xzcjwuyt3",
                    "amount": "0.01822484"
                }
            ],
            "timestamp": 1680694323,
            "transactionHash": "3cba25201927d4c67d6f572822d6b57e9955ee3200f925943c50004b83820698",
            "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"
                    }
                ]
            }
        }
    }
}