Jump to
Ctrl
+
/

Decode Raw Transaction Hex UTXO

POST
/utils/utxo/{blockchain}/{network}/decode-raw-transaction

Path Parameters

blockchain string Required
network string Required

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

Response Schema

apiVersion string Required

Specifies the version of the API that incorporates this endpoint.

2024-12-12
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
id string Required

Represents the same as transactionId for UTXOs protocols like Bitcoin.

1ec73b0f61359927d02376b35993b756b1097cb9a857bec23da4c98c4977d2b2
size integer Required

Represents the total size of this transaction.

248
hash string Required
1ec73b0f61359927d02376b35993b756b1097cb9a857bec23da4c98c4977d2b2
inputs array Items (object) Required

Inputs of the transaction

address string Optional

Represents the address which send the amount.

2N5PcdirZUzKF9bWuGdugNuzcQrCbBudxv1
outputIndex integer Required

Represents the output of a transaction.

3
script object Required

Script sig of input

asm string Required

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

0014daaf6d5cb86befe42df851a4d1df052e663754c1
hex string Required

Represents the hex of the public key of the address.

160014daaf6d5cb86befe42df851a4d1df052e663754c1
type string Required

Represents the script type of the reference transaction identifier.

scripthash
sequence integer Required

Represents the script sequence number.

34
transactionId string Required

Represents the transaction inputs' indentifier.

108c523cba933520905136262f6cdef87d68a1fa4ffb95b1a73f69a07ed2aed3
witnesses array Items (string) Optional
locktime integer Required

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

1781965
outputs array Items (object) Required

Outputs of the transaction

address string Optional

Represents the address which send the amount.

2MzakdGTEp8SMWEHKwKM4HYv6uNCBXtHpkV
script object Required

Script pub key of the transaction

asm string Required

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

OP_HASH160 507a5bd8cac1d9efdf4c0a4bfacb3e0abb4f8d15 OP_EQUAL
hex string Required

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

a914507a5bd8cac1d9efdf4c0a4bfacb3e0abb4f8d1587
type string Required

Represents the script type.

scripthash
value object Optional
amount string Optional

Represents the transaction amount.

10.334
unit string Required
ZEC
version integer Required

Represents the transaction version number.

2
vsize integer Required

Represents the virtual size of this transaction.

166
weight integer Required

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

236

Credits Cost : 1000 Credits for 1 Results

Was this page helpful?
Yes
No
Powered by
Language
URL

{
    "apiVersion": "2024-12-12",
    "requestId": "601c1710034ed6d407996b30",
    "context": "yourExampleString",
    "data": {
        "item": {
            "id": "1ec73b0f61359927d02376b35993b756b1097cb9a857bec23da4c98c4977d2b2",
            "size": 248,
            "hash": "1ec73b0f61359927d02376b35993b756b1097cb9a857bec23da4c98c4977d2b2",
            "inputs": [
                {
                    "address": "2N5PcdirZUzKF9bWuGdugNuzcQrCbBudxv1",
                    "outputIndex": 3,
                    "script": {
                        "asm": "0014daaf6d5cb86befe42df851a4d1df052e663754c1",
                        "hex": "160014daaf6d5cb86befe42df851a4d1df052e663754c1",
                        "type": "scripthash"
                    },
                    "sequence": 34,
                    "transactionId": "108c523cba933520905136262f6cdef87d68a1fa4ffb95b1a73f69a07ed2aed3",
                    "witnesses": [
                        "3045022100c11ea5740bcd69f0f68a4914279838014d28923134d18e05c5a5486dfd06cc8c02200dadccec3f07bed0d1040f9e5a155efa5fdd40fc91f92342578d26848da4c6b901"
                    ]
                }
            ],
            "locktime": 1781965,
            "outputs": [
                {
                    "address": "2MzakdGTEp8SMWEHKwKM4HYv6uNCBXtHpkV",
                    "script": {
                        "asm": "OP_HASH160 507a5bd8cac1d9efdf4c0a4bfacb3e0abb4f8d15 OP_EQUAL",
                        "hex": "a914507a5bd8cac1d9efdf4c0a4bfacb3e0abb4f8d1587",
                        "type": "scripthash"
                    },
                    "value": {
                        "amount": "10.334",
                        "unit": "ZEC"
                    }
                }
            ],
            "version": 2,
            "vsize": 166,
            "weight": 236
        }
    }
}