Fetching Public Key from an Address
The getPublicKeyInfo
method allows you to fetch the public key associated with a Bitcoin address on the OP_NET network. This method is useful for retrieving the public key to interact with smart contracts, etc.
important
- Learn More About Unified Accounts and how public keys are unified across different address types on OP_NET.
Method
getPublicKeyInfo(address: string): Promise<Address>;
-
Parameters:
address: string
: The Bitcoin address for which you want to fetch the public key.
-
Returns:
Promise<Address>
: AnAddress
object containing the public key information.