> For the complete documentation index, see [llms.txt](https://sdk.venly.io/sdk-reference/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sdk.venly.io/sdk-reference/ue5-sdk-v3/function-references/wallet/security-endpoint/getpublickey.md).

# GetPublicKey

This endpoint retrieves the Venly public key.

{% code overflow="wrap" %}

```cpp
void GetPublicKey(const FVyOnGetPublicKeyComplete& OnComplete) const;
```

{% endcode %}

\
**Parameters**

| OnComplete | FVyOnGetPublicKeyComplete | The callback function called when the user preferences retrieval operation is complete. |
| ---------- | ------------------------- | --------------------------------------------------------------------------------------- |

\
**OnComplete Callback** (FVyOnGetPublicKeyComplete)\
Contains a [FVySecuritySpecificationDto](/sdk-reference/ue5-sdk-v3/object-references/wallet/fvysecurityspecificationdto.md) response type
