Skip to content

Update Token & Native Metadata to use REFRESH MV's#474

Merged
DenisCarriere merged 1 commit intomainfrom
feat/native-metadata
Apr 15, 2026
Merged

Update Token & Native Metadata to use REFRESH MV's#474
DenisCarriere merged 1 commit intomainfrom
feat/native-metadata

Conversation

@DenisCarriere
Copy link
Copy Markdown
Contributor

AI Summary

This pull request enhances support for Solana (SVM) token metadata endpoints by improving the accuracy of token metadata queries, adding a dedicated endpoint for native SOL token metadata, and updating OpenAPI documentation and example responses. The changes also include code cleanup and improved schema definitions.

Solana (SVM) Token Metadata Improvements:

  • Refactored the SVM token metadata SQL query (svm.sql) to use new balances_metadata, metadata, and decimals_state tables, improving accuracy and performance for circulating supply, holders, and decimals information. [1] [2]
  • Updated the token metadata endpoint (svm.ts) to support optional mint queries, improved parameter validation, and updated response examples to reflect current data and schema. [1] [2] [3] [4]

Native SOL Token Endpoint:

  • Added a new endpoint and SQL query for native SOL token metadata (svm_native.ts, svm_native.sql), providing circulating supply, holders, and metadata for the native token. [1] [2]
  • Registered the new native token endpoint in the main router and imported the new module. [1] [2]

Codebase and Documentation Cleanup:

  • Removed unused imports and code, such as the injectIcons function from the SVM token endpoint. [1] [2]
  • Ensured database configuration checks include the new accounts database for improved error handling.

These changes collectively improve the reliability, maintainability, and completeness of SVM token metadata endpoints.

@YaroShkvorets YaroShkvorets temporarily deployed to feat/native-metadata - token-api PR #474 April 15, 2026 18:38 — with Render Destroyed
@DenisCarriere DenisCarriere merged commit 3a6a76f into main Apr 15, 2026
2 of 3 checks passed
@DenisCarriere DenisCarriere deleted the feat/native-metadata branch April 15, 2026 18:40
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.

2 participants