Search code examples
ethereumsolidity

How can we access RLP encoded signed raw transaction in solidity?


I know how to create a raw transaction for Ethereum because there are many articles like this.

But I don't know how to access the raw transactions in Solidity.

Msg object give us msg.data, msg.sender, msg.sig and msg.value. These parameters are convenient but I want the RLP encoded signed raw transaction.

How can I access the raw data?

Is there any global variable like tx.raw? Or Is it impossible?

Thanks in advance.


Solution

  • To my knowledge, the raw transaction is not exposed to Solidity.