Decode Transactions or Scripts