ICRC icon indicating copy to clipboard operation
ICRC copied to clipboard

ICRC-145: HTTP accessible `icrc1:logo`

Open ZenVoich opened this issue 6 months ago • 0 comments

This will simplify integrating ICRC tokens into apps and wallets.

Token canister should handle HTTP path /icrc1_logo and:

  • return image content with correct mime-type, if it's a Data URL
  • redirect with HTTP 302 header to the URL, if logo is set as URL
  • return HTTP 404, if there is no logo image

Add cache headers(1 day? 1 week?) so that browsers make fewer requests to the canister.

Integrator usage

Download logo from URL

https://<token-canister-id>.ic0.app/icrc1_logo

or just show it using <img> tag

<img src="https://<token-canister-id>.ic0.app/icrc1_logo">

ZenVoich avatar Jun 12 '25 15:06 ZenVoich