Polkadot Metadata API

The Metadata API from Polkadot — 1 operation(s) for metadata.

OpenAPI Specification

polkadot-metadata-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Polkadot REST Account Metadata API
  description: High-performance Rust REST API for Substrate/Polkadot blockchain data. Drop-in replacement for substrate-api-sidecar.
  contact:
    url: https://github.com/paritytech/polkadot-rest-api
  license:
    name: GPL-3.0-or-later
  version: 0.1.3
servers:
- url: http://localhost:8080/v1
  description: Localhost
tags:
- name: Metadata
paths:
  /api/scan/metadata:
    post:
      description: Current network metadata, including current networkNode name, ss58 addressType and other information
      produces:
      - application/json
      responses:
        '200':
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/internal_server_http.J'
            - properties:
                data:
                  additionalProperties:
                    type: string
                  type: object
              type: object
      summary: Current network metadata
      tags:
      - Metadata
      x-synonyms:
      - current
      - network
      - metadata
      - scan
      - meta
      - chain info
definitions:
  internal_server_http.J:
    properties:
      code:
        example: 0
        type: integer
      data: {}
      generated_at:
        example: 1699600641
        type: integer
      message:
        example: Success
        type: string
    type: object