According to economic incentive, gasPrice and gasLimit is required for every transaction and total transaction fee is gasPrice * gasLimit. If the transaction failed to be validated or out of gas, the transaction will not be written into block and gasPrice * gasLimit is wasted.
Here are my questions:
1. If the the transaction failed, is the error information or something saved in the chain? If not, where the transfer that gas to miners recorded? If yes, how can I get the kind of error information?
2. If the transaction is signed with incorrect private key, it should be found in the first place when node processes the transaction. Will total or part of transaction fee(gasLimit * gasPrice) costed in this scenario?