curl --request POST \
--url https://xbt-mainnet.gomaestro-api.org/v0/rpc/transaction/decode \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '"<string>"'
{
"data": {
"hash": "<string>",
"hex": "<string>",
"locktime": 123,
"size": 123,
"txid": "<string>",
"version": 123,
"vin": [
{
"coinbase": "<string>",
"scriptSig": {
"asm": "<string>",
"hex": "<string>"
},
"sequence": 123,
"txid": "<string>",
"txinwitness": [
"<string>"
],
"vout": 123
}
],
"vout": [
{
"n": 123,
"scriptPubKey": {
"address": "<string>",
"asm": "<string>",
"desc": "<string>",
"hex": "<string>",
"type": "<string>"
},
"value": 123
}
],
"vsize": 123,
"weight": 123
},
"last_updated": {
"block_hash": "<string>",
"block_height": 123
}
}
Takes a raw TX hex and returns structured JSON. Useful when building or validating raw transactions.
curl --request POST \
--url https://xbt-mainnet.gomaestro-api.org/v0/rpc/transaction/decode \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '"<string>"'
{
"data": {
"hash": "<string>",
"hex": "<string>",
"locktime": 123,
"size": 123,
"txid": "<string>",
"version": 123,
"vin": [
{
"coinbase": "<string>",
"scriptSig": {
"asm": "<string>",
"hex": "<string>"
},
"sequence": 123,
"txid": "<string>",
"txinwitness": [
"<string>"
],
"vout": 123
}
],
"vout": [
{
"n": 123,
"scriptPubKey": {
"address": "<string>",
"asm": "<string>",
"desc": "<string>",
"hex": "<string>",
"type": "<string>"
},
"value": 123
}
],
"vsize": 123,
"weight": 123
},
"last_updated": {
"block_hash": "<string>",
"block_height": 123
}
}
Project API Key
Raw Transaction Hex.
The body is of type string
.
OK
The response is of type object
.