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

# Get NFTs Owned by an Account

`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](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.

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

### [Playground for the GraphQL Query:](https://mevm-devnet.lync.world/subgraphs/name/mevm/graphql?query=%7B%0A++getNftBalances+%7B%0A++++id%0A++++owner%0A++++amount%0A++++nft+%7B%0A++++++id%0A++++++contractAddress%0A++++++name%0A++++++symbol%0A++++%7D%0A++%7D%0A%7D)

{% embed url="https://mevm-devnet.lync.world/subgraphs/name/mevm/graphql?query={++getNftBalances+{++++id++++owner++++amount++++nft+{++++++id++++++contractAddress++++++name++++++symbol++++}++}}" %}
Get All NFTs
{% endembed %}

### Get Token Data from Wallet Address:

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

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

### [Playground for the GraphQL Query:](https://mevm-devnet.lync.world/subgraphs/name/mevm/graphql?query=%7B%0A++getNftBalances%28%0A++++where%3A+%7Bowner%3A+%220x241db4bd1fc3b1f98a88db8fc81642b5a7ddf9bc%22%7D%0A++%29+%7B%0A++++id%0A++++nft+%7B%0A++++++id%0A++++++contractAddress%0A++++++name%0A++++++symbol%0A++++%7D%0A++%7D%0A%7D)

{% embed url="https://mevm-devnet.lync.world/subgraphs/name/mevm/graphql?query={++getNftBalances(++++where:+{owner:+%220x241db4bd1fc3b1f98a88db8fc81642b5a7ddf9bc%22}++)+{++++id++++nft+{++++++id++++++contractAddress++++++name++++++symbol++++}++}}" %}
Playground to Get Tokens Data from Wallet Address
{% endembed %}

### 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.

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

### [Playground for the GraphQL Query:](https://mevm-devnet.lync.world/subgraphs/name/mevm/graphql?query=%7B%0A++getNftBalances%28%0A++++where%3A+%7Bowner%3A+%220x241db4bd1fc3b1f98a88db8fc81642b5a7ddf9bc%22%2Cnft_%3A%7BcontractAddress%3A+%220x0f3797c4ef30efe8bef141eeac1fe322fcdfc482%22%7D%7D%0A++%29+%7B%0A++++id%0A++++nft+%7B%0A++++++id%0A++++++contractAddress%0A++++++name%0A++++++symbol%0A++++%7D%0A++%7D%0A%7D)

{% embed url="https://mevm-devnet.lync.world/subgraphs/name/mevm/graphql?query={++getNftBalances(++++where:+{owner:+%220x241db4bd1fc3b1f98a88db8fc81642b5a7ddf9bc%22,nft_:{contractAddress:+%220x0f3797c4ef30efe8bef141eeac1fe322fcdfc482%22}}++)+{++++id++++nft+{++++++id++++++contractAddress++++++name++++++symbol++++}++}}" %}
