pk()
pk()
function pk(address): PublicKey;Defined in: public-key.ts:8
Converts a string or PublicKey to a PublicKey object.
Parameters
| Parameter | Type | Description |
|---|---|---|
address | string | PublicKey | The input address as a string or PublicKey. |
Returns
PublicKey
The PublicKey object.