Skip to content

This defines the options for fetching additional account details.

AccountFetchDetails = object

Defined in: packages/bitbadgesjs-sdk/src/api-indexer/BitBadgesUserInfo.ts:701

This defines the options for fetching additional account details.

A view is a way of fetching additional details about an account, and these will be queryable in the response via the views property.

Each view has a bookmark that is used for pagination and must be supplied to get the next page.

Properties

address?

optional address?: NativeAddress

Defined in: packages/bitbadgesjs-sdk/src/api-indexer/BitBadgesUserInfo.ts:703

If present, the account corresponding to the specified address will be fetched. Please only specify one of address or username.


partialProfile?

optional partialProfile?: boolean

Defined in: packages/bitbadgesjs-sdk/src/api-indexer/BitBadgesUserInfo.ts:713

If true, we will only fetch a partial set of the document for the user.

Currently includes: username, profile pic, and latest signed in chain

Pretty much, anything you need to display the address but not the full profile


username?

optional username?: string

Defined in: packages/bitbadgesjs-sdk/src/api-indexer/BitBadgesUserInfo.ts:705

If present, the account corresponding to the specified username will be fetched. Please only specify one of address or username.


viewsToFetch?

optional viewsToFetch?: object[]

Defined in: packages/bitbadgesjs-sdk/src/api-indexer/BitBadgesUserInfo.ts:716

An array of views to fetch with associated bookmarks.

bookmark

bookmark: string

A bookmark to pass in for pagination. "" for first request.

oldestFirst?

optional oldestFirst?: boolean

Oldest first. By default, we fetch newest

specificCollections?

optional specificCollections?: iBatchTokenDetails<NumberType>[]

If defined, we will filter the view to only include the specified collections.

standard?

optional standard?: string

The standard to filter by for the view.

viewId

viewId: string

Unique view ID. Used for pagination. All fetches w/ same ID should be made with same criteria.

viewType

viewType: AccountViewKey

The base view type to fetch.

Edit this page on GitHub