For the complete documentation index, see llms.txt. This page is also available as Markdown.

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().

Recommended display guidelines:

  • Place the identicon to the left of the public key.

  • Render it as a square with no border and 10% rounded corners. Never display it as a circle.

  • When truncating the public key, use 5 hex chars + ... + 5 hex chars — for example: 02026...9555c.

Account identicon example

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