Type alias SearchResult

SearchResult: {
    account?: AccountSearchResult;
    collection?: CollectionSearchResult;
    nft?: NftSearchResult;
    token?: TokenSearchResult;
    type: string;
}

A single search result with a type discriminator and the corresponding typed object.

Type declaration

  • Optional account?: AccountSearchResult

    Account details, present when type is 'account'

  • Optional collection?: CollectionSearchResult

    Collection details, present when type is 'collection'

  • Optional nft?: NftSearchResult

    NFT details, present when type is 'nft'

  • Optional token?: TokenSearchResult

    Token details, present when type is 'token'

  • type: string

    The type of search result