@permaweb/asset-discovery
v0.1.0
Published
Typed wallet asset discovery for Arweave and AO applications
Readme
@permaweb/asset-discovery
Shared, browser-safe wallet asset discovery for Arweave and AO applications.
The package extracts Bazar's resumable discovery scan into an application-independent API. It finds candidate processes from initial ownership, marketplace actions, and transfers; safely resumes paginated scans; optionally persists completed checkpoints; and resolves permanent process tags into supported fungible and unique asset descriptors.
import { discoverWalletAssetDescriptors } from "@permaweb/asset-discovery";
const { assets } = await discoverWalletAssetDescriptors(walletAddress, {
graphql: `${gatewayUrl}/graphql`,
});Applications remain responsible for reading live process state before presenting an asset as currently owned. This keeps compute-provider selection and balance semantics at the app boundary while sharing the immutable discovery and contract-validation logic.
Development
npm install
npm run typecheck
npm test
npm run format:check