paritytech / substrate-api-sidecar

REST service that makes it easy to interact with blockchain nodes built using Substrate's FRAME framework.
https://paritytech.github.io/substrate-api-sidecar/dist/
GNU General Public License v3.0
247 stars 152 forks source link

Support for Foreign Assets on Assets Hub chains (Statemine / Statemint) #1287

Closed IkerAlus closed 12 months ago

IkerAlus commented 1 year ago

Proposed Feature

Statemine runtime v9420 and (most likely) Statemint runtime v9430 will have support for foreign fungible assets. This will allow other parachains to represent their assets, as well as bridges to represent assets from other networks. Hence external teams with an integration with Assets Hub chains, particularly exchanges, will be interested in querying the foreign asset information from the chain. That is why API Sidecar should allow to query such information.

This feature is realized by the addition of a new pallet, foreignAssets, to these runtimes. This new pallet has the same interface than the well-known assets pallet, thus a good approach may be to add similar endpoints to API Sidecar to query the storage of this new pallet. Following the current endpoints for assets pallet this could be:

Additional Information

Check the respective PRs for Statemine and Statemint to learn the details of the feature.

IkerAlus commented 12 months ago

partially done in https://github.com/paritytech/substrate-api-sidecar/pull/1314

Closing this for now and reconsidering the remaining functionality in the future.