• Creates a 'steward' agent instance.

    Parameters

    Returns QueryableApi<
        | { criteria: { assets: string[]; network: string }[]; op: "assets" }
        | { criteria?: { network: string }; op: "assets.list" }
        | {
            criteria: { locations: string[]; xcmLocationAnchor: string }[];
            op: "assets.by_location";
        }
        | { op: "chains.list" }
        | { criteria: { networks: string[] }; op: "chains" },
        sourceSteward.AssetMetadata,
    > & OcelloidsClientApi

    An object with methods for querying asset metadata and accessing general client API methods.

    import { createStewardAgent } from "@sodazone/ocelloids-client";

    const agent = createStewardAgent({
    httpUrl: "http://127.0.0.1:3000"
    });

    // Query asset metadata
    const metadata = await agent.query({ ... });