MCPcopy Create free account
hub / github.com/dfinity/orbit / getAssetMetadata

Function getAssetMetadata

apps/wallet/src/utils/asset.utils.ts:10–12  ·  view source on GitHub ↗
(asset: Asset, key: string)

Source from the content-addressed store, hash-verified

8import { AddressFormat, BlockchainType } from '~/types/chain.types';
9
10export function getAssetMetadata(asset: Asset, key: string): string | undefined {
11 return asset.metadata.find(m => m.key === key)?.value;
12}
13
14export function detectAddressFormat(blockchain: string, address: string): string | undefined {
15 switch (blockchain) {

Callers 1

createMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected