def METHOD_NAME(self) -> bytes:
    chain_id = self.chain_id()
    if not self.has_chain_id():
        return rlp.encode((
            self.nonce, self.gasPrice, self.gasLimit, self.toAddress, self.value, self.callData
        ))
    else:
        return rlp.encode((
            self.nonce, self.gasPrice, self.gasLimit, self.toAddress, self.value, self.callData,
            chain_id, 0, 0
        ))