Jump to
Ctrl
+
/

Decode Raw Transaction Hex

POST
/blockchain-tools/{blockchain}/{network}/decode-raw-transaction

Through this endpoint customers can decode a raw transaction hex and see the decoded transactions' details.

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 network like "testnet" is a test network.

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.

Request Body Schema application/json

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.

data object Required
item object Required
rawTransactionHex string Required

Represents the raw transaction Hex that has to be decoded.

Response Schema

apiVersion string Required

Specifies the version of the API that incorporates this endpoint.

2023-04-25
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
blockchainSpeficicData object Required

Represents the specific transaction data according to the blockchain

locktime integer Required

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

1781965
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.

1ec73b0f61359927d02376b35993b756b1097cb9a857bec23da4c98c4977d2b2
vSize integer Required

Represents the virtual size of this transaction.

166
version integer Required

Represents the transaction version number.

1
vin array Items (object) Required

Represents the transaction inputs.

address string Optional

Represents the address which send/receive the amount.

2N5PcdirZUzKF9bWuGdugNuzcQrCbBudxv1
inputHash string Optional

Represents the transaction inputs' indentifier.

108c523cba933520905136262f6cdef87d68a1fa4ffb95b1a73f69a07ed2aed3
outputIndex integer Optional

Represents the output of a transaction.

3
scriptSig object Required

Specifies the required signatures.

asm string Optional

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

0014daaf6d5cb86befe42df851a4d1df052e663754c1
hex string Optional

Represents the hex of the public key of the address.

160014daaf6d5cb86befe42df851a4d1df052e663754c1
type string Optional

Represents the script type of the reference transaction identifier.

scripthash
sequence string Optional

Represents the script sequence number.

4294967295
txinwitness array Items (string) Optional
vout array Items (object) Required

Represents the transaction outputs.

scriptPubKey object Required

Script pub key of the transaction

address string Required

Represents the address which send the amount.

2MzakdGTEp8SMWEHKwKM4HYv6uNCBXtHpkV
asm string Optional

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

OP_HASH160 507a5bd8cac1d9efdf4c0a4bfacb3e0abb4f8d15 OP_EQUAL
hex string Optional

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

a914507a5bd8cac1d9efdf4c0a4bfacb3e0abb4f8d1587
type string Optional

Represents the script type.

scripthash
value string Optional

Represents the sent/received amount.

0.00014400
weight integer Optional

Represents the size of Bitcoin block, measured in weight units and including the segwit discount.

236
size integer Required

Represents the total size of this transaction.

248
transactionId string Required

Represents the decoded transaction hex.

00a8a090a7c78f64e4626e6720b305edd95fcd7865b5b45864a88070a8079cea

Credits Cost : 1000 Credits for 1 Results

Was this page helpful?
Yes
No
Powered by
Language
URL

{
    "apiVersion": "2023-04-25",
    "requestId": "601c1710034ed6d407996b30",
    "context": "yourExampleString",
    "data": {
        "item": {
            "blockchainSpeficicData": {
                "locktime": 1781965,
                "transactionHash": "1ec73b0f61359927d02376b35993b756b1097cb9a857bec23da4c98c4977d2b2",
                "vSize": 166,
                "version": 1,
                "vin": [
                    {
                        "address": "2N5PcdirZUzKF9bWuGdugNuzcQrCbBudxv1",
                        "inputHash": "108c523cba933520905136262f6cdef87d68a1fa4ffb95b1a73f69a07ed2aed3",
                        "outputIndex": 3,
                        "scriptSig": {
                            "asm": "0014daaf6d5cb86befe42df851a4d1df052e663754c1",
                            "hex": "160014daaf6d5cb86befe42df851a4d1df052e663754c1",
                            "type": "scripthash"
                        },
                        "sequence": "4294967295",
                        "txinwitness": [
                            "3045022100c11ea5740bcd69f0f68a4914279838014d28923134d18e05c5a5486dfd06cc8c02200dadccec3f07bed0d1040f9e5a155efa5fdd40fc91f92342578d26848da4c6b901"
                        ]
                    }
                ],
                "vout": [
                    {
                        "scriptPubKey": {
                            "address": "2MzakdGTEp8SMWEHKwKM4HYv6uNCBXtHpkV",
                            "asm": "OP_HASH160 507a5bd8cac1d9efdf4c0a4bfacb3e0abb4f8d15 OP_EQUAL",
                            "hex": "a914507a5bd8cac1d9efdf4c0a4bfacb3e0abb4f8d1587",
                            "type": "scripthash"
                        },
                        "value": "0.00014400"
                    }
                ],
                "weight": 236
            },
            "size": 248,
            "transactionId": "00a8a090a7c78f64e4626e6720b305edd95fcd7865b5b45864a88070a8079cea"
        }
    }
}