Pre-generated Polkadot API descriptors for Asset Hub, Bulletin, and Individuality chains.
pnpm add @polkadot-apps/descriptors
Peer dependency: polkadot-api (>=1.23.0)
pnpm add polkadot-api
Import descriptors per chain — each subpath is a separate papi build, so you only bundle the chain metadata you actually use:
import { bulletin } from "@polkadot-apps/descriptors/bulletin";
import { createClient } from "polkadot-api";
const client = createClient(/* transport */);
const api = client.getTypedApi(bulletin);
// Full type safety for all calls, queries, and events
const fee = await api.query.TransactionStorage.ByteFee.getValue();
| Subpath | Export | Chain |
|---|---|---|
./polkadot-asset-hub |
polkadot_asset_hub |
Polkadot Asset Hub |
./kusama-asset-hub |
kusama_asset_hub |
Kusama Asset Hub |
./paseo-asset-hub |
paseo_asset_hub |
Paseo Asset Hub |
./bulletin |
bulletin |
Bulletin Chain (Paseo) |
./individuality |
individuality |
People Chain (Paseo) |
import { polkadot_asset_hub } from "@polkadot-apps/descriptors/polkadot-asset-hub";
import { kusama_asset_hub } from "@polkadot-apps/descriptors/kusama-asset-hub";
import { paseo_asset_hub } from "@polkadot-apps/descriptors/paseo-asset-hub";
import { bulletin } from "@polkadot-apps/descriptors/bulletin";
import { individuality } from "@polkadot-apps/descriptors/individuality";
This package contains generated code. To regenerate from chain metadata:
pnpm generate-descriptors
This fetches current chain metadata and runs papi generate once per chain, producing isolated per-chain builds.
scripts/generate.sh with a papi add command.chains/<name>/.papi/polkadot-api.json with the chain config and a minimal package.json.CHAINS list in scripts/build.sh.package.json.Apache-2.0