NFTs by owner retriever

[apis/nftport/v0/NFTs by owner retriever]


Returns NFTs owned by a given account (i.e. wallet) address, using the NFTPort API. Can also return each NFT metadata with include parameter. Supports Ethereum and Polygon. Retrieve NFTs owned by an account https://docs.nftport.xyz/docs/nftport/?search=retrieve-nf-ts-owned-by-an-account


Keywords: web3, blockchain, crypto, nft, owner, ethereum, polygon

Input ports

  • query:

    {
      "account_address": string,
      optional "continuation": string,
      optional "page_size": number,
      optional "include": ("default" or "contract_information" or "metadata")[],
      optional "exclude": ("erc721" or "erc1155")[],
      optional "contract_address": string
    }

    Receives search query. Rerefence: https://docs.nftport.xyz/docs/nftport/?search=retrieve-nf-ts-owned-by-an-account#Request

  • params:

    {"api_key": string, optional "chain": ("ethereum" or "rinkeby")}

    Rerefence: https://docs.nftport.xyz/docs/nftport/?search=retrieve-nf-ts-owned-by-an-account#Request Default chain value: "ethereum"

Output ports

  • data:

    {
      "response": "OK",
      "nfts": {
        "contract_address": string,
        "token_id": string,
        optional "name": string,
        optional "description": string,
        optional "file_url": (string or null),
        optional "animation_url": (string or null),
        optional "cached_file_url": (string or null),
        optional "cached_animation_url": (string or null),
        optional "creator_address": string,
        optional "metadata": (any or null),
        optional "metadata_url": (string or null),
        optional "contract": {
          optional "name": string,
          optional "symbol": string,
          optional "type": string
        }
      }[],
      "total": number,
      optional "continuation": string
    }

    Sends the query response. Reference: https://docs.nftport.xyz/docs/nftport/?search=retrieve-nf-ts-owned-by-an-account#Responses

  • response:

    {"status": number, "headers": {string: any}, "body": string}

    Sends the original response.

  • error: {"error": string, "details": any}

    Sends the error, if any

Last updated