Skip to content

Support authenticated token lists providers (like Coingecko Pro) #2584

@ElvisKrop

Description

@ElvisKrop

What is needed?

Add support for authenticated token list providers in Safe Transaction Service to enable integration with token list providers like Coingecko Pro API.

Background

Currently, Safe Transaction Service only supports publicly accessible token lists through direct URLs. However, some providers like Coingecko offer more comprehensive and maintained token lists through authenticated APIs. These lists often cover more networks and provide good-quality data.

The current implementation in TokenList model only stores URL and description, which limits the service to public token lists. It would be nice to extend this to support authenticated requests. For example, Coingecko Pro API supports two authentication methods:

  • Query parameter: x_cg_pro_api_key=<key>
  • Authorization header: x-cg-pro-api-key: <key>

Related issues

Security Considerations

  • Authentication credentials should not be exposed through API responses

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