Skip to content

ICRC-145: HTTP accessible icrc1:logo #145

@ZenVoich

Description

@ZenVoich

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">

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions