Get NFTs Owned by an Account

Retrieves the various ERC-20 Token balance by passing wallet address

GetAccountNfts retrieves a list of NFTs owned by a specified account address. This query provides comprehensive details about each token, including its collection details, description, and unique identifiers. It is ideal for platforms that need to display the NFT portfolios of users or provide insights into the NFT market holdings.

Base URL: https://mevm-devnet.lync.world/subgraphs/name/mevm

Get All NFTs:

The graphQL query filters data based on wallet address and returns balance, contractAddress, Name, Symbol etc.

{
  getNftBalances {
    id
    owner
    amount
    nft {
      id
      contractAddress
      name
      symbol
    }
  }
}

Get Token Data from Wallet Address:

The graphQL query filters data based on wallet address, contract address and returns balance, contractAddress, Name, Symbol etc.

{
  getNftBalances(
    where: {owner: "0x241db4bd1fc3b1f98a88db8fc81642b5a7ddf9bc"}
  ) {
    id
    nft {
      id
      contractAddress
      name
      symbol
    }
  }
}

Get Token Data from Wallet Address and Contract Address of token:

The graphQL query filters data based on wallet address and returns balance, contractAddress, Name, Symbol etc.

{
  getNftBalances(
    where: {owner: "0x241db4bd1fc3b1f98a88db8fc81642b5a7ddf9bc",nft_:{contractAddress: "0x0f3797c4ef30efe8bef141eeac1fe322fcdfc482"}}
  ) {
    id
    nft {
      id
      contractAddress
      name
      symbol
    }
  }
}

Last updated