polkadot-js/api

View on GitHub
packages/types/src/interfaces/session/runtime.ts

Summary

Maintainability
A
3 hrs
Test Coverage
// Copyright 2017-2024 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { DefinitionsCall } from '../../types/index.js';

export const runtime: DefinitionsCall = {
  SessionKeys: [
    {
      methods: {
        decode_session_keys: {
          description: 'Decode the given public session keys.',
          params: [
            {
              name: 'encoded',
              type: 'Bytes'
            }
          ],
          type: 'Option<Vec<(Bytes, KeyTypeId)>>'
        },
        generate_session_keys: {
          description: 'Generate a set of session keys with optionally using the given seed.',
          params: [
            {
              name: 'seed',
              type: 'Option<Bytes>'
            }
          ],
          type: 'Bytes'
        }
      },
      version: 1
    }
  ]
};