Identicons
CSPR.click can generate an identicon for a public key. Identicons are useful when you want to display a compact visual hint next to an account, recipient, sender, or connected wallet address.
Use the getAccountIdenticon() SDK method to generate an HTMLCanvasElement, then render it as an image with toDataURL().
React example
The following component receives a public key, generates its identicon, and renders it next to the public key.
Read more about the getAccountIdenticon method in the SDK reference.
Last updated