polkadot-js/api

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

Summary

Maintainability
B
4 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 = {
  FungiblesApi: [
    {
      methods: {
        query_account_balances: {
          description: 'Returns the list of all `MultiAsset` that an `AccountId` has',
          params: [
            {
              name: 'account',
              type: 'AccountId'
            }
          ],
          type: 'Result<Vec<XcmV3MultiAsset>, FungiblesAccessError>'
        }
      },
      version: 1
    },
    {
      methods: {
        query_account_balances: {
          description: 'Returns the list of all `MultiAsset` that an `AccountId` has',
          params: [
            {
              name: 'account',
              type: 'AccountId'
            }
          ],
          type: 'Result<XcmVersionedMultiAssets, FungiblesAccessError>'
        }
      },
      version: 2
    }
  ]
};