Type Alias: AccountFetchDetails
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?
optionaladdress?: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?
optionalpartialProfile?: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?
optionalusername?: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?
optionalviewsToFetch?: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?
optionaloldestFirst?:boolean
Oldest first. By default, we fetch newest
specificCollections?
optionalspecificCollections?:iBatchTokenDetails<NumberType>[]
If defined, we will filter the view to only include the specified collections.
standard?
optionalstandard?: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.