queryMarketplaces
Queries NFT marketplaces on Solana. Returns a paginated result.
_47const pagination = {_47 page: 1,_47 count: 24,_47}_47_47_47// This query will only return marketplaces whose seller_fee_basis_points are 200_47// and whose authority can change the sale price of a given listing._47const query: MarketplaceQueryOptions = {_47 seller_fee_basis_points: 200,_47 can_change_sale_price: true_47}_47_47export type MarketplaceQueryOptions = Partial<_47 Pick<_47 Marketplace,_47 | 'name'_47 | 'client_id'_47 | 'authority'_47 | 'treasury_mint'_47 | 'auction_house_fee_account'_47 | 'auction_house_treasury'_47 | 'treasury_withdrawal_destination'_47 | 'fee_withdrawal_destination'_47 | 'seller_fee_basis_points'_47 | 'requires_sign_off'_47 | 'can_change_sale_price'_47 >_47>;_47_47const queryResult: IMarketplaceQueryResult[] = await mirrorworld.queryMarketplaces(query, pagination)_47_47// Returns `IMarketplaceQueryResult[]`_47export interface IMarketplaceQueryResult {_47 id: number;_47 name: string;_47 client_id: string;_47 authority: string;_47 auction_house_fee_account: string;_47 auction_house_treasury: string;_47 treasury_withdrawal_destination: string;_47 fee_withdrawal_destination: string;_47 treasury_mint: string;_47 seller_fee_basis_points: number;_47 requires_sign_off: boolean;_47 can_change_sale_price: boolean;_47}
Edit this page on GitHub