• Preparing search index...
  • The search index is not available
@oobe-protocol-labs/synapse-client-sdk
  • @oobe-protocol-labs/synapse-client-sdk
  • getAssetsByOwner

Function getAssetsByOwner

  • getAssetsByOwner(t, params, opts?): Promise<DasPage<DasAsset>>
  • Fetch all digital assets owned by a given wallet address.

    Parameters

    • t: HttpTransport

      HTTP transport instance

    • params: GetAssetsByOwnerParams

      Owner address and pagination/display options

    • opts: DasOpts & CallOptions = {}

      Commitment level and call options

    Returns Promise<DasPage<DasAsset>>

    Paginated list of assets owned by the address

    Example

    const page = await getAssetsByOwner(transport, {
    ownerAddress: 'So1111...',
    page: 1,
    limit: 100,
    });
    console.log(page.total, page.items.length);

    Since

    1.0.0

    • Defined in src/das/methods/get-assets-by-owner.ts:50

Settings

Member Visibility
@oobe-protocol-labs/synapse-client-sdk
  • Loading...

Generated using TypeDoc