Skip to content

feat: add version query param in transaction/material endpoint #1410

Closed
@Imod7

Description

@Imod7

Proposed Change or Idea
Introduce a query parameter named version to the transaction/material endpoint.

A rough overview of its functionality is outlined below:

  • If the user specifies the version query param:
    • First call metadata_versions to retrieve the available metadata versions.
    • Verify if the specified version (from the query param) is present in the retrieved list from previous step.
    • If the version is found, return that version using metadata_at_version call.
    • If not found, either return an error message or the default version.
  • If the user omits the version query parameter, return the default version.

Additional Information
For further inspiration refer to subxt-cli, as this functionality has already been implemented there.

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