user124359: I was wondering if there is a way to obtain public key of a public address where the address does not have any output transaction

user5406: I assume that you are talking about a Pay to Public Key Hash (P2PKH) address.
Cryptographic hash functions have the pre-image resistance property:

Given a hash value h, it should be difficult to find a message m for which h = hash(m).

P2PKH addresses encode a locking script that commits funds to the hash of a public key. Given that the address only provides the hash, it is not possible to guess the public key from the address as that would require breaking the pre-image resistance property of RIPEMD-160.

124359: <p>I was wondering if there is a way to obtain public key of a public address where the address does not have any output transaction</p>
 5406: <p>I assume that you are talking about a Pay to Public Key Hash (P2PKH) address.</p>
<p><a href="https://en.wikipedia.org/wiki/Cryptographic_hash_function" rel="nofollow noreferrer">Cryptographic hash functions</a> have the <em>pre-image resistance</em> property:</p>
<blockquote>
<p>Given a hash value <code>h</code>, it should be difficult to find a message <code>m</code> for which <code>h = hash(m)</code>.</p>
</blockquote>
<p>P2PKH addresses encode a locking script that commits funds to the hash of a public key. Given that the address only provides the hash, it is not possible to guess the public key from the address as that would require breaking the <em>pre-image resistance</em> property of RIPEMD-160.</p>
