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

Language:

fetchNFTsInfo

Fetch Ethereum NFTs Info Accepts Filtering Metadata


import {
type QueryEVMNFTsPayloadV2,
QueryNFTsFilterType,
} from "@mirrorworld/web3.js"
const payload: QueryEVMNFTsPayloadV2 = {
contract: "0x011135F655e0916345C5188aA14fD4E2FEf1845E",
page: 1,
page_size: 10,
order: {
order_by: "price",
desc: true,
},
sale: true,
filter: [
{
filter_name: "color",
filter_type: QueryNFTsFilterType.enum,
filter_value: ["blue", "red"],
},
{
filter_name: "attack",
filter_type: QueryNFTsFilterType.range,
filter_value: [1, 10],
},
],
}
await mirrorworld.Ethereum.Metadata.fetchNFTsInfo(payload)

Edit this page on GitHub

Copyright © Mirror World, Inc. 2023
On this page

    Home

    Integration

    Guides

    API Reference

    Changelog