I want to decode and check if the given hex data for the transaction is valid and signed correctly.
The flowing is how I currently construct the transaction and convert it to hexadecimal format.
let addProxy = api.tx.proxy.addProxy(PROXY, 'Any', 0);
let remark = api.tx.system.remark("Test");
let tx = api.tx.utility.batch([
addProxy,
remark,
]);
let singedTx = await tx.signAsync(pair);
let signedTxHex = singedTx.toHex()
console.log("Signed TX", signedTxHex);