Skip to content

feat: use proxy for metadata & images#1

Merged
rogaldh merged 18 commits intomasterfrom
feat/metadata-proxy
Dec 25, 2025
Merged

feat: use proxy for metadata & images#1
rogaldh merged 18 commits intomasterfrom
feat/metadata-proxy

Conversation

@rogaldh
Copy link
Copy Markdown
Owner

@rogaldh rogaldh commented Jan 29, 2025

This PR implements proxy service for metadata and images. Here is needed configuration:

  • NEXT_PUBLIC_METADATA_ENABLED - flag to turn service on/off;
    "true" to enable
  • NEXT_PUBLIC_METADATA_TIMEOUT - abort fetching metadata for too long;
    default: 10_000ms
  • NEXT_PUBLIC_METADATA_MAX_CONTENT_SIZE - maximum for content size;
    default: 100_000 bytes
  • NEXT_PUBLIC_METADATA_USER_AGENT - will be used as user-agent header
    to represent Explorer's request for other services;
    default: Solana Explorer

Configuration to add to .env

- `NEXT_PUBLIC_METADATA_ENABLED` - flag to turn service on/off;
  "true" to enable
- `NEXT_PUBLIC_METADATA_TIMEOUT` - abort fetching metadata for too long;
  default: 10_000ms
- `NEXT_PUBLIC_METADATA_MAX_CONTENT_SIZE` - maximum for content size;
  default: 100_000 bytes
- `NEXT_PUBLIC_METADATA_USER_AGENT` - will be used as user-agent header
  to represent Explorer's request for other services;
  default: Solana Explorer
@rogaldh rogaldh marked this pull request as ready for review January 31, 2025 11:55
Copy link
Copy Markdown

@sponomarev sponomarev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ngundotra ngundotra force-pushed the feat/metadata-proxy branch from 2b16dff to a62754c Compare February 4, 2025 16:45
@rogaldh
Copy link
Copy Markdown
Owner Author

rogaldh commented Feb 13, 2025

Merged at the upstream: solana-foundation#451

@rogaldh rogaldh closed this Feb 13, 2025
@rogaldh rogaldh deleted the feat/metadata-proxy branch March 6, 2025 17:42
@rogaldh rogaldh restored the feat/metadata-proxy branch December 25, 2025 21:42
@rogaldh rogaldh reopened this Dec 25, 2025
@rogaldh rogaldh merged commit b9d1b84 into master Dec 25, 2025
1 check passed
@rogaldh rogaldh deleted the feat/metadata-proxy branch December 25, 2025 21:56
rogaldh added a commit that referenced this pull request Jan 24, 2026
…-foundation#814)

## Description

- adding instructions how to upload idl for programs without idl
- displaying idl tab for all program account

## Type of change

-   [x] New feature

## Screenshots

<img width="1138" height="416" alt="image"
src="https://github.com/user-attachments/assets/f73e0741-fb38-433f-a97e-04cd67daf185"
/>


## Testing

case #1
1. open
http://localhost:3000/address/2NqsQ7zQ9fq8azdWe5NGTW2yrpSHhfogf7TkVavd8hDn/idl?cluster=devnet
(program without idl)
2. see instructions

case #2
1. open
http://localhost:3000/address/compr6CUsB5m2jS4Y3831ztGSTnDpnKJTKS95d64XVq/idl
(program with idl)
2. see info 

## Related Issues

[HOO-116](https://linear.app/solana-fndn/issue/HOO-116)

## Checklist

-   [x] My code follows the project's style guidelines
-   [x] All tests pass locally and in CI
-   [x] I have run `build:info` script to update build information
-   [x] CI/CD checks pass
- [x] I have included screenshots for protocol screens (if
applicable)-state)

## Checklist

-   [x] My code follows the project's style guidelines
-   [x] All tests pass locally and in CI
-   [x] I have run `build:info` script to update build information
-   [x] CI/CD checks pass
-   [x] I have included screenshots for protocol screens (if applicable)

---------

Co-authored-by: Tania Markina <37657937+C0mberry@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants