Decode tx hex or serialized partial tx into human readable inputs and outputs with metadata to assist informed decision-making. To obtain input metadata, this method retrieves a transaction per input from the wallet's transaction history. If the required transaction is not located, the method queries the fullnode for the transaction details.
POST/wallet/decode
Decode tx hex or serialized partial tx into human readable inputs and outputs with metadata to assist informed decision-making. To obtain input metadata, this method retrieves a transaction per input from the wallet's transaction history. If the required transaction is not located, the method queries the fullnode for the transaction details.
Request
- application/json
Body
required
Transaction hex representation or a partial transaction serialization.
txHex string
Hex format of a Transaction instance.
partial_tx string
Serialized PartialTx instance.
Responses
- 200
Decode a transaction from its hex
- application/json
- Schema
- success
Schema
any
Success
{
"success": true,
"tx": {
"completeSignatures": false,
"tokens": [],
"outputs": [
{
"decoded": {
"address": "Wk2j7odPbC4Y98xKYBCFyNogxaRimU6BUj",
"timelock": null
},
"token": "00",
"value": 100,
"tokenData": 0,
"token_data": 0,
"script": "dqkUISAnpOn9Vo269QBvOfBeWJTLx82IrA==",
"type": "p2sh",
"mine": true
}
],
"inputs": [
{
"decoded": {
"type": "MultiSig",
"address": "Wk2j7odPbC4Y98xKYBCFyNogxaRimU6BUj",
"timelock": null
},
"txId": "006e18f3c303892076a12e68b5c9c30afe9a96a528f0f3385898001858f9c35d",
"index": 0,
"token": "00",
"value": 100,
"tokenData": 0,
"token_data": 0,
"script": "dqkUISAnpOn9Vo269QBvOfBeWJTLx82IrA==",
"signed": false,
"mine": true
}
]
},
"balance": {
"00": {
"tokens": {
"available": 0,
"locked": 0
},
"authorities": {
"melt": {
"available": 0,
"locked": 0
},
"mint": {
"available": 0,
"locked": 0
}
}
}
}
}
Loading...