Skip to main content
BETA
HomeIntegration BuilderAPI ReferenceGuides
View Mirror World on Github
Join the Discord server

Language:

queryMarketplaces

Queries NFT marketplaces on Solana. Returns a paginated result.


_47
const 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.
_47
const query: MarketplaceQueryOptions = {
_47
seller_fee_basis_points: 200,
_47
can_change_sale_price: true
_47
}
_47
_47
export 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
_47
const queryResult: IMarketplaceQueryResult[] = await mirrorworld.queryMarketplaces(query, pagination)
_47
_47
// Returns `IMarketplaceQueryResult[]`
_47
export 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

Copyright © Mirror World, Inc. 2023
On this page

    Home

    Tutorials

    Guides

    API Reference