Documentation Index Fetch the complete documentation index at: https://docs.evav.org/llms.txt
Use this file to discover all available pages before exploring further.
Get Item
Get a single item by marketplace id, or by collection address and token id
example
interface.ts
marketplaceItem.ts
config.ts (dynamic)
config.ts (privy)
import { Marketplace } from '@evav/marketplace'
const item = await Marketplace . getItem ( '<ITEM_MARKETPLACE_ID>' )
const item = await Marketplace . getItemByCollectionAndTokenId ( '<COLLECTION_ADDRESS>' , < TOKEN_ID >)
Get Items
Get paginated list of items with optional filters
example
interface.ts
packageSize.ts
marketplaceItem.ts
config.ts (dynamic)
config.ts (privy)
import { Marketplace } from '@evav/marketplace'
// Get unfiltered list of items
const { items , pageInfo } = await Marketplace . getItems ()
// Filter the items
const { items , pageInfo } = await Marketplace . getItems ({
brand: '<BRAND_NAME>' ,
collectionAddress: '<COLLECTION_ADDRESS>'
})
Search
example
interface.ts
marketplaceItem.ts
config.ts (dynamic)
config.ts (privy)
import { Marketplace } from '@evav/marketplace'
const items = await Marketplace . getItemsByFullTextSearch ({
text: '<SEARCH_QUERY>' ,
{ perPage : 10 , page : 1 }
})
Get my items
Returns all the items (listed and delisted) of the current user.
Internally calls Marketplace.getItems({ owner: '<CURRENT_USER_ADDRESS>', status: undefined })
example
interface.ts
marketplaceItem.ts
config.ts (dynamic)
config.ts (privy)
import { mkt } from './config'
const items = await mkt . getMyItems ()
example
interface.ts
config.ts (dynamic)
config.ts (privy)
import { mkt } from './config'
const royaltyInfo = await mkt . getRoyaltyInfo (
< TOKEN_ID >,
10000 n , // to get royalty persentage, pass 1 in BPS (100 BPS is equal to 1%)
'<COLLECTON_ADDRESS>'
)