Jump to
Ctrl
+
/

Get Wallet Transaction Details By Transaction ID

GET
/wallet-as-a-service/wallets/{blockchain}/{network}/transactions/{transactionId}

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.

Path Parameters

blockchain string Required

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

network string Required

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

transactionId string Required

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.

Query Parameters

context string Optional

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.

Response Schema

apiVersion string Required

Specifies the version of the API that incorporates this endpoint.

2021-03-20
requestId string Required

Defines the ID of the request. The requestId is generated by Crypto APIs and it's unique for every request.

601c1710034ed6d407996b30
context string Optional

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.

yourExampleString
data object Required
item object Required
isConfirmed boolean Required

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

true
transactionId string Required

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.

3e081861494aed897e589cdeab5d9e628d985e571ed1c19896d1aa698cce9d80
index integer Required

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

21
minedInBlockHash string Optional

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.

0000000000503b5200a935cfa9e7740783b5f2292aaad3bf273554abfb3d91ce
minedInBlockHeight integer Optional

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.

1250283
recipients array Items (object) Required

Object Array representation of transaction receivers

address string Optional

String representation of the receiver address

amount string Optional

String representation of the amount

senders array Items (object) Required

String representation of the transaction from address

address string Optional

String array representation of the sender address

amount string Optional

String representation of the amount

timestamp integer Required

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

1636972451
transactionHash string Required

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.

c58148bb37b9be020338e427784580b58e0b497ce32d7eddf812de6a1a0d3133
fee object Required
amount string Required

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.

0.00003812
unit string Required

Represents the unit of the fee.

BTC
blockchainSpecific object Required
locktime integer Required

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

0
size integer Required

Represents the total size of this transaction.

591
vSize integer Required

Represents the virtual size of this transaction.

347
version integer Required

Represents the transaction version number.

2
vin array Items (object) Required

Object Array representation of transaction inputs

addresses array Items (string) Required
coinbase string Optional

Represents the coinbase hex.

0399991d20706f6f6c2e656e6a6f79626f646965732e636f6d20393963336532346234374747a53e994c4a000001
scriptSig object Required

Object representation of the script

asm string Required

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

00148b3ed2c15710b61a43cb354a7e637dc6bbd448ce
hex string Required

Represents the hex of the public key of the address.

1600148b3ed2c15710b61a43cb354a7e637dc6bbd448ce
type string Required

Represents the script type of the reference transaction identifier.

scripthash
sequence integer Required

Represents the script sequence number.

4294967295
txid string Required

Represents the reference transaction identifier.

48bd74754b71181d4d2092fc24477f89fa7dfea8059b140a179bac2267048832
txinwitness array Items (string) Optional
value string Optional

Represents the sent/received amount.

0.00001681
vout integer Required

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

0
vout array Items (object) Required

Represents the transaction outputs.

isSpent boolean Required

Defines whether the output is spent or not.

false
scriptPubKey object Required

Object representation of the script

addresses array Items (string) Required
asm string Required

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

OP_HASH160 fcae5de86db6ca7121f44a0a01fd2d3b85137e07 OP_EQUA
hex string Required

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

a914fcae5de86db6ca7121f44a0a01fd2d3b85137e0787
reqSigs integer Optional

Represents the required signatures.

1
type string Required

Represents the script type.

witness_v0_keyhash
value string Required

Represents the sent/received amount.

0.00004069

Credits Cost : 100 Credits for 1 Results

Was this page helpful?
Yes
No
Language
URL

{
    "apiVersion": "2021-03-20",
    "requestId": "601c1710034ed6d407996b30",
    "context": "yourExampleString",
    "data": {
        "item": {
            "isConfirmed": true,
            "transactionId": "3e081861494aed897e589cdeab5d9e628d985e571ed1c19896d1aa698cce9d80",
            "index": 21,
            "minedInBlockHash": "0000000000503b5200a935cfa9e7740783b5f2292aaad3bf273554abfb3d91ce",
            "minedInBlockHeight": 1250283,
            "recipients": [
                {
                    "address": "",
                    "amount": ""
                }
            ],
            "senders": [
                {
                    "address": "",
                    "amount": ""
                }
            ],
            "timestamp": 1636972451,
            "transactionHash": "c58148bb37b9be020338e427784580b58e0b497ce32d7eddf812de6a1a0d3133",
            "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"
                    }
                ]
            }
        }
    }
}