Skip to main content

Setup

Import the SDK and create a wallet:
import { MnemonicIdentity, Wallet } from '@arkade-os/sdk'

const identity = MnemonicIdentity.fromMnemonic("abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon")

const wallet = await Wallet.create({
  identity,
  arkServerUrl: 'https://arkade.computer',
})

Read Asset Metadata

Use getAssetDetails to retrieve the metadata attached to an asset at issuance time:
const { assetId } = await wallet.assetManager.issue({
  amount: 1000,
  metadata: {
    name: 'Test Asset',
    ticker: 'TA',
    decimals: 2,
    icon: 'https://example.com/icon.png',
  },
})

const { metadata } = await wallet.assetManager.getAssetDetails(assetId)

console.log(metadata)
// { name: 'Test Asset', ticker: 'TA', decimals: 2, icon: 'https://example.com/icon.png' }
Metadata is immutable — it cannot be changed after issuance. See Asset Metadata for how it’s committed on-chain.

Known Metadata Fields

FieldTypeDescription
namestringHuman-readable asset name
tickerstringShort symbol (e.g., “TA”)
decimalsnumberDecimal places
iconstringURL to an image for display
AssetMetadata extends Record<string, unknown>, so assets may include additional custom fields beyond these.

Next Steps